Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-29 Thread Mats Wichmann
On 11/29/18 12:20 PM, srinivasan wrote: > Dear Python Experts, > > With the below code snippet, I am seeing the below error, I am using > python 3.6, could you please what could be the issue? > self.child = pexpect.spawn("bluetoothctl", echo = False) ... > self.child.send(command

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-27 Thread Mats Wichmann
On 11/27/18 5:50 AM, srinivasan wrote: > Dear Python Experts, > > As still I am newbie and learning python, I am trying to reuse the > Bluetoothctl wrapper in Python from the link ( > https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6 > version, In pycharm editor on the bold

Re: [Tutor] Issue in using "subprocess.Popen" for parsing the command output

2018-11-26 Thread Mats Wichmann
On 11/25/18 10:58 AM, srinivasan wrote: > Even only with "*proc.decode("utf-8")"* in the above code still it seems to > throw the error > > #return proc.strip().decode("utf-8") > #return proc.decode("utf-8").strip() > *return proc.decode("utf-8")* > > Error: >

[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-28 Thread Mats Wichmann
Mats Wichmann added the comment: Admit it doesn't seem vastly helpful to pile on with a "not us", but the current webmaster@ autoreply is here: https://github.com/tjguk/python-webmaster/blob/master/auto-responder.txt/. It contains this link: https://docs.python.org/3/faq/index.ht

[issue26628] Undefined behavior calling C functions with ctypes.Union arguments

2020-04-07 Thread Mats Wichmann
Mats Wichmann added the comment: For readers who got here via a search after hitting the new traceback, note the fix in bpo-16575 was reverted. It's still a duplicate issue, so follow the progress there. -- nosy: +mwichmann ___ Python tracker

Re: "pip" error message

2020-04-21 Thread Mats Wichmann
On 4/21/20 5:38 AM, Frank Millman wrote: > On 2020-04-21 12:02 PM, Simone Bravin wrote: >> >> I found that I had downloaded Python from what I would call "automatic >> check version link" and that downloaded the 32-bit version, but my >> notebook have 64-bit, so I changed the version to the 64-bit

Re: Python Problems

2020-04-26 Thread Mats Wichmann
On 4/26/20 2:06 AM, helal uddin wrote: > https://drive.google.com/open?id=1DCciLNPkARXnVIHFhXmijRTbFEC9Xsa- > Please visit this link to see my problem > I'm facing some problems to installlibraries like 'torch library' > My Operating System is Windows 10 64bit. > I don't think anyone is

Re: Help Problem with python : python-3.8.3rc1-amd64

2020-05-13 Thread Mats Wichmann
On 5/11/20 9:25 PM, Michael Torrie wrote: > On 5/11/20 8:33 PM, Buddy Peacock wrote: >> I am trying to install python on my surface with windows 10, version 1903, >> build 18362.778. The installer seems to think everything worked. But there >> is no Python folder anywhere on the system. I looked

Re: Help with installation please

2020-05-17 Thread Mats Wichmann
On 5/15/20 9:47 PM, Souvik Dutta wrote: > I dont know if you should shift from powershell to cmd. Python kinda does > not work in powershell. Powershell has a funky way of looking up programs, with the result that you have to type the full name for many. python.exe - should work, probably.

Re: Fwd: Unable to Install Python (3.5.0) Properly

2020-05-17 Thread Mats Wichmann
On 5/17/20 1:27 PM, Tarun Pathak wrote: > Oh, My apology ! I should have mentioned the system stats in mail. > > Windows 7 , 64 bit > Intel Core 2 duo > C drive free space : 23 GB > > Initially, during installation system is asking for service pack 1 > I did that. > > Later, it's asking for

Re: PROBLEM WITH PYTHON IDLE

2020-05-14 Thread Mats Wichmann
On 5/14/20 5:15 AM, aduojo samson wrote: > Hello, my name is Samson Haruna and I am from Nigeria.I have a problem with > my python 3.8, any time I click on it to write my python code I get this > error message "IDLE subprocess didn't make connection". I have uninstalled > and reinstalled several

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

Re: Installation problem

2020-05-11 Thread Mats Wichmann
On 5/10/20 3:31 PM, Solomon Onuche Faruna wrote: > I install python 3.8 and pycharm community edition on window 8 but when I > try to install matplotlib in pycharm I discovered I got "error loading > package list pypi.python.org" so I updated the pycharm to version 2020.1. > The packages loaded

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-23 Thread Mats Wichmann
On 5/23/20 12:23 AM, Adam Preble wrote: > I wanted to update from 3.6.8 on Windows without necessarily moving on to > 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10. > > All I see for both are source archives: > > https://www.python.org/downloads/release/python-369/ >

Re: Uninstall problem

2020-09-05 Thread Mats Wichmann
On 9/5/20 7:54 AM, f.le...@omnias.fr wrote: > Hello, > > > > I commit an error to install python because I chose python 3.8.5 x32bytes > > So I wanted uninstalling it to install python 3.7.9 x64bytes why not 3.8.5, by the way? > But 3.8.5 version don't want uninstall !?! what does this

Re: Uninstall problem

2020-09-06 Thread Mats Wichmann
On 9/6/20 6:24 AM, Luuk wrote: > On 5-9-2020 19:40, Mats Wichmann wrote: >> On 9/5/20 7:54 AM, f.le...@omnias.fr wrote: >>> Hello, >>> >>>   >>> I commit an error to install python because I chose python 3.8.5 >>> x32bytes >>> &

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-09 Thread Mats Wichmann
On 9/8/20 5:18 PM, Richard Damon wrote: > On 9/8/20 7:06 PM, Mats Wichmann wrote: >> On 9/7/20 5:01 PM, Driuma Nikita wrote: >> for i, el in enumerate(_list[:]): >> del _list[i] >> > The issue isn't so much that he is modifying the list that he is >

Re: Fwd: PYTHON BUG. deleting elements of list.

2020-09-08 Thread Mats Wichmann
On 9/7/20 5:01 PM, Driuma Nikita wrote: _list = list(range(50)) for i, el in enumerate(_list): del _list[i] print(_list) Don't change the the list while you are iterating over it, it messes up the iteration. It's not "randomly deleting", it's when next is called to

Re: Opening python

2020-09-08 Thread Mats Wichmann
On 9/7/20 11:33 PM, Rnyx_ Scarl01 wrote: > Hello I've downloaded the newest python but I can't find the python > compiler app eventhough I've already downloaded tge necessary files. What > shoukd I do? What have you tried? And what platform are you on? This is mildly more involved on Windows.

Re: help with installation

2020-10-08 Thread Mats Wichmann
On 10/7/20 2:00 AM, rebecca kahn wrote: > Good morning. > I need to install numpy and matplotlib for school. But everytime I run the > comand i get a error on the metadata fase. Can you offer assistance? > Sincerely Rebecca Kahn > > Microsoft Windows [Version 10.0.18362.1082] > (c) 2019

Re: Error 0xc000007b on opening python

2020-10-02 Thread Mats Wichmann
On 10/2/20 4:15 AM, Nipur Gupta wrote: > I've downloaded python 3.6.0 64 bits but whenever I try to open idle, it > doesn't open and displays error 0xc07b. I've tried everything from > reinstalling to updating windows and visual c++ but it's still the same. I > downloaded python earlier also

Re: CLI parsing—with `--help` text—`--foo bar`, how to give additional parameters to `bar`?

2020-10-16 Thread Mats Wichmann
On 10/15/20 5:09 PM, Samuel Marks wrote: > Yes it’s my module, and I’ve been using argparse > https://github.com/SamuelMarks/ml-params > > No library I’ve found provides a solution to CLI argument parsing for my > use-case. > > So I’ll write one. But what should it look like, syntactically and >

Re: How to expand and flatten a nested of list of dictionaries of varied lengths?

2020-10-18 Thread Mats Wichmann
On 10/18/20 2:09 PM, Shaozhong SHI wrote: > Even worse is that, in some cases, an addition called serviceRatings as a > key occur with new data unexpectedly. > > How to produce a robust Python/Panda script to coping with all these? > > Regards, > > David > > u'historicRatings': [{u'overall':

Re: Trying to Download PygameZero

2020-10-10 Thread Mats Wichmann
On 10/10/20 12:22 AM, Tom Hedge via Python-list wrote: > I am in a 8 grade coding class at the moment and my teacher asked me to > download a script called pgzero. I can not seem to download pgzer or pygame > when i try it shoots me a error message:  ERROR: Command errored out with > exit

Re: Crashing and opening problems

2020-10-09 Thread Mats Wichmann
On 10/9/20 4:23 AM, Jamie wrote: >I’ve downloaded python and when I try to launch a application to use with >python it opens then closes fast but when I double click it it opens the >installer and not python, so I have to use “Open with” The window opened on behalf of the program is

Re: Issues installing python

2020-10-09 Thread Mats Wichmann
On 10/8/20 9:36 PM, Vedant Nichal wrote: > Hello, > > I am an amateur python developer but I’m facing a lot of issues regarding > python installation on windows 10...whenever I install python on my > pc...irrespective of its version my scripts folder is always empty.. are you sure you're actually

Re: Which Version Of Python Is Best To Install Now..

2020-10-09 Thread Mats Wichmann
On 10/9/20 1:02 AM, Muhammad Saad wrote: >  > >  > >Sent from [1]Mail for Windows 10 > >I Want To Reinstall Python Now Which Version I Install Now > > References > >Visible links >1. https://go.microsoft.com/fwlink/?LinkId=550986 > The latest, 3.9, is as always

Re: Are there Python ways to execute queries on PostgreSQL without getting data over?

2020-10-18 Thread Mats Wichmann
On 10/18/20 5:53 AM, Shaozhong SHI wrote: > Are there Python ways to execute queries on PostgreSQL without getting data > over? > > Are there ways just to fire off PostgreSQL queries and not get data into > Python? > > Regards, > > David > When you "execute" the query, you don't get back the

Re: FW: pip not recognized

2020-08-29 Thread Mats Wichmann
On 8/27/20 2:18 PM, gpostle500 wrote: > > Sent from my Verizon, Samsung Galaxy smartphone > Original message From: geoff postle > Date: 8/27/20 12:08 PM (GMT-08:00) To: python-list@python.org Subject: pip > not recognized Hey just downloaded the 3.8.5 and when I search for

Re: Can't use interpreter

2020-08-29 Thread Mats Wichmann
On 8/28/20 5:02 AM, Joshua Sharma wrote: > I have downloaded python 3.7.6, but I can't seem to use it in PyCharm. I > have subscribed. > See the PyCharm instructions for setting an interpreter, which can be default, and per-project. Unless there was more to this question that you didn't ask...

Re: print the output of my code in Markdown using variable (not the value)

2020-08-15 Thread Mats Wichmann
On 8/15/20 11:00 AM, Michio Suginoo wrote: > Hi, > > I am still at an early stage of my personal Python evolution. > > I am coding Python3 in Jupyter Notebook (Anaconda environment). > > I want to print the output of my code in a 'markdown'. > I want to use the variable in the 'markdown' rather

Re: Can't install Python

2020-09-27 Thread Mats Wichmann
On 9/27/20 4:48 PM, MRAB wrote: >> Whatever I try, whenever I click on the phyton.exe file, Python seems >> to install, but only ultimately displays a Modify Setup screen. >> I have tried the modifying and repairing options, but they all just >> lead to the same Modify Setup screen. > So you

Re: FW: pipenv has issues

2020-09-27 Thread Mats Wichmann
On 9/25/20 10:00 PM, Rhett Prince wrote: > see below: > > > > pipenv gets lost and crashes. > > > > > > hi, where do we write to to post defects in pipenv? on a windows 8.1 > machine after installing pipenv with poip as administrator pipenv simply > crashes with a trace dump it

Re: Question from a "java background" developer

2020-09-22 Thread Mats Wichmann
On 9/22/20 3:25 AM, Chris Angelico wrote: > On Tue, Sep 22, 2020 at 7:15 PM Agnese Camellini > wrote: >> >> Hello to everyone, I have a question. I come from a Java background and I >> would like to develop in python but i'm wondering: is there anything, in >> python, like Java "reflection"? >> I

Re: [RELEASE] Python 3.8.6 is now available

2020-09-30 Thread Mats Wichmann
On 9/29/20 9:16 AM, David Raymond wrote: >> Python 3.8.6 is the sixth maintenance release of Python 3.8. Go get it here: > >> https://www.python.org/downloads/release/python-386/ >> > > > Just a quick note that there still seem to be a few

Re: Is there some reason that recent Windows 3.6 releases don't included executable nor msi installers?

2020-05-29 Thread Mats Wichmann
On 5/28/20 3:20 PM, Peter J. Holzer wrote: > On 2020-05-23 13:22:26 -0600, Mats Wichmann wrote: >> On 5/23/20 12:23 AM, Adam Preble wrote: >>> I wanted to update from 3.6.8 on Windows without necessarily moving >>> on to 3.7+ (yet), so I thought I'd try 3.6.9 or 3.6.10.

Re: Behaviour of os.path.join

2020-05-26 Thread Mats Wichmann
On 5/26/20 10:57 AM, BlindAnagram wrote: > On 26/05/2020 16:59, Mats Wichmann wrote: >> On 5/26/20 8:56 AM, BlindAnagram wrote: >>> I came across an issue that I am wondering whether I should report as an >>> issue. If I have a directory, say: >>> >>

Re: Behaviour of os.path.join

2020-05-26 Thread Mats Wichmann
On 5/26/20 8:56 AM, BlindAnagram wrote: > I came across an issue that I am wondering whether I should report as an > issue. If I have a directory, say: > > base='C:\\Documents' > > and I use os.path.join() as follows: > > join(base, '..\\..\\', 'build', '') > > I obtain as expected from

Re: Issues regarding running of application.

2020-05-26 Thread Mats Wichmann
On 5/26/20 8:45 AM, Meet Agrawal wrote: > I have tried and installed the python application a lot of times but after > the installation get completed and I try to run the application, it say > that api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. > > Please tell me a way out.

Re: How to write differently to remove this type hint in Python 2.7?

2020-10-21 Thread Mats Wichmann
On 10/21/20 3:24 PM, Shaozhong SHI wrote: > Is there another way to do this? > > def greet(name: str) -> str: > return "Hello, " + name > greet > > File "", line 1 def greet(name: str) -> str: > ^ SyntaxError: invalid syntax > The hinting pep PEP (484) has an alternate syntax that doesn't

Re: Issue with Python

2020-10-23 Thread Mats Wichmann
On 10/23/20 3:52 AM, Ifeanyi Obinelo wrote: > Hello! I am a Python programmer and I love the language. However, I > installed Python 3.9 and suddenly, pip does not install Python libraries > anymore. It says that I need Visual Studio C++ 2014 and exits with: > > "ERROR: Command errored out with

Re: Request help w/pip install jq

2020-07-19 Thread Mats Wichmann
On 7/19/20 8:46 AM, Ed Walser wrote: > Hi all, > > I've tried installing jq several times in my local environment, but it > fails, saying it can't find a file that pip downloads. Here is the entire > pip output: > > (base) C:\Users\edwal>pip install jq Don't install that way, do: python -m

Re: A Python installation help doc much more friendly to newcomers? [Was Re: help]

2020-07-19 Thread Mats Wichmann
On 7/18/20 5:02 PM, dn via Python-list wrote: > - most docs seem to try to be 'all things to all people', whereas the > differences between platforms inevitably make the writing complicated > and the reading difficult to follow. Thus, consider separating entries > by OpSys and/or installation

Re: Are instances of user-defined classes mutable?

2020-08-07 Thread Mats Wichmann
On 8/6/20 8:53 PM, ZHAOWANCHENG wrote: > So instances of user-defined classes are immutable by default? No, they're clealry mutable. > Or the description of "if a tuple contains any mutable object either directly > or indirectly, it cannot be used as a key." in the document is not >

Re: Module import question

2020-08-09 Thread Mats Wichmann
On 8/9/20 12:51 AM, Gabor Urban wrote: > Hi guys, > > I have a quite simple question but I could not find the correct answer. > > I have twoo modules A and B. A imports B. If I import A in a script, Will > be B imported automatically? I guess not, but fő not know exactly. > > Thanks for your

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Mats Wichmann
On 7/2/20 12:04 PM, Rhodri James wrote: > On 02/07/2020 18:11, Dieter Maurer wrote: >> I am no member of the Council. Thus, your questions are not directed >> to me. **BUT** you made your questions public and thus you are >> likely prepared to receive public comments. > > Fortunately you don't

Re: problem at the time of using editor

2020-06-18 Thread Mats Wichmann
On 6/18/20 4:20 AM, Sourav Kundu wrote: > when I am using the editor to write a long program and trying to run it the > python command line showing it syntax error > That almost certainly means there is a syntax error in your code. Please provide some details - like the actual error text.

Re: How to test?

2020-06-20 Thread Mats Wichmann
On 5/1/20 2:34 PM, DL Neil via Python-list wrote: >>> Given your replies, 'now' might be a good time to take a look at >>> Pytest, and see how you could use it to help build better code - by >>> building tested units/functions which are assembled into ever-larger >>> tested-units... (there is a

Re: Python with text editor

2020-06-04 Thread Mats Wichmann
On 5/30/20 1:42 AM, Preetha M wrote: > Hello. Thank you for responding to my previous mail. Can someone tell me > how to connect python to sublime text 3. Whenever I select python and type > the code, it does not work when I press ctrl+B. Please tell. > Try Corey Schaefer's video on setup:

Re: pyinstaller

2020-06-10 Thread Mats Wichmann
On 6/10/20 8:50 AM, Calvin Spealman wrote: > On Wed, Jun 10, 2020 at 10:06 AM Chris Angelico wrote: > >> On Wed, Jun 10, 2020 at 11:49 PM Robin Becker wrote: >>> >>> I'm sure this has come up before, but a tiny pyinstaller created exe is >> being seen as malware by windows 10. >>> >>> Is there

Re: Fwd: python 3.8.3 fails

2020-06-13 Thread Mats Wichmann
On 6/11/20 8:58 AM, Avraham Markov wrote: > Please suggest something to fix > > -- Forwarded message - > From: Avraham Markov > Date: Thu, Jun 11, 2020 at 5:50 PM > Subject: python 3.8.3 fails > To: > > > Hello, I successfully installed Python 3.8.3 (64-bit) > at Windows 10

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-13 Thread Mats Wichmann
Mats Wichmann added the comment: "on python-list and probably elsewhere"... I can confirm these questions get mailed to webmas...@python.org :) A couple of comments since I see these fairly frequently: The "using" doc page may have too much information for beginner t

[issue40948] Better identify Windows installer as installer only, not runner

2020-06-13 Thread Mats Wichmann
Mats Wichmann added the comment: > py.exe is preferred *if* one starts python from a command line. I'm not a habitual Windows user (a certain project is making me spend way more time there than usual), but if I start typing python to a Windows search, after the first two lett

Re: Issues in downloading python

2020-07-17 Thread Mats Wichmann
On 7/17/20 11:09 AM, Abhiram R wrote: > It's most likely because you haven't added Python to your environment PATH > variable. > > The easiest path forward is to uninstall it from Applications and then when > you reinstall, tick the option on the bottom of the first splash screen of > the

[issue40948] Better identify Windows installer as installer only, not runner

2020-07-28 Thread Mats Wichmann
Mats Wichmann added the comment: I still think there ought to be some pointer to https://docs.python.org/3/using/windows.html in there. -- ___ Python tracker <https://bugs.python.org/issue40

Re: Dowloading package dependencies from locked down machine

2020-07-28 Thread Mats Wichmann
On 7/27/20 7:33 PM, Igor Korot wrote: > Hi, >> The issue is that the IT department thinks that installing the full >> power of Python scripting on an Internet facing machine is inconsistent >> with the "Cyber Essentials Plus" accreditiation that they need to win >> Government contracts. > Coming

Re: Request help w/pip install jq

2020-07-19 Thread Mats Wichmann
On 7/19/20 11:42 AM, Dennis Lee Bieber wrote: > On Sun, 19 Jul 2020 10:39:09 -0600, Mats Wichmann > declaimed the following: > >> there is no mention of Windows at all, so the guess would be it's not >> supported. >> > There is a whole open "issue&q

Re: Issues Download the Latest Version of Python Programming Language

2020-07-23 Thread Mats Wichmann
On 7/24/20 12:05 AM, Ejiofor Chidinma Peace wrote: > Dear Sir/Madam, > I trust this email finds you well. > > I have been having issues downloading the latest version of Python > programming Language on my PC (windows 10 operating system). Kindly assist > in resolving this issue at your earliest

Re: Installing python3 modules

2020-12-26 Thread Mats Wichmann
On 12/26/20 10:13 AM, Rich Shepard wrote: Running Slackware-14.2/x86_64 here. I'm trying to learn if any installed applications are still dependent on Python2 (version 2.7.17 installed) as its EOL is this coming Thursday and I want to clean out all Python2 modules and replace them with their

Re: Is there any way to check/de-cruft/update Python packages installed using pip?

2020-12-29 Thread Mats Wichmann
On 12/29/20 7:48 AM, Chris Green wrote: I seem to have quite a lot of old python packages installed over the years using pip and would like, if I can. to clear some of them out. Is there any way to tell if a python package was installed by me directly using pip or was installed from the

Re: Error

2020-12-07 Thread Mats Wichmann
On 12/7/20 11:13 AM, Michael Torrie wrote: On 12/7/20 11:07 AM, Barry Fitzgerald wrote: I did the pip install I did the pip install pygameThe pip install pgzero I get this error C:\Users\barol>pip install pgzeroDefaulting to user installation because normal site-packages is not

Re: [osx] dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python

2020-12-04 Thread Mats Wichmann
On 12/4/20 7:15 AM, Noah wrote: Hi there, Anybody know how to fix this issue on a mac? ❯ /usr/local/bin/python dyld: Library not loaded: /usr/local/Cellar/python@3.8/3.8.3_1/Frameworks/Python.framework/Versions/3.8/Python   Referenced from: /usr/local/bin/python   Reason: image not found

Re: problem in installation of python 3.9.0

2020-12-02 Thread Mats Wichmann
On 12/2/20 10:57 AM, Priyankgasree K wrote: Hello, I am Priyankgasree, i am facing problem in installing python3.9.0. after i finish download it always says you have to repair or uninstall. I have repaired and uninstalled and reinstalled several times but i can't do anything . And also

Re: problem in installation of python 3.9.0

2020-12-02 Thread Mats Wichmann
On 12/2/20 10:58 AM, Dan Stromberg wrote: Don't rerun the installer. This seems to be a common question and answer. It certainly does... Perhaps the installer could be named better, or Python could provide a shortcut for itself? I know it makes proper start menu entries for

Re: using regex for password validation

2020-12-23 Thread Mats Wichmann
On 12/23/20 10:03 AM, Sadaka Technology wrote: hello guys, I have this pattern for password validation (regex): I want these rules to be applied: Minimum 8 characters. The alphabets must be between [a-z] At least one alphabet should be of Upper Case [A-Z] At least 1 number or digit between

Re: Is there a conflict of libraries here?

2020-11-07 Thread Mats Wichmann
On 11/7/20 11:26 AM, Steve wrote: Ok, I think I see a light in the fog. It looks as if I can identify a variable to contain a library. Import datetime as dt1 I guess that I can have a second variable containing that same library: Import datetime as dt2 Should I presume that

Re: Module Download Problem

2020-10-29 Thread Mats Wichmann
On 10/29/20 11:07 AM, Gian_Xatzak. wrote: >Hello!! > >  > >I just download the latest version of python3 (Python3.9) and I have >problem to download NumPy,… etc. There are projects who have not released their 3.9-compatible wheels yet - the schedule for doing so is up to each

Re: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

2020-10-31 Thread Mats Wichmann
On 10/30/20 1:38 PM, Gian_Xatzak. wrote: >When I tried to download  matplotlib, it show me that message in the end: > >  > >ERROR: Command errored out with exit status 1: python setup.py egg_info >Check the logs for full command output. > >  > >*I have Windows 10,

Re: Best way to determine user's screensize?

2020-10-31 Thread Mats Wichmann
On 10/30/20 6:47 PM, songbird wrote: > Chris Angelico wrote: > ... >> I add my voice to those who detest applications that think they know >> best and decide that they own the entire screen. It is incredibly >> annoying. > > do you object to a window being put in the approximate > center of the

Re: Is there a conflict of libraries here?

2020-11-06 Thread Mats Wichmann
On 11/6/20 3:05 PM, Steve wrote: "Right, because the name "datetime" points to the class datetime in the module datetime. The class, unlike the module, has no "datetime" attribute." Ok, how do I unpoint/repoint a "datetime" to let the two locations work? "Apologies if you already

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Mats Wichmann
On 12/28/20 10:46 AM, Marco Sulla wrote: On Mon, 28 Dec 2020 at 17:37, Bischoop wrote: I'd like to check if there's "@" in a string and wondering if any method is better/safer than others. I was told on one occasion that I should use is than ==, so how would be on this example. s =

Re: help

2020-12-30 Thread Mats Wichmann
On 12/30/20 2:14 PM, BearGod777 wrote: every time i try and open a .py file it just ciomes up with either modify, uninstall or repair. i have tried every single one of these and i have tried to install another version (it couldnt run on that version) and it just doesnt load up. if i try and open

Re: A random word from one of two lists

2021-01-03 Thread Mats Wichmann
On 1/3/21 5:30 AM, Bischoop wrote: On 2021-01-02, Stefan Ram wrote: Bischoop writes: On 2021-01-02, Stefan Ram wrote: Otherweise, I'd go this way without a dictionary. import random animal = ['koala', 'kangaroo'] fruit = ['banana', 'apple'] kinds = [animal,fruit] kind = random.choice(

Re: A random word from one of two lists

2021-01-03 Thread Mats Wichmann
On 1/3/21 11:34 AM, Richard Damon wrote: It depends on what distribution of results you want. Since the example had two equal length list is doesn't matter, but if, say, there were many more animals then fruit, your method would produce an animal more often than a fruit, but the two level

Re: dayofyear is not great when going into a new year

2021-01-05 Thread Mats Wichmann
On 1/5/21 4:04 PM, Chris Angelico wrote: On Wed, Jan 6, 2021 at 10:01 AM Eli the Bearded <*@eli.users.panix.com> wrote: In comp.lang.python, Chris Angelico wrote: There are multiple definitions for "day of year", depending on how you want to handle certain oddities. The simplest is to

Re: Issues with running python in Command prompt

2021-01-16 Thread Mats Wichmann
On 1/16/21 8:30 AM, mohsen shooshtari wrote: hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what

Re: help

2020-12-31 Thread Mats Wichmann
On 12/31/20 8:11 AM, BearGod777 wrote: i am trying to open it by just left clicking the file in file explorer and i tried right clicking it and then pressing open with python 3.9.1 64-bit That *shouldn't* open the installer... (you can actually remove the installer file once you're done

Re: Reinstalling

2021-01-29 Thread Mats Wichmann
On 1/29/21 11:29 AM, Rafael Llera wrote: Good day; I installed Python3.9.1 and PyCharm two days ago and did a basic tutorial and all went well. My laptop got glitchy and I decided to uninstall and reinstall both apps (don't ask). Now I am having problems starting a project with the

Re: Pyautogui troubles

2021-01-31 Thread Mats Wichmann
On 1/30/21 2:58 PM, Philipp Daher via Python-list wrote: Dear Python-Team, I have just repaired python after running my program which imports pyautogui, closing and reopening it and then getting this: ModuleNotFoundError: No module named „pyautogui“. Repairing didn’t work and I still get that

Re: Fw: Trouble running python 3.6.4

2021-02-03 Thread Mats Wichmann
On 2/2/21 8:40 PM, damien jenman wrote: From: damien jenman Sent: Monday, 1 February 2021 10:29 AM To: python-list@python.org Subject: Trouble running python 3.6.4 Hi After setup being successful, of python 3.6.4 , it comes up online tutorial, documentation

Re: Replacement for Mailman

2021-06-08 Thread Mats Wichmann
On 6/8/21 5:34 PM, Chris Angelico wrote: On Wed, Jun 9, 2021 at 8:46 AM Jon Ribbens via Python-list wrote: On 2021-06-08, Grant Edwards wrote: On 2021-06-08, Paul Bryan wrote: How about Mailman 3.x on Python 3.x? According to https://www.gnu.org/software/mailman/requirements.html

Re: How to debug python + curses? [was: RE: Applying winpdb_reborn]

2021-06-07 Thread Mats Wichmann
On 6/2/21 7:24 PM, pjfarl...@earthlink.net wrote: -Original Message- From: Grant Edwards Sent: Monday, May 31, 2021 11:18 AM To: python-list@python.org Subject: Re: How to debug python + curses? [was: RE: Applying winpdb_reborn] On 2021-05-31, Dennis Lee Bieber wrote: On Mon, 31

Re: module include path - /usr/local/lib/python3 vs /usr/local/lib/python3.9

2021-06-17 Thread Mats Wichmann
On 6/17/21 1:53 AM, Joachim Wuttke wrote: How to write a platform-independent CMake install command to install a Swig-generated Python module? The following brings us very close to a solution: ``` execute_process(     COMMAND "${Python3_EXECUTABLE}"     -c "from distutils import sysconfig as

Re: Unable to remove setup of 3.9.5 from Windows 10

2021-06-19 Thread Mats Wichmann
On 6/19/21 10:14 AM, Manish Jain wrote: Hello Team, I have installed the Python 3.9.5 and trying to remove from the PC through the Uninstall Program (All Possible ways - Through Control Panel or Uninstall Python executable) It just outputs saying Uninstall Successfully but nothing happening

Re: Uninstall and Re-install Python - Windows 10 issues

2021-06-23 Thread Mats Wichmann
On 6/23/21 6:47 AM, Suretha Weweje wrote: After I uninstalled Python 3.7and Python 3.9 and installed Python 3.9.5 and is displayed in Apps & features: Python 3.9.5 Python 3.9.5 (64-bit), size 101 MB, and Python Launcher, size 1.80 MB Upon checking the python version, I get the following error

Re: IDLE is not working after Python installation .

2021-06-22 Thread Mats Wichmann
On 6/21/21 11:14 PM, Ayaana Soni wrote: I have installed python from your site. After installation my IDLE doesn't work. IDLE is not in my search list. Plz help!! Thank you! you asked this before, and didn't answer the questions you got in reply. What does "doesn't work" mean? How is

Re: STARTUP FAILURE

2021-05-13 Thread Mats Wichmann
On 5/13/21 7:49 AM, Sumukh chakkirala wrote: Hello, I have been facing this " startup failure" for a while now, I can open the IDLE from the programs that I have saved but I'm not able to open the IDLE directly. Hope you can help me with this issue as soon as possible. if it's the standard

Re: Hello! I was here to ask about pythonm actually I deleted the python 8 version and downloaded a new python 9 version but after deleting when I code something and after some days I want to open the

2021-05-14 Thread Mats Wichmann
On 5/14/21 2:55 AM, Payal Singh wrote: it's easier if you put that in the message body, not the subject line. if you're getting the repair/modify/uninstall dialog, it means you're running the installer again (that's its job, if already installed, to somehow modify the installation). Don't

Re: Proposal: Disconnect comp.lang.python from python-list

2021-05-06 Thread Mats Wichmann
On 5/5/21 10:33 PM, Dennis Lee Bieber wrote: I, for one, wish more mailing lists did have newsgroup access (I also wish for the demise of Google Groups, but short of a large explosive in Mountain View, doubt that will come to pass). Instead everything is being splintered into smaller

Re: Python install failing. Install log is available.

2021-05-21 Thread Mats Wichmann
On 5/21/21 4:21 AM, jan via Python-list wrote: OK, but 1. should the installer work for administrator + all users or not? 2. if not, should the installer work for me (a non-admin) and install python correctly and successfully for my account if I run it in my account, not the admin? It

Re: Unexpected Inheritance Problem

2021-05-20 Thread Mats Wichmann
On 5/20/21 4:54 AM, Richard Damon wrote: On 5/20/21 3:24 AM, Peter Otten wrote: On 20/05/2021 06:00, Richard Damon wrote: class GedcomHead(Gedcom0Tag): """GEDCOM 0 HEAD tag""" def ___init___(self, *, parent): An __init__ with three underscores; you must me joking ;) Yes, that

Re: Issue in software

2021-05-23 Thread Mats Wichmann
On 5/22/21 10:45 PM, pradeep Y wrote: I I couldn't get the solution for this issue since last week will you please help me to solve this issue the issue is when I opened command prompt this below message will Pop up "The program can't start because api-ms-win-crt-runtime-[1-1-0.dl] is missing

Re: Problem with pip installation

2021-05-27 Thread Mats Wichmann
On 5/27/21 1:08 PM, Dennis Lee Bieber wrote: On Thu, 27 May 2021 09:22:09 +0300, ? ??? declaimed the following: Good morning. I have o Windows 10 system and i can install pip. I try to follow the instruction that i find on internet but the did not work. Also itry to write the

Re: "py.ini" question

2021-04-24 Thread Mats Wichmann
On 4/24/21 8:23 AM, Gisle Vanem wrote: I have a question about the Python launcher;   c:\Windows\py.exe and the py.ini file. I have both Python 3.6 (32-bit) and Python 3.8 (64-bit) installed. And I have a 'c:\Users\Gisle\AppData\Local\py.ini' with this only:   [defaults]   python=3.6 A copy

Re: uninstall

2021-05-01 Thread Mats Wichmann
On 4/29/21 6:59 PM, Sian Doherty wrote: I’m trying to uninstall Python 3.8.5 on Windows 10 Pro 20H2 as I had multiple environments and as a result corrupted them. When I uninstall from control panel, it takes less than a second and says it uninstalled successfully but I can still access

Re: "py.ini" question

2021-04-25 Thread Mats Wichmann
On 4/24/21 2:57 PM, Chris Angelico wrote: On Sun, Apr 25, 2021 at 5:57 AM Gisle Vanem wrote: With 'py -3.6' or 'py 3.8' I get the expected. But with 'py -3': Python 3.8.9 (default, Apr 13 2021, 15:54:59) [GCC 10.2.0 64 bit (AMD64)] on win32 I believe that's because you're asking for

Re: Convert MBOX thunderbird to PST outlook

2021-02-07 Thread Mats Wichmann
On 2/7/21 7:06 AM, Kr4ck ALI wrote: Hello, I have to migrate multiple mailbox (emails, contacts, calendar, tasks) from thunderbird to outlook Office 365. So sorry to hear that. I plan to export all items from thunderbird files (.mbox for email, .sqlite or .sdb for calendar, .mab to contact)

Re: Troubles with Python imports

2021-02-09 Thread Mats Wichmann
On 2/9/21 7:55 AM, Philipp Daher via Python-list wrote: Hello, I’ve just typed „pip install selenium“ into my command prompt on windows 10. Although my computer told me that the requirement was already satisfied, import selenium did not work. So I tried different methods to install it and

Re: installation issues

2021-02-10 Thread Mats Wichmann
On 2/9/21 4:23 PM, Martin Lopez wrote: Hello, My name is Martin Lopez. I just downloaded Python 3.9.1 (64 bit) Setup. After I install the program then try to run it, with no success. I've uninstalled all previous versions and reinstalled them, but it does not seem to help. Can you please

Re: memory consumption

2021-04-01 Thread Mats Wichmann
On 4/1/21 5:50 AM, Alexey wrote: Found it. As I said before the problem was lurking in the cache. Few days ago I read about circular references and things like that and I thought to myself that it might be the case. To build the cache I was using lots of 'setdefault' methods chained together

  1   2   3   4   >