From tkdhanasekar at gmail.com Sun Sep 4 23:07:53 2022 From: tkdhanasekar at gmail.com (Dhanasekar) Date: Mon, 5 Sep 2022 08:37:53 +0530 Subject: [Chennaipy] flask error: ModuleNotFoundError: No module named 'flask.ext' Message-ID: i tried to run a app in flask https://github.com/ArchiveLabs/books.archivelab.org/tree/master/books.archivelab https://github.com/ArchiveLabs/books.archivelab.org/blob/master/books.archivelab/app.py i install flask and venv when i run app.py with flask i got the error *venv) root at localhost:~/flask_application# ls* api app.py books.archivelab.org configs __init__.py __pycache__ static templates venv views *(venv) root at localhost:~/flask_application# flask run --host=0.0.0.0* Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: While importing 'flask_application.app', an ImportError was raised: Traceback (most recent call last): File "/root/flask_application/venv/lib/python3.10/site-packages/flask/cli.py", line 218, in locate_app __import__(module_name) File "/root/flask_application/app.py", line 13, in from flask.ext.routing import router ModuleNotFoundError: No module named 'flask.ext' I searched for the flask.ext module but of no use Is there any module missing ? any clues to solve this issue regards, T.Dhanasekar -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Sep 5 14:05:35 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 5 Sep 2022 23:35:35 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 05 Sep 2022 Message-ID: Date: 05 Sep 2022 Module: dis Installation: pip install dis About: The dis module supports the analysis of CPython bytecode by disassembling it. The CPython bytecode which this module takes as an input is defined in the file Include/opcode.h and used by the compiler and the interpreter. Source Code: import dis def print_hello(string): print("Hello", string) # This will display the disassembly of print_hello dis.dis(print_hello) Output: 4 0 LOAD_GLOBAL 0 (print) 2 LOAD_CONST 1 ('Hello') 4 LOAD_FAST 0 (string) 6 CALL_FUNCTION 2 8 POP_TOP 10 LOAD_CONST 0 (None) 12 RETURN_VALUE Reference: https://pypi.org/project/dis/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicole at pypi.org Fri Sep 2 14:27:14 2022 From: nicole at pypi.org (Nicole Harris) Date: Fri, 2 Sep 2022 19:27:14 +0100 Subject: [Chennaipy] Your feedback wanted on Python Packaging Message-ID: Hi there, My name is Nicole - I am a Python Packaging Authority member and PyPI maintainer. I'm contacting you because you are a member or leader of a local Python user group. We have just published a new survey to collect community feedback about Python packaging and we want your input: https://www.surveymonkey.co.uk/r/ZNSZF7G We want to reach as many people as possible, so any help you can provide to *share the **survey with your local community* would be fantastic. If you are on Twitter, here is a tweet from the Python Software Foundation you can retweet: https://twitter.com/ThePSF/status/1565415698100359169 Thanks for your help! Nicole -------------- next part -------------- An HTML attachment was scrubbed... URL: From gprkumar at gmail.com Sun Sep 11 02:06:39 2022 From: gprkumar at gmail.com (rajeshkumar p) Date: Sun, 11 Sep 2022 11:36:39 +0530 Subject: [Chennaipy] [kanchilug] flask error: ModuleNotFoundError: No module named 'flask.ext' In-Reply-To: References: Message-ID: Hi Dhanasekar, Try installing pip install flask_routing flask_cors Edit the lines in app.py #from flask.ext.routing import router #from flask.ext.cors import CORS from flask_routing import router from flask_cors import CORS Relevant link for reference: https://stackoverflow.com/questions/55023231/importerror-no-module-named-flask-ext regards, Rajeshkumar P On Mon, 5 Sept 2022 at 08:38, Dhanasekar wrote: > i tried to run a app in flask > > https://github.com/ArchiveLabs/books.archivelab.org/tree/master/books.archivelab > > https://github.com/ArchiveLabs/books.archivelab.org/blob/master/books.archivelab/app.py > i install flask and venv > when i run app.py with flask i got the error > > > *venv) root at localhost:~/flask_application# ls* > api app.py books.archivelab.org configs __init__.py __pycache__ > static templates venv views > > *(venv) root at localhost:~/flask_application# flask run --host=0.0.0.0* > Usage: flask run [OPTIONS] > Try 'flask run --help' for help. > > Error: While importing 'flask_application.app', an ImportError was raised: > > Traceback (most recent call last): > File > "/root/flask_application/venv/lib/python3.10/site-packages/flask/cli.py", > line 218, in locate_app > __import__(module_name) > File "/root/flask_application/app.py", line 13, in > from flask.ext.routing import router > ModuleNotFoundError: No module named 'flask.ext' > > > I searched for the flask.ext module but of no use > Is there any module missing ? any clues to solve this issue > > > > regards, > T.Dhanasekar > On Mon, 5 Sept 2022 at 08:38, Dhanasekar wrote: > i tried to run a app in flask > > https://github.com/ArchiveLabs/books.archivelab.org/tree/master/books.archivelab > > https://github.com/ArchiveLabs/books.archivelab.org/blob/master/books.archivelab/app.py > i install flask and venv > when i run app.py with flask i got the error > > > *venv) root at localhost:~/flask_application# ls* > api app.py books.archivelab.org configs __init__.py __pycache__ > static templates venv views > > *(venv) root at localhost:~/flask_application# flask run --host=0.0.0.0* > Usage: flask run [OPTIONS] > Try 'flask run --help' for help. > > Error: While importing 'flask_application.app', an ImportError was raised: > > Traceback (most recent call last): > File > "/root/flask_application/venv/lib/python3.10/site-packages/flask/cli.py", > line 218, in locate_app > __import__(module_name) > File "/root/flask_application/app.py", line 13, in > from flask.ext.routing import router > ModuleNotFoundError: No module named 'flask.ext' > > > I searched for the flask.ext module but of no use > Is there any module missing ? any clues to solve this issue > > > > regards, > T.Dhanasekar > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tkdhanasekar at gmail.com Mon Sep 12 01:38:31 2022 From: tkdhanasekar at gmail.com (Dhanasekar) Date: Mon, 12 Sep 2022 11:08:31 +0530 Subject: [Chennaipy] [kanchilug] Re: flask error: ModuleNotFoundError: No module named 'flask.ext' In-Reply-To: References: Message-ID: > Try installing > pip install flask_routing flask_cors > *# pip3 install flask_routing flask_cors * requirement already satisfied Edit the lines in app.py > #from flask.ext.routing import router > #from flask.ext.cors import CORS > from flask_routing import router > from flask_cors import CORS > edited the app.py file with above parameters it throws views module not found and it is also installed *# pip3 install views* *# flask run --host=0.0.0.0* Usage: flask run [OPTIONS] Try 'flask run --help' for help. Error: While importing 'flask_application.app', an ImportError was raised: Traceback (most recent call last): File "/root/flask_application/venv/lib/python3.10/site-packages/flask/cli.py", line 218, in locate_app __import__(module_name) File "/root/flask_application/app.py", line 17, in from views import endpoints *ImportError: cannot import name 'endpoints' from 'views' (/root/flask_application/venv/lib/python3.10/site-packages/views.py)* *# pip3 freeze* aniso8601==9.0.1 click==8.1.3 datatypes==0.2.6 decorators==2.0.7 endpoints==5.0.1 Flask==2.2.2 Flask-Cors==3.0.10 Flask-Ext==0.1 Flask-RESTful==0.3.9 Flask-Routing==0.0.21 itsdangerous==2.1.2 Jinja2==3.1.2 MarkupSafe==2.1.1 pytz==2022.2.1 six==1.16.0 views==0.3 Werkzeug==2.2.2 all the dependencies are installed still ImportError exists , any clues thanks for your time on this regards, Dhanasekar T -------------- next part -------------- An HTML attachment was scrubbed... URL: From gprkumar at gmail.com Mon Sep 12 13:18:48 2022 From: gprkumar at gmail.com (rajeshkumar p) Date: Mon, 12 Sep 2022 22:48:48 +0530 Subject: [Chennaipy] [kanchilug] Re: flask error: ModuleNotFoundError: No module named 'flask.ext' In-Reply-To: References: Message-ID: Hi Dhanasekar.T, Added inline response, On Mon, 12 Sept 2022 at 11:09, Dhanasekar wrote: > > >> Try installing >> pip install flask_routing flask_cors >> > > *# pip3 install flask_routing flask_cors * > requirement already satisfied > > Edit the lines in app.py >> #from flask.ext.routing import router >> #from flask.ext.cors import CORS >> from flask_routing import router >> from flask_cors import CORS >> > > edited the app.py file with above parameters > it throws views module not found > and it is also installed > *# pip3 install views* > > *# flask run --host=0.0.0.0* > Usage: flask run [OPTIONS] > Try 'flask run --help' for help. > > Error: While importing 'flask_application.app', an ImportError was raised: > > Traceback (most recent call last): > File > "/root/flask_application/venv/lib/python3.10/site-packages/flask/cli.py", > line 218, in locate_app > __import__(module_name) > File "/root/flask_application/app.py", line 17, in > from views import endpoints > *ImportError: cannot import name 'endpoints' from 'views' > (/root/flask_application/venv/lib/python3.10/site-packages/views.py)* > > Try running from the directory $(venv)/XXXXX/books.archivelab.org/books.archivelab/ ie : $.(venv)/XXXXX/books.archivelab.org/books.archivelab/ ls (api app.py configs __init__.py __pycache__ static templates views) Try running using the command: $.(venv)/XXXXX/books.archivelab.org/books.archivelab/python app.py I am unable to run using flask run command. > > *# pip3 freeze* > aniso8601==9.0.1 > click==8.1.3 > datatypes==0.2.6 > decorators==2.0.7 > endpoints==5.0.1 > Flask==2.2.2 > Flask-Cors==3.0.10 > Flask-Ext==0.1 > Flask-RESTful==0.3.9 > Flask-Routing==0.0.21 > itsdangerous==2.1.2 > Jinja2==3.1.2 > MarkupSafe==2.1.1 > pytz==2022.2.1 > six==1.16.0 > views==0.3 > Werkzeug==2.2.2 > > I can find few more extra installables in mine as below: internetarchive==3.0.2 psycopg2-binary==2.9.3 requests==2.28.1 SQLAlchemy==1.4.41 > > all the dependencies are installed still > ImportError exists , any clues > thanks for your time on this > > > > regards, > Dhanasekar T > Also, Edited a file books.archivelab/configs/__init__.py 'dbn': config.getdef('db', 'dbn', 'postgresql'), # DATABASES DB_URI = '%(dbn)s://%(user)s:%(pw)s@%(host)s:%(port)s/%(db)s ?client_encoding=utf8' % { 'dbn': config.getdef('db', 'dbn', 'postgresql'), regards, Rajeshkumar P -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Sep 12 13:41:39 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 12 Sep 2022 23:11:39 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 12 Sep 2022 Message-ID: Date: 12 Sep 2022 Module : bokeh Installation : pip install bokeh About: Bokeh is an interactive visualization library for modern web browsers. It provides elegant, concise construction of versatile graphics, and affords high-performance interactivity over large or streaming datasets. Bokeh can help anyone who would like to quickly and easily make interactive plots, dashboards, and data applications. Source Code: import numpy as np from bokeh.plotting import figure, show N = 500 x = np.linspace(0, 10, N) y = np.linspace(0, 10, N) xx, yy = np.meshgrid(x, y) d = np.sin(xx)*np.cos(yy) p = figure(tooltips=[("x", "$x"), ("y", "$y"), ("value", "@image")]) p.x_range.range_padding = p.y_range.range_padding = 0 # must give a vector of image data for image parameter p.image(image=[d], x=0, y=0, dw=10, dh=10, palette="Spectral11", level="image") p.grid.grid_line_width = 0.5 show(p) Reference: https://pypi.org/project/bokeh/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tshrinivasan at gmail.com Thu Sep 15 14:47:30 2022 From: tshrinivasan at gmail.com (Shrinivasan T) Date: Fri, 16 Sep 2022 00:17:30 +0530 Subject: [Chennaipy] Fwd: Tamil open source conference 2022 In-Reply-To: References: Message-ID: ---------- Forwarded message --------- From: Shrinivasan T Date: Fri, Sep 16, 2022, 12:16 AM Subject: Tamil open source conference 2022 To: ILUG-Chennai Hello all, We are celebrating software freedom day 2022 with a conference, workshops, demo stalls and few online talks in tamil. Details are here - https://tossconf22.kaniyam.com/ Register for the event and participate them all. Thanks, Shrini -------------- next part -------------- An HTML attachment was scrubbed... URL: From mohan43u at gmail.com Fri Sep 16 15:30:21 2022 From: mohan43u at gmail.com (Mohan R) Date: Sat, 17 Sep 2022 01:00:21 +0530 Subject: [Chennaipy] Tamil Open Source Software Conference 2022 - Day 0 & Day 1 Message-ID: Hi, As part of Tamil Open Source Software Conference 2022, we are kickstarting with exciting sessions on Software Freedom Day, Sep 17, 2022 - Webinars (Online) - https://tossconf22.kaniyam.com/webinar.html Sep 18, 2022 - Workshop 0 (Offline) - https://tossconf22.kaniyam.com/workshop0.html More details on https://tossconf22.kaniyam.com/ Thanks, Mohan R From vpmglug at gmail.com Fri Sep 16 11:38:13 2022 From: vpmglug at gmail.com (VGLUG) Date: Fri, 16 Sep 2022 21:08:13 +0530 Subject: [Chennaipy] =?utf-8?b?RndkOiDgrqTgrq7grr/grrTgrr/grrLgr40g4K6u?= =?utf-8?b?4K+G4K6p4K+N4K6q4K+K4K6w4K+B4K6z4K+NIOCuleCuo+CvjeCulQ==?= =?utf-8?b?4K6+4K6f4K+N4K6a4K6/ISEgLSBWR0xVRyBTRkQgMjAyMiAtIOCumg==?= =?utf-8?b?4K+G4K6q4K+N4K6f4K6u4K+N4K6q4K6w4K+NIDI1LCAyMDIy?= In-Reply-To: References: Message-ID: ---------- Forwarded message --------- From: VGLUG Date: Fri, Sep 16, 2022, 9:04 PM Subject: ??????? ?????????? ?????????!! - VGLUG SFD 2022 - ?????????? 25, 2022 To: ??????? ?????????? ?????????!! ???????? ?????????????? ?????? ???????????????? ??? ????????????? ??????????????? ?????????? ??????????? ??????? ???? VGLUG ??????? ???????? ?????????? 25, ?????? ????? ????????????! ???, ??????? ?????? ??????????? ???????? ?? ????? ????????????? ?????????, ??? ??????? ??????? ?????????????? ???? ?????????? ????????????? ??????? ??????? ?????????. ???? ????????????? ????????? ??????????? ???????????: 1. FOSS Philosophy 2. FOSS for Education 3. FOSS for Kids 4. FOSS Gaming 5. Machine Learning & AI 6. Virtual Reality 7. Multimedia Tools 8. Open Hardware & IOT Projects 9. VGLUG Who we are? 10. Tamil Computing 11. Cyber Crime Awareness 12. Privacy on Android 13. Linux Distros 14. Data Visualization 15. Mozilla and it's products 16. Wikipedia & OSM ????????? ?????? ?? ??????????? ?????. ????: ?????????? 25, 2022 - ?????? ?????: 9 AM - 4 PM ????: MRICRC High School, East Pondy Road, Madha Kovil Bus Stand, Villupuram ??????? SFD ?????????? ????? ???: https://vglug.org/category/software-freedom-day/ SFD 2022-?????? ???? https://vglug.org/2022/09/15/vglug-sfd2022/ VGLUG ????? ?????? ????: https://vglug.org #SFD2022 #SFD #VGLUG #softwarefreedomday #foss #softwareexhibition #freesoftware #opensource #viluppuram #ViluppuramGLUG #Tamil #JoinVglug #10YearsOfVglug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vglug_sfd_2022_stalls.png Type: image/png Size: 1791049 bytes Desc: not available URL: From selvi.dct at gmail.com Mon Sep 19 13:55:39 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 19 Sep 2022 23:25:39 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 19 Sep 2022 Message-ID: Date: 19 Sep 2022 Module : matplotlib Installation : pip install matplotlib About: Matplotlib produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. Source Code: import matplotlib.pyplot as plt fig, ax = plt.subplots() fruits = ['apple', 'blueberry', 'cherry', 'orange'] counts = [40, 100, 30, 55] bar_labels = ['red', 'blue', '_red', 'orange'] bar_colors = ['tab:red', 'tab:blue', 'tab:red', 'tab:orange'] ax.bar(fruits, counts, label=bar_labels, color=bar_colors) ax.set_ylabel('fruit supply') ax.set_title('Fruit supply by kind and color') ax.legend(title='Fruit color') plt.show() Reference: https://pypi.org/project/matplotlib/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From tshrinivasan at gmail.com Fri Sep 23 06:47:32 2022 From: tshrinivasan at gmail.com (Shrinivasan T) Date: Fri, 23 Sep 2022 16:17:32 +0530 Subject: [Chennaipy] Fwd: Tamil Open Source Conference 2022 - Sep 24, 25 - Loyola College In-Reply-To: References: Message-ID: ---------- Forwarded message --------- From: Shrinivasan T Date: Fri, Sep 23, 2022, 12:10 PM Subject: Tamil Open Source Conference 2022 - Sep 24,25 - Loyola College To: ILUG-Chennai We have a Tamil Open Source Conference on Sep 24 and a series of Workshops on Sep 25, Oct 1 and Oct 2. Check the schedule, venue details here - https://tossconf22.kaniyam.com/ Please register and attend the events. Thanks. -- Regards, T.Shrinivasan My Life with GNU/Linux : http://goinggnu.wordpress.com Free E-Magazine on Free Open Source Software in Tamil : http://kaniyam.com Get Free Tamil Ebooks for Android, iOS, Kindle, Computer : http://FreeTamilEbooks.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From selvi.dct at gmail.com Mon Sep 26 05:21:32 2022 From: selvi.dct at gmail.com (selvi dct) Date: Mon, 26 Sep 2022 14:51:32 +0530 Subject: [Chennaipy] Chennaipy - Monday Module - 26 Sep 2022 Message-ID: Date: 26 Sep 2022 Module : mathematical Installation : pip install mathematical About: Includes tools for calculating mean, median and standard deviation of rows in data frames, detection of outliers, and statistical calculations Sample: from mathematical.outliers import quartile_outliers data = [ [1, 2, 3, 4, 5], [1, 2, 3, 4, 10], [1, 2, 3, 4, 50], [1, 2, 3, 4, 100], [1, 2, 3, 4, 1000], [1, 2, 3, 50, 1000], ] for d in data: outliers, data_exc_outliers = quartile_outliers(d) print("data: ", d) print("outliers: ", outliers) print("data leaving outliers: ", data_exc_outliers) print("") Output: % python mathematical_sample.py data: [1, 2, 3, 4, 5] outliers: [] data leaving outliers: [1, 2, 3, 4, 5] data: [1, 2, 3, 4, 10] outliers: [10] data leaving outliers: [1, 2, 3, 4] data: [1, 2, 3, 4, 50] outliers: [50] data leaving outliers: [1, 2, 3, 4] data: [1, 2, 3, 4, 100] outliers: [100] data leaving outliers: [1, 2, 3, 4] data: [1, 2, 3, 4, 1000] outliers: [1000] data leaving outliers: [1, 2, 3, 4] data: [1, 2, 3, 50, 1000] outliers: [1000] data leaving outliers: [1, 2, 3, 50] Reference: https://pypi.org/project/mathematical/ -------------- next part -------------- An HTML attachment was scrubbed... URL: