Pyinstaller resources.DistributionNotFound 'workalendar'

2020-05-08 Thread LM FP
Hi! I have imported workalendar package -together with others packages- to my python script, and It works fine. I compile it with Pyinstaller without errors, but when I run the exe file appears a warning: pkg_resources.DistributionNotFound: The 'workalendar' distribution was not found and is re

Re: Pyinstaller resources.DistributionNotFound 'workalendar'

2020-05-08 Thread Souvik Dutta
Have you installed the package listed in the error in a virtual environment? On Fri, 8 May, 2020, 2:10 pm LM FP, wrote: > Hi! > I have imported workalendar package -together with others packages- to my > python script, and It works fine. I compile it with Pyinstaller without > errors, but when I

Re: Pyinstaller resources.DistributionNotFound 'workalendar'

2020-05-08 Thread LM FP
Hi, I followed pypi instructions: pip install workalendar, and I also have not installed any virtual python environment on my computer. El viernes, 8 de mayo de 2020, 10:51:24 (UTC+2), Souvik Dutta escribió: > Have you installed the package listed in the error in a virtual environment? > > On

Re: Can a print overwrite a previous print ?

2020-05-08 Thread Sir Real via Python-list
On Fri, 8 May 2020 16:25:52 +0200, ast wrote: >Hello > > >Suppose we want that: > >print("abcdef"); print("ghi") > >produces: > >ghidef > >The 2nd print overwrites the first one. >Is it feasible ? > >It should since the progress bar tdqh seems to do that > >try: > >from tkdm import tkdm > >for i

Can a print overwrite a previous print ?

2020-05-08 Thread ast
Hello Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? It should since the progress bar tdqh seems to do that try: from tkdm import tkdm for i in tqdm(range(100_000_000)): pass It produces a progress bar li

EuroPython 2020: Second call for proposals (CFP) - Going global

2020-05-08 Thread M.-A. Lemburg
After participating in several other online events in Europe, we found that there is a lot of interest in these events from other time zones as well. This is a real advantage of running an online event: without the need to travel, joining an event becomes much easier. * EuroPyth

Re: Not able use installed modules

2020-05-08 Thread Mats Wichmann
On 5/6/20 10:15 PM, Music lover wrote: > Hello python team, > I have installed the latest version of python from your site. > Then I successfully installed some modules like :- numpy , pandas, > matplotlib from command prompt. But I am not able to use them while > programing in python Id

Re: Not able use installed modules

2020-05-08 Thread boB Stepp
On Fri, May 08, 2020 at 09:31:55AM -0600, Mats Wichmann wrote: > On 5/6/20 10:15 PM, Music lover wrote: > > Hello python team, > > I have installed the latest version of python from your site. > > Then I successfully installed some modules like :- numpy , pandas, > > matplotlib from comm

basic Python question

2020-05-08 Thread joseph pareti
In general I prefer doing: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) clf = RandomForestClassifier(n_estimators = 100, max_depth= None) *clf_f = clf.fit(X_train, y_train)* predicted_labels = clf_f.predict( X_test) score = clf.score(X_test, y_test) s

Re: basic Python question

2020-05-08 Thread MRAB
On 2020-05-08 20:02, joseph pareti wrote: In general I prefer doing: X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33, random_state=42) >clf = RandomForestClassifier(n_estimators = 100, max_depth= None) *clf_f = clf.fit(X_train, y_train)* predicted_labels = clf_f.pred

Re: basic Python question

2020-05-08 Thread joseph pareti
yes, it is random forest classifier from scikit learn. Thank you. Am Fr., 8. Mai 2020 um 21:50 Uhr schrieb MRAB : > On 2020-05-08 20:02, joseph pareti wrote: > > In general I prefer doing: > > > > > > X_train, X_test, y_train, y_test = train_test_split(X, y, > test_size=0.33, random_state=42) >

Re: basic Python question

