Re: PythonPath / sys.path

2023-05-14 Thread Mats Wichmann
On 5/14/23 10:43, Barry wrote: I take it you have business reasons to use an obsolete version python. Where did you get your version of python from? In fact, a *nine* year old version of Python that reached end-of-life four years ago. Just sayin' Python version shouldn't have anything to d

Re: PythonPath / sys.path

2023-05-14 Thread Mats Wichmann
On 5/14/23 13:00, Grizzy Adams via Python-list wrote: Sunday, May 14, 2023 at 11:11, Mats Wichmann wrote: Re: PythonPath / sys.path (at least in part) On 5/14/23 10:43, Barry wrote: I take it you have business reasons to use an obsolete version python. Where did you get your version of

Re: What to use instead of nntplib?

2023-05-16 Thread Mats Wichmann
On 5/15/23 20:12, Grant Edwards wrote: On 2023-05-15, Skip Montanaro wrote: I got a nice warning today from the inews utility I use daily: DeprecationWarning: 'nntplib' is deprecated and slated for removal in Python 3.13 What should I use in place of nntplib? I'd recommend creatin

Re: Tkinter (related)~

2023-05-18 Thread Mats Wichmann
On 5/18/23 10:06, Jack Dangler wrote: I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to install the package on to my Ubu laptop

Re: Learning tkinter

2023-05-18 Thread Mats Wichmann
On 5/18/23 08:50, Jim Schwartz wrote: This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") It's probably instructive that IDLE always brings it in this way. Lib/idlelib/config_key.py:from tkinter import messagebox Lib/idlelib/configdial

Re: Error installing packages or upgrading pip

2023-05-20 Thread Mats Wichmann
On 5/18/23 04:30, Test Only wrote: Hi there, I hope you are in a great health I am having a problem with python even though I uninstall and reinstall it again multiple times Ummm... there's usually not a great reason to do that. I know it's the traditional "Windows Way" of the past, but usual

Re: Is there a Python module to parse a date like the 'date' command in Linux?

2023-05-22 Thread Mats Wichmann
On 5/20/23 13:53, Chris Green wrote: I'm converting a bash script to python as it has become rather clumsy in bash. However I have hit a problem with converting dates, the bash script has:- dat=$(date --date "$1" +"%Y/%m/%d") and this will accept almost anything reasonably sensible that c

Re: What to use instead of nntplib?

2023-05-30 Thread Mats Wichmann
On 5/22/23 17:59, Grant Edwards wrote: On 2023-05-22, Keith Thompson wrote: My understanding is that nntplib isn't being erased from reality, it's merely being removed from the set of modules that are provided by default. I presume that once it's removed from the core, it will still be possib

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 s

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 interpreter

Re: Pyautogui troubles