2020-05-08 Thread joseph pareti
yet, something is still unclear; in Python you can do things like: *clf0.fit(X_train, y_train)* which is not the way I programmed in other languages where a left-hand side and a right hand side is required. Am Fr., 8. Mai 2020 um 21:52 Uhr schrieb joseph pareti < joeparet...@gmail.com>: > yes,

Re: basic Python question

2020-05-08 Thread MRAB
On 2020-05-08 21:19, joseph pareti wrote: yet, something is still unclear; in Python you can do things like: *clf0.fit(X_train,y_train)* which is not the way I programmed in other languages where a left-hand side and a right hand side is required. All it's doing is performing the calculation

Re: Can a print overwrite a previous print ?

2020-05-08 Thread Cameron Simpson
On 08May2020 09:36, Sir Real wrote: On Fri, 8 May 2020 16:25:52 +0200, ast wrote: Suppose we want that: print("abcdef"); print("ghi") produces: ghidef The 2nd print overwrites the first one. Is it feasible ? On a terminal, yes. This is a display issue. It should since the progress bar

Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
I just came across a package in PyPI which is in a state of neglect. The official version on the PyPI page is 1.3.1 -- but the installed module reports its version as 1.2.0. This is confusing. There are several bugs in this package besides the mismatched version number. I've forked a copy of

Re: Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
On Friday, May 8, 2020 at 6:07:33 PM UTC-7, John Ladasky wrote: > Is there a recommended way to keep the internal reference and the setup.py > reference in sync? Is there any reason someone would NOT want these numbers > to match? Replying to myself... I just found this: https://packaging.pyth

Re: IP address to binary conversion

2020-05-08 Thread al . alexiev
Just for the records and to have a fully working bidirectional solution: >>> ip '10.44.32.0' >>> struct.unpack('L', socket.inet_aton(ip))[0] 2108426 >>> socket.inet_ntoa(struct.pack('>> Good luck ;-) -- https://mail.python.org/mailman/listinfo/python-list

SaveAs on macOS Catalina.

2020-05-08 Thread Terry Reedy
https://bugs.python.org/issue40553 At least a couple of people have had problems using SaveAs from IDLE when running on macOS Catalina. But Ned Deily cannot reproduce the issue. I cannot because I have refused the buggy 'upgrade'. We could use more data. What do other Catalina Python users

Re: SaveAs on macOS Catalina.

2020-05-08 Thread Bev In TX
 > On May 8, 2020, at 8:29 PM, Terry Reedy wrote: > > https://bugs.python.org/issue40553 > > At least a couple of people have had problems using SaveAs from IDLE when > running on macOS Catalina. But Ned Deily cannot reproduce the issue. I > cannot because I have refused the buggy 'upgrade'

Re: IP address to binary conversion

2020-05-08 Thread Alan Bawden
al.alex...@gmail.com writes: > Just for the records and to have a fully working bidirectional solution: > > >>> ip > '10.44.32.0' > >>> struct.unpack('L', socket.inet_aton(ip))[0] > 2108426 > >>> socket.inet_ntoa(struct.pack(' '10.44.32.0' > >>> > > Good luck ;-) This will not work as expected

Re: Not able use installed modules

2020-05-08 Thread DL Neil via Python-list
On 7/05/20 4:15 PM, Music lover wrote: Hello python team, I have installed the latest version of python from your site. Then I successfully installed some modules like :- numpy , pandas, matplotlib from command prompt. But I am not able to use them while programing in python Idle. It'

Re: SaveAs on macOS Catalina.

2020-05-08 Thread Christian Gollwitzer
Am 09.05.20 um 04:37 schrieb Bev In TX:  On May 8, 2020, at 8:29 PM, Terry Reedy wrote: https://bugs.python.org/issue40553 On macOS The default Save/Save as dialogs are short, only displaying a few major folders along with Favorites and Recents. That dialog doesn’t display folder content