2021-01-31 Thread Mats Wichmann
, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> sys.path ['', '/usr/lib64/python38.zip', '/usr/lib64/python3.8'

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: 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 type

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 assi

Re: IDLE

2021-02-16 Thread Mats Wichmann
On 2/16/21 8:09 AM, Will Anderson wrote: Hi, I hope you are having a good day. I have a small IDLE problem and can’t seem to fix it. I have a .py file that I want to open using IDLE but there is no option I have even tried totally wiping python and reinstalling it nothing seems to

Re: [Python-Dev] Python 0.9.1

2021-02-16 Thread Mats Wichmann
On 2/16/21 3:44 PM, Guido van Rossum wrote: Awesome, Skip! Was there a date somewhere? I can't recall if this would have been the first open source release (from just about 30 years ago, sometime in February 1991) or some time later in the same year? Guido van Rossum unread, Python 0.9.1 part

Re: Problem when scraping the 100 Movie titles.

2021-02-18 Thread Mats Wichmann
On 2/18/21 10:43 AM, Aakash Jana wrote: I have done some webscraping before i think you need to get a slightly more tactical way to get these titles scraped . Try to see what classes identify the cards (in which movie title is given) and then try to pull the heading out of those. Try to get the d

Re: editor recommendations?

2021-02-26 Thread Mats Wichmann
On 2/26/21 7:51 AM, Ethan Furman wrote: I'm looking for an editor to use for Python programming, as well as related incidentals such as markdown files, restructured text, etc. I'm currently using vim, and the primary reason I've stuck with it for so long is because I can get truly black screen

Re: Not able to use python properly

2021-02-27 Thread Mats Wichmann
On 2/27/21 3:45 PM, Sahaj Verma wrote: I am not able to install and use pip . I have installed python 3.9.2 version on my laptop but I am unable to use pip function. Kindly look into this matter as soon as possible. Thanking You. Sahaj Verma Sent fr

Re: try to install Python3.9.2 / setup failed

2021-03-02 Thread Mats Wichmann
On 3/1/21 10:46 AM, manfred.schm...@posteo.de wrote: Hello Python Team, i tried to install SW above; the installation stopped with the message "one or more issues caused the setup to fail. Please the issues and then retry 0x80070642 installation stopped by user" What must i do go get the SW in

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Mats Wichmann
On 3/10/21 11:56 AM, Thomas Jollans wrote: On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system that can't use the C part, you could just decl

Re: Application problems

2021-03-10 Thread Mats Wichmann
On 3/10/21 12:25 PM, Yoosuf Oluwatosin via Python-list wrote: I have downloaded python 3.9.2 on my hp laptop with windows 10 and tried opening both the normal python and the idle python on my pc but the norml keeps opening the modify, repair and uninstall page while the idle keeps giving a

Re: Uninstall error

2021-03-13 Thread Mats Wichmann
On 3/12/21 10:52 AM, Premmy wrote: Hi. I am trying to uninstall python on my computer because i found a better one but its not getting deleted from control panel. can you please help me As already noted, it's really important to learn to give good details when asking for help, people who are g

Re: .title() - annoying mistake

2021-03-19 Thread Mats Wichmann
On 3/19/21 12:49 PM, Grant Edwards wrote: On 2021-03-19, MRAB wrote: On 2021-03-19 17:19, Abdur-Rahmaan Janhangeer wrote: Aie sorry, Did not know it targetted the non-english speakers. You want English "man's" to become "Man's", but French "l'homme" to become "L'Homme". It's language-depend

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 s

Re: Issues in starting Python application

2021-04-01 Thread Mats Wichmann
On 4/1/21 9:08 AM, Mahira Pamnani wrote: Sir I have been trying hard to install Python on my PC since a long time. The application gets installed but, for reasons unknown, it doesn't start. It keeps asking to repair, modify or uninstall the application. I have tried doing that too, but it still d

Re: all versions of python fail to indent after conditional statement

2021-04-02 Thread Mats Wichmann
On 4/2/21 9:42 AM, Joe Pfeiffer wrote: It's not a bug, it's a design choice you are disagreeing with: managing indentation is your job, not the interpreter's. For anything other than an absolutely trivial three-line script, I write in an editor that does a good job helping me manage indentation

Re: python text://protocol client?

2021-04-09 Thread Mats Wichmann
On 4/9/21 11:08 AM, Eli the Bearded wrote: In comp.lang.python, Petite Abeille wrote: Would you know of any python text://protocol client? Or server? The whole thing was started (judging by git commits) about a month ago. https://github.com/textprotocol?tab=overview&from=2021-03-01&to=2021-

Re: Comparing text strings

2021-04-13 Thread Mats Wichmann
On 4/12/21 5:11 PM, Rich Shepard wrote: I'm running Slackware64-14.2 and keep a list of installed packages. When a package is upgraded I want to remove the earlier version, and I've not before written a script like this. Could there be a module or tool that already exists to do this? If not, whic

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: "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: 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 python

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 a

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 "ID

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: 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 i

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 should,

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 f

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 c

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 May

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 mailman

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 s

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 (St

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: 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 m

Re: Python does not work

2021-07-13 Thread Mats Wichmann
On 7/13/21 3:05 AM, rubiks solver wrote: When I run python 3.9.6 on visual studio code it opens multiple python setup windows. I rebooted my computer. Same result. Is this a bug? No, it's a setup problem. Sounds like when you pointed Code at Python, you pointed it at the in

Re: some problems for an introductory python test

2021-08-09 Thread Mats Wichmann
On 8/9/21 3:07 PM, Hope Rouselle wrote: I'm looking for questions to put on a test for students who never had any experience with programming, but have learned to use Python's procedures, default arguments, if-else, strings, tuples, lists and dictionaries. (There's no OOP at all in this course.

Re: some problems for an introductory python test

2021-08-09 Thread Mats Wichmann
On 8/9/21 6:34 PM, Chris Angelico wrote: If you want to highlight the OOP nature of Python, rather than looking at magic methods, I'd first look at polymorphism. You can add a pair of integers; you can add a pair of tuples; you can add a pair of strings. Each one logically adds two things toge

Re: PyQt5 is not recognized from python 3.8 installation in python 3.10

2021-08-22 Thread Mats Wichmann
On 8/22/21 7:04 AM, Mohsen Owzar wrote: Hi guys, I have on my laptop the python installation 3.8 and newly I installed newest version 3.10 as well on my laptop. Now I have two IDLEs for both of the installations. When I rund some *.py file, having PyQt5 module, on the 3.8 version, it works as b

Re: matplotlib questions

2021-08-26 Thread Mats Wichmann
On 8/26/21 9:47 AM, Steve wrote: I am trying to modify the "Bar Graph Demo" at https://matplotlib.org/stable/gallery/index.html, Lines, bars, and markers but the more I experiment and change the code, the more messed up it becomes. I have the demo code working. This is my second attempt. I gue

Re: Problem with python

2021-09-04 Thread Mats Wichmann
On 9/4/21 12:27 PM, Igor Korot wrote: Hi, ALL, [code] igor@WaylandGnome ~/bakefile $ python Python 3.9.6 (default, Aug 8 2021, 17:26:32) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. from distutils import sysconfig print sysconfig.get_python_inc()

Re: query

2021-09-19 Thread Mats Wichmann
On 9/19/21 06:42, Shashwat Pandey wrote: How to Fix Installation Error of PyAudio in VS Code ( Windows 32 Bit ) ?? Please Answer Me It's very essential to complete my concept digitalization system project. This comes up somewhat often - pyaudio has not released new binary installer pack

Re: XML Considered Harmful

2021-09-23 Thread Mats Wichmann
On 9/22/21 10:31, Dennis Lee Bieber wrote: If you control both the data generation and the data consumption, finding some format ... This is really the key. I rant at people seeming to believe that csv is THE data interchange format, and it's about as bad as it gets at that, if you

Re: Subject: Re: Posts from gmane no longer allowed?

2021-09-26 Thread Mats Wichmann
On 9/26/21 10:38, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-09-26 at 11:21:08 -0500, No. I use mbsync (formerly isync) to synchronize my gmail account with a local maildir folder, and while mbsync does send the app password (over TLS) to google every few minutes, it doesn't need the s

Re: Python added to PATH, cannot be directly accessed, cannot install pip

2021-09-27 Thread Mats Wichmann
On 9/27/21 08:00, Will wrote: Hello team at python.org, I've asked this question on a forum and tried to figure it out myself, but I'm at a dead end. I don't know if you guys answer questions like this but I have no where else to turn to. I am using a Lenovo Laptop using

Re: How to pass a method as argument?

2021-09-30 Thread Mats Wichmann
On 9/29/21 23:11, Anil Anvesh wrote: I want to write a python calculator program that has different methods to add, subtract, multiply which takes 2 parameters. I need to have an execute method when passed with 3 parameters, should call respective method and perform the operation. How can I ac

Re: HELP - uninstall pyton error

2021-10-08 Thread Mats Wichmann
On 10/7/21 10:18, Almadar Plus wrote: Could you please help me uninstall python? see attached screenshots files Regards the list doesn't pass on screenshots, so we see nothing. you'll need to describe your problem. -- https://mail.python.org/mailman/listinfo/python-list

Re: spyder does not work under root! [linux]

2021-10-14 Thread Mats Wichmann
On 10/13/21 16:55, Michael Torrie wrote: On 10/13/21 12:09 PM, Paulo da Silva wrote: spyder and eric are both python editors/debuggers! Why are they related with web browsers?! Good point. I was going off of the chromium bug report. My bad. I mistook Spyder for Selenium, which is a web scrapi

Re: Request to advise error for python.

2021-10-21 Thread Mats Wichmann
On 10/20/21 23:10, 정성학(대학원생-자동차IT융합전공) via Python-list wrote: Hi There are some errors in order to install numpy as follows. pip install numpy File "", line 1 pip install numpy ^ SyntaxError: invalid syntax. Perhaps you forgot a comma? Would you advise me to co

Re: Unable to Install Matplotlib & Pandas for Python 3.10

2021-10-24 Thread Mats Wichmann
On 10/24/21 09:46, MRAB wrote: On 2021-10-24 12:41, Anik Dey wrote: Hello, I downloaded & installed Python 3.10 but it didn't replace Python 3.9. And now I can't install Matplotlib & Pandas. What should I do? Multiple versions of Python can exist alongside each other. You haven't said what yo

what's unsafe to do in a __getattr__?

2021-10-24 Thread Mats Wichmann
Have run into a problem on a "mature" project I work on (there are many years of history before I joined), there are a combination of factors that combine to trigger a KeyError when using copy.copy(). I don't want to write a massive essay here but hoping to give enough to set the context.

Re: what's unsafe to do in a __getattr__?

2021-10-25 Thread Mats Wichmann
On 10/25/21 10:48, Dieter Maurer wrote: Mats Wichmann wrote at 2021-10-24 19:10 -0600: Have run into a problem on a "mature" project I work on (there are many years of history before I joined), there are a combination of factors that combine to trigger a KeyError when using

Re: Proliferation of Python packaging formats

2021-11-17 Thread Mats Wichmann
On 11/17/21 07:44, Chris Angelico wrote: On Thu, Nov 18, 2021 at 12:20 AM Skip Montanaro wrote: Is the proliferation of packaging formats in Python as nutzo as this author believes? https://drewdevault.com/2021/11/16/Python-stop-screwing-distros-over.html Asking because I've never been in t

Re: get_axes not present?

2021-11-18 Thread Mats Wichmann
On 11/18/21 02:49, Mahmood Naderan via Python-list wrote:   File "/home/mahmood/.local/lib/python3.8/site-packages/pandas/plotting/_matplotlib/core.py", line 903, in _get_subplots     ax for ax in self.axes[0].get_figure().get_axes() if isinstance(ax, Subplot) AttributeError: 'NoneType' obj

Re: import question

2021-11-19 Thread Mats Wichmann
On 11/18/21 21:00, Dan Stromberg wrote: On Thu, Nov 18, 2021 at 6:19 PM Chris Angelico wrote: On Fri, Nov 19, 2021 at 11:24 AM Dan Stromberg wrote: On Thu, Nov 18, 2021 at 12:21 PM Chris Angelico wrote: If you're trying to make a Python-in-Python sandbox, I recommend not. Instead, use

Re: Unexpected behaviour of math.floor, round and int functions (rounding)

2021-11-19 Thread Mats Wichmann
On 11/18/21 19:40, 2qdxy4rzwzuui...@potatochowder.com wrote: On 2021-11-18 at 23:16:32 -0300, René Silva Valdés wrote: Hello, I would like to report the following issue: Working with floats i noticed that: int(23.99/12) returns 1, and int(23.999/12) returns 2 This im

Re: pyinstaller wrong classified as Windows virus

2021-11-25 Thread Mats Wichmann
On 11/25/21 11:00, Chris Angelico wrote: Can someone confirm that it's still possible to run the Python installer without admin rights, for a per-user installation? It always used to be possible, but I haven't checked. You only need admin rights for some special cases. While Win7 was still s

Re: pyinstaller wrong classified as Windows virus

2021-11-29 Thread Mats Wichmann
On 11/29/21 12:04, Benjamin Schollnick wrote: Windows Defender has a setting to also use “Reputation Scoring”. What that simply means is that WDef will report back a hash to microsoft which is then checked to see if it is known. If it is known, then it has a reputation and based off that repu

Re: Installation of GeoPandas - failed at fiona

2021-12-01 Thread Mats Wichmann
On 12/1/21 03:18, Shaozhong SHI wrote: I am trying to install geopandas. I navigated to c:\programData|Anaconda3\Scripts> and typed in 'pip install geopandas'. Usually if you're using the Anaconda environment, you should use the "conda" installer, for consistency. It ran but failed at fio

Re: how I can get python idle?

2021-12-02 Thread Mats Wichmann
On 12/2/21 13:37, nikos petsios wrote: See here: https://docs.python.org/3/using/ If you're on windows you likely have it if you installed Python. -- https://mail.python.org/mailman/listinfo/python-list

Re: python problem

2021-12-08 Thread Mats Wichmann
On 12/8/21 11:18, Larry Warner wrote: I am new at Python. I have installed Python 3.10.1 and the latest Pycharm. When I attempt to execute anything via Pycharm or the command line, I receive a message it can not find Python. I do not know where Python was loaded or where to find and to update PA

Re: help

2021-12-09 Thread Mats Wichmann
On 12/9/21 03:39, smita wrote: I am not able to open python on my laptop plzz help You're going to have to provide some details. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to package a Python command line app?

2021-12-09 Thread Mats Wichmann
On 12/9/21 11:35, Manfred Lotz wrote: I played with pyinstaller which worked fine. However, it builds a dynamic executable and thus it is glibc version dependent. Means, I have to build different executables for differen glibc versions. So, it seems I will have to check how executable zip archi

Re: FW: pip Error

2021-12-11 Thread Mats Wichmann
On 12/11/21 00:35, Sidharth S Nair wrote: Hi, I am NINJAGAMING107 a active python user and lately I have been trying to make my own personal AI assistant but I am not able to make because I am not able to import Speech Recognition and some other more. The error says module not fo

Re: Can Python call and use FME modules and functions such as StreamOrderCalculator?

2021-12-23 Thread Mats Wichmann
On 12/23/21 09:38, Shaozhong SHI wrote: > Can we do something like import an fme.something and make use of FME > modules and functions? And what, pray tell, is FME? -- https://mail.python.org/mailman/listinfo/python-list

Re: Selection sort

2021-12-24 Thread Mats Wichmann
On 12/24/21 07:22, vani arul wrote: > Hello, > I am trying write a code.Can some help me find the error in my code. > Thanks! > > > def selectionsort(arr): ># le=len(arr) > for b in range(0,len(arr)-1): > pos=b > for a in range(b+1,len(arr)-1): > if arr[b]>arr[

Re: AttributeError: 'NoneType' object has no attribute 'get'

2022-01-06 Thread Mats Wichmann
On 1/6/22 11:02, Kushal Kumaran wrote: > On Tue, Jan 04 2022 at 11:34:20 PM, NArshad wrote: >> How to correct what is written below: >> >> Exception in Tkinter callback >> Traceback (most recent call last): >> File "C:\Users\Dani Brothers\Anaconda3\lib\tkinter\__init__.py", line >> 1705, in __c

Re: Pip not working

2022-01-07 Thread Mats Wichmann
On 1/5/22 01:29, Malick Lickta Keita wrote: > Hello I’ve installed the latest version of python but pip is not working If you want some help with that, you're going to have to provide some details - no person on earth who isn't sitting looking at your computer screen with you would know what is

Re: Using PIP in Python 3.10 on Windows 10

2022-01-14 Thread Mats Wichmann
On 1/14/22 10:40, Jonathan Gossage wrote: > I have installed Python 3.10.1 on Windows 10 using the recommended Windows > Installer. When I try to access PIP from the command line, I get the > following result, even though Python itself is accessible. By this do you mean the python.org installer

Re: What to write or search on github to get the code for what is written below:

2022-01-15 Thread Mats Wichmann
On 1/13/22 16:08, Avi Gross via Python-list wrote: > > I am not replying to anything below so I have removed it. > Instead, someone suggested Python which indeed, with lots of work, can open > just about ANY nonsensical file and diddle around and rewrite it, but WHY? well, the topic *was* rais

Re: Writing a string with comma in one column of CSV file

2022-01-16 Thread Mats Wichmann
On 1/15/22 13:56, Mahmood Naderan via Python-list wrote: > Hi, > I use the following line to write some information to a CSV file which is > comma delimited. > > f = open(output_file, 'w', newline='') > wr = csv.writer(f) > ... > f.write(str(n) + "," + str(key) + "\n" ) > > > Problem is that ke

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Mats Wichmann
On 1/15/22 14:24, Avi Gross via Python-list wrote: > Mats, > Yes, this is a Python mailing list and I welcome people interested in doing > something in Python who need a little help or advice but have some idea of > what they are doing and present us with enough info more than &qu

Re: Why There Is No Python Compressed Archive or Binaries ?

2022-01-18 Thread Mats Wichmann
On 1/17/22 23:31, Kirill Ratkin wrote: > Hi Grant > > Hmmm...  definitly you are right in particular solution. > > But Ok, let me show example. > > > I often use Go in parallel with Python and sometimes I switch between > Windows/Linux also. On both systems I just download Go toolset as > tarba

Re: mac app from a python script?

2022-01-24 Thread Mats Wichmann
On 1/23/22 10:59, Dan Stromberg wrote: > Hi folks. > > I have a Python 3 script (built on top of gi.respository.Gtk) that runs on > Linux and macOS 11.5. It's at https://stromberg.dnsalias.org/~strombrg/hcm/ > if you're curious. > > It works the way I want on Linux, but on macOS I seem to have t

Re: Problem upgrading pip and installing pygame

2022-01-31 Thread Mats Wichmann
On 1/31/22 07:18, ojomooluwatolami...@gmail.com wrote: > > Good morning, Python. I am having trouble installing pygame. it keeps saying > to upgrade my pip version which I have done several times. then when I tried > importing python to see if it has worked, in the ide it says the module does >

Re: Error installing requirements

2022-02-18 Thread Mats Wichmann
And the question is? On 2/18/22 00:23, Saruni David wrote: > PS C:\Users\Nepapa David\cpims_api> pip install -r requirements/base.txt > DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. > Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 > will dr

Re: Long running process - how to speed up?

2022-02-19 Thread Mats Wichmann
On 2/19/22 05:09, Shaozhong SHI wrote: > Can it be divided into several processes? > Regards, > David The answer is: "maybe". Multiprocessing doesn't happen for free, you have to figure out how to divide the task up, requiring thought and effort. We can't guess to what extent the problem you have

Re: Python

2022-02-22 Thread Mats Wichmann
On 2/21/22 23:17, SASI KANTH REDDY GUJJULA wrote: > Pip files are not installing after the python 3.10.2 version installing in my > devise. Please solve this for me. Please ask a clearer question. Can you tell us what "are not installing" means? Are you getting permission errors? Are you instal

Re: Unable to open Python

2022-03-28 Thread Mats Wichmann
On 3/28/22 10:02, Grant Edwards wrote: > On 2022-03-28, Grant Edwards wrote: >> On 2022-03-28, kristine RABIA wrote: >> >>> I downloaded successfully Python, however when I am trying to open it, >>> brings the window repair, modify or uninstall, I tried to click on repair >>> and modify after all

Re: Add a method to list the current named logging levels

2022-03-30 Thread Mats Wichmann
On 3/30/22 10:39, Chris Angelico wrote: > New in 3.11: > > https://docs.python.org/3.11/library/logging.html#logging.getLevelNamesMapping > > I'd say it's reasonable to use this, and then to backport it to older > versions by monkeypatching it in (by referencing the internal). You > potentially

Re: Issues

2022-04-09 Thread Mats Wichmann
On 4/8/22 14:24, MRAB wrote: > On 2022-04-08 20:35, Stevenson, John B via Python-list wrote: >> Hello, >> >> As a quick disclaimer, I am sorry if you have received this message >> multiple times over from me. I've been having technical difficulties >> trying to reach this email. Thank you. >> >> I'

Re: Making a Python program into an executable file

2022-04-11 Thread Mats Wichmann
On 4/11/22 10:13, Brian Wagstaff via Python-list wrote: > Dear Python team, > I am trying to find out how to make my Python programs into executable files > (.exe, I presume) using Pyinstaller. I searched on line for how to do this > (the document I came across is headed Data to Fish), and it see

Re: No shortcut Icon on Desktop

2022-04-14 Thread Mats Wichmann
On 4/14/22 17:08, Richard Damon wrote: > I think the issue is that the 'python' interpreter/compiler isn't the > sort of program that makes sense to make a desktop icon for, as it is a > command line utility. > > Perhaps making an icon for IDLE, if it has also been installed, but then > the issue

Re: No shortcut Icon on Desktop

2022-04-14 Thread Mats Wichmann
On 4/14/22 18:06, Grant Edwards wrote: > On 2022-04-14, Richard Damon wrote: > >> I think the issue is that the 'python' interpreter/compiler isn't the >> sort of program that makes sense to make a desktop icon for, as it is a >> command line utility. > > Yes, it is a command line utility. Why

Re: No shortcut Icon on Desktop

2022-04-15 Thread Mats Wichmann
On 4/15/22 08:59, Grant Edwards wrote: > Of course it's easy to add. But, we're talking about people who have > no idea how to do that. They have no clue how to "navigate to the > install directory". They don't even realize anything _was_ installed. I dunno, it's a pretty WIndows-y thing, right-

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: > /home/srinivasan/Downloa

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] 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: "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

<    1   2   3   4   >