Re: Python3 Fork of BMWrapper

2024-09-06 Thread Schimon Jehudah via Python-list
Good day, 711 Spooky Mart! Did you consider to add support for IRC or XMPP too? Best regards, Schimon On Thu, 5 Sep 2024 04:47:39 - 711 Spooky Mart via Python-list wrote: > from https://github.com/kashikoibumi/bmwrapper > > bmwrapper is a poorly hacked together python script to let Thund

Re: Unofficial PyBitmessage port to run with Python3 and PyQt5

2024-09-06 Thread Schimon Jehudah via Python-list
available soon to help with coding. Kind regards, Schimon On Thu, 5 Sep 2024 04:42:20 - 711 Spooky Mart via Python-list wrote: > from > https://www.reddit.com/r/bitmessage/comments/1d5ff18/unofficial_pybitmessage_port_to_run_with_python3/ > > Unofficial PyBitmessage port to run with

Python3 Fork of BMWrapper

2024-09-05 Thread 711 Spooky Mart via Python-list
from https://github.com/kashikoibumi/bmwrapper bmwrapper is a poorly hacked together python script to let Thunderbird and PyBitmessage communicate, similar to AyrA's (generally much better) application: Bitmessage2Mail. I'm on Linux, and don't feel like dealing with wine. So I wrote this to fil

Unofficial PyBitmessage port to run with Python3 and PyQt5

2024-09-05 Thread 711 Spooky Mart via Python-list
from https://www.reddit.com/r/bitmessage/comments/1d5ff18/unofficial_pybitmessage_port_to_run_with_python3/ Unofficial PyBitmessage port to run with Python3 and PyQt5 The official PyBitmessage still runs with outdated Python2 and PyQt4. Recently, I'm trying to port PyBitmessage to run

Re: bring back nntp library to python3

2024-08-14 Thread gene heskett via Python-list
On 8/14/24 19:43, dn via Python-list wrote: Recently there was an election for PSF members. Did 'everyone' participate? Of course not, I didn't simply because I don't know enough have a cogent opinion. But conversations like this are would seem to be good if they don't degenerate into name c

Re: bring back nntp library to python3

2024-08-14 Thread dn via Python-list
On 15/08/24 10:56, Alan Gauld via Python-list wrote: On 14/08/2024 23:32, Left Right via Python-list wrote: Lots of people care but the ability to influence these decisions seems to have been removed far from the general python user community. Python has moved from the BDFL/Bazaar to the Committe

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:56, Alan Gauld via Python-list wrote: > Lots of people care but the ability to influence these > decisions seems to have been removed far from the > general python user community. Python has moved from > the BDFL/Bazaar to the Committee/Cathedral. Probably > an inevitable consequenc

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 15:32, Left Right via Python-list wrote: > I think the right word for this is "delusional". But people get > offended when other people use the right words. Instead they want a > grotesque round-about way of saying the same thing... > > So, the grotesque round-about way of saying this,

Re: bring back nntp library to python3

2024-08-14 Thread Alan Gauld via Python-list
On 14/08/2024 23:32, Left Right via Python-list wrote: >> it became simple and straightforward to >> download and install packages. > > I think the right word for this is "delusional". I agree. But even if it worked it doesn't alter the fact that by not having batteries included it puts the onus

Re: bring back nntp library to python3

2024-08-14 Thread Left Right via Python-list
> it became simple and straightforward to > download and install packages. I think the right word for this is "delusional". But people get offended when other people use the right words. Instead they want a grotesque round-about way of saying the same thing... So, the grotesque round-about way of

Re: bring back nntp library to python3

2024-08-14 Thread Ethan Furman via Python-list
On 8/14/24 13:14, Keith Thompson via Python-list wrote: > The rationale for removing nntplib and other modules from the default > installation is explained in PEP 0594 . > > """ > The nntplib tests have been the cause of additional work in the recent > past. Pyt

Re: bring back nntp library to python3

2024-08-14 Thread Keith Thompson via Python-list
se of the word "deprecated" is misleading. $ python3 Python 3.12.4 (main, Jun 27 2024, 13:53:59) [GCC 13.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import nntplib :1: DeprecationWarning: &#x

Re: python3 package import difference?

2024-08-08 Thread Cameron Simpson via Python-list
On 08Aug2024 21:55, Gilmeh Serda wrote: I guess in a sense Py2 was smarter figuring out what whent where and where it came from. Or it was a bad hack that has been removed. No, Python 2 offered less control. -- https://mail.python.org/mailman/listinfo/python-list

Re: python3 package import difference?

2024-08-07 Thread Cameron Simpson via Python-list
On 07Aug2024 08:35, Tobiah wrote: When I do the same import with python3, I get: Traceback (most recent call last): File "/home/toby/me", line 1, in import rcs.dbi File "/usr/regos-1.0/lib/python/rcs/dbi/__init__.py", line 1, in

Re: python3 package import difference?

2024-08-07 Thread Chris Angelico via Python-list
On Thu, 8 Aug 2024 at 03:40, Tobiah via Python-list wrote: > The one under rcs.dbi contains: > > from dbi import * > from regos import * > You probably want these to be package-relative now: from .dbi import * from .regos import * Or, since you're using namespaced imports anyway ("rcs

Re: python3 package import difference?

2024-08-07 Thread Ronaldo Sc via Python-list
*empty* > > > the __init__.py file under 'rcs' is empty. > The one under rcs.dbi contains: > > from dbi import * > from regos import * > > > With python2, I'd go: > > import rcs.dbi > > then I'd have access to stuff in regos.

python3 package import difference?

2024-08-07 Thread Tobiah via Python-list
i contains: from dbi import * from regos import * With python2, I'd go: import rcs.dbi then I'd have access to stuff in regos.py as: rcs.dbi.feature() (Where 'feature' is defined in regos.py) When I do the same import with python3, I get: Tr

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-23 Thread Sibylle Koczian via Python-list
Am 17.01.2024 um 19:44 schrieb Mats Wichmann via Python-list: Be interesting to know if your WIndows 10 has those files in place, and it's just a missing path entry (a good thing, perhaps) that's causing it not to be found there. Yes. Python is not on the Path - by design. while the new Wi

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-23 Thread Sibylle Koczian via Python-list
find it in settings you can turn off the python and python3 aliases. Thank you! That did it. These two settings were off in the older Windows 10 installation and on in the new Windows 11. Changed there and the shebang lines with "/env" work as expected. I didn't remember ev

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-17 Thread Mats Wichmann via Python-list
python.org: yes. this question is about the python.org distribution. but, Windows natively has something called python.exe and python3.exe which is interfering here, IF the python.org install isn't directed to put itself into the path, AND if the "#!/usr/bin/env python3" form is

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-16 Thread Barry via Python-list
e python and python3 aliases. Barry -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-16 Thread Sibylle Koczian via Python-list
distribution. but, Windows natively has something called python.exe and python3.exe which is interfering here, IF the python.org install isn't directed to put itself into the path, AND if the "#!/usr/bin/env python3" form is used, causing a search in PATH, which is the setup Sibyll

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 7:24 PM, Thomas Passin wrote: On 1/15/2024 6:27 PM, Greg Ewing via Python-list wrote: On 16/01/24 11:55 am, Mats Wichmann wrote: Windows natively has something called python.exe and python3.exe which is interfering here I'm wondering whether py.exe should be taught to reco

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 6:27 PM, Greg Ewing via Python-list wrote: On 16/01/24 11:55 am, Mats Wichmann wrote: Windows natively has something called python.exe and python3.exe which is interfering here I'm wondering whether py.exe should be taught to recognise these stubs and ignore them. This s

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Greg Ewing via Python-list
On 16/01/24 11:55 am, Mats Wichmann wrote: Windows natively has something called python.exe and python3.exe which is interfering here I'm wondering whether py.exe should be taught to recognise these stubs and ignore them. This sounds like something that could trip a lot of people up. --

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Mats Wichmann via Python-list
On 1/15/24 12:01, Thomas Passin via Python-list wrote: On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote: On 1/15/24 09:44, Sibylle Koczian via Python-list wrote: First and foremost I want to understand why I'm seeing this: - Python scripts with "/usr/bin/env python3"

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Thomas Passin via Python-list
On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote: On 1/15/24 09:44, Sibylle Koczian via Python-list wrote: First and foremost I want to understand why I'm seeing this: - Python scripts with "/usr/bin/env python3" as shebang line work as expected on a computer with

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Mats Wichmann via Python-list
On 1/15/24 09:44, Sibylle Koczian via Python-list wrote: In the Python documentation for versions 3.11 and 3.12 I found no differences regarding py.exe and shebang lines. Then I removed the "/env" from the shebang lines and could start the scripts from the second computer. That certainly is a

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Mats Wichmann via Python-list
On 1/15/24 09:44, Sibylle Koczian via Python-list wrote: First and foremost I want to understand why I'm seeing this: - Python scripts with "/usr/bin/env python3" as shebang line work as expected on a computer with Windows 10 and Python 3.11.5. They have worked for years

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-15 Thread Sibylle Koczian via Python-list
I want to understand why I'm seeing this: - Python scripts with "/usr/bin/env python3" as shebang line work as expected on a computer with Windows 10 and Python 3.11.5. They have worked for years on this machine, using either the latest Python or one version before (depending on av

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Mike Dewhirst via Python-list
4 23:59 (GMT+10:00) To: python-list@python.org Subject: Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more Am 09.01.2024 um 12:36 schrieb Barry Scott via Python-list:> > >> On 7 Jan 2024, at 15:09, Sibylle Koczian via Python-list w

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Thomas Passin via Python-list
are on two different computers. Will remove the "/env" from my shebang lines, even if I don't understand what's happening. Thanks for the details. Only thing I can think of is that "python" may be defaulting to mean python 2. If you use "#!/usr/bin/env pyt

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Thomas Passin via Python-list
;/env" from my shebang lines, even if I don't understand what's happening. Thanks for the details. Only thing I can think of is that "python" may be defaulting to mean python 2. If you use "#!/usr/bin/env python3" it may work on both. No, it doesn't. T

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-14 Thread Sibylle Koczian via Python-list
derstand what's happening. Thanks for the details. Only thing I can think of is that "python" may be defaulting to mean python 2. If you use "#!/usr/bin/env python3" it may work on both. No, it doesn't. That's the form I started with. When it didn't work I thoug

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-09 Thread Barry Scott via Python-list
Thanks for the details. Only thing I can think of is that "python" may be defaulting to mean python 2. If you use "#!/usr/bin/env python3" it may work on both. Did you creates a py.ini file to configure py.exe? See if you have %userappdata%\py.ini on either windows 10 or windows

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-07 Thread Sibylle Koczian via Python-list
Am 01.01.2024 um 12:50 schrieb Barry via Python-list: On 1 Jan 2024, at 11:14, Sibylle Koczian via Python-list wrote: But in all this thread I didn't see a single explanation for my current situation: one and the same shebang line works on Windows 10 / Python 3.11 and doesn't work on Wind

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-03 Thread Barry Scott via Python-list
> On 2 Jan 2024, at 17:24, Thomas Passin via Python-list > wrote: > > You might learn about this if you happen to read and remember the right part > of the Python docs. Otherwise you have no idea what py.exe is up to nor how > it does it. I would say that most people don't know there's an

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-02 Thread Thomas Passin via Python-list
On 1/2/2024 11:56 AM, Mats Wichmann via Python-list wrote: On 1/1/24 12:53, Thomas Passin via Python-list wrote: On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if invoked by the script name alone) or Python 3.12.1 (if invoked by the "py" launcher). fwiw, you can also cr

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-02 Thread Mats Wichmann via Python-list
On 1/1/24 12:53, Thomas Passin via Python-list wrote: On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if invoked by the script name alone) or Python 3.12.1 (if invoked by the "py" launcher). fwiw, you can also create an ini file to define to the launcher py which version

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 12:26 PM, Mats Wichmann via Python-list wrote: On 1/1/24 07:11, Thomas Passin via Python-list wrote: Here's how to find out what program Windows thinks it should use to run a ".py" file.  In a console: C:\Users\tom>assoc .py .py=Python.File C:\Users\tom>ftype Python.file Python.f

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Mats Wichmann via Python-list
On 1/1/24 07:11, Thomas Passin via Python-list wrote: Here's how to find out what program Windows thinks it should use to run a ".py" file.  In a console: C:\Users\tom>assoc .py .py=Python.File C:\Users\tom>ftype Python.file Python.file="C:\Windows\py.exe" "%L" %* That's not enough. There i

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Mats Wichmann via Python-list
ang support in the Python Launcher is documented here: https://docs.python.org/3/using/windows.html#shebang-lines That says the line you list originally: > My shebang line is usually "#!/usr/bin/env python3" means look for python3 in PATH. Do you have one? If you don't have one,

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 8:19 AM, Thomas Passin via Python-list wrote: On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from.

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Barry via Python-list
> On 1 Jan 2024, at 11:14, Sibylle Koczian via Python-list > wrote: > > But in all this thread I didn't see a single explanation for my current > situation: one and the same shebang line works on Windows 10 / Python 3.11 > and doesn't work on Windows 11 / Python 3.12. I suspect Windows, bec

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Sibylle Koczian via Python-list
Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python from python.org. When I started to use the language there wa

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-29 Thread Chris Angelico via Python-list
On Sat, 30 Dec 2023 at 14:06, Mike Dewhirst via Python-list wrote: > > On 29/12/2023 12:09 pm, Félix An via Python-list wrote: > > On 2023-12-25 12:36, Mike Dewhirst wrote: > >> > >> 3. You cannot trust Microsoft. You can trust Python Software > >> Foundation. Python from PSF works the same in all

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-29 Thread Mike Dewhirst via Python-list
On 29/12/2023 12:09 pm, Félix An via Python-list wrote: On 2023-12-25 12:36, Mike Dewhirst wrote: 3. You cannot trust Microsoft. You can trust Python Software Foundation. Python from PSF works the same in all environments - or if not it is a bug. Python from Microsoft is tweaked to satisfy th

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-28 Thread Chris Angelico via Python-list
On Fri, 29 Dec 2023 at 12:23, Félix An via Python-list wrote: > > On 2023-12-25 12:36, Mike Dewhirst wrote: > > > > 3. You cannot trust Microsoft. You can trust Python Software Foundation. > > Python from PSF works the same in all environments - or if not it is a bug. > > Python from Microsoft i

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-28 Thread Félix An via Python-list
On 2023-12-25 12:36, Mike Dewhirst wrote: 3. You cannot trust Microsoft. You can trust Python Software Foundation. Python from PSF works the same in all environments - or if not it is a bug. Python from Microsoft is tweaked to satisfy their aforementioned strategy of locking in users to Windo

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-25 Thread Mike Dewhirst via Python-list
ython-list Subject: Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more On Mon, 25 Dec 2023 at 15:42, Mike Dewhirst via Python-list wrote:>> Apologies for top posting - my phone seems unable to do otherwise.>> Here's my view - which

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-25 Thread rbowman via Python-list
On Sun, 24 Dec 2023 22:55:34 +, Barry wrote: >> On 24 Dec 2023, at 00:54, rbowman via Python-list >> wrote: >> >> Does that work with virtualenv or conda? I'm slowly getting up to speed >> with those. > > Conda is its own thing, not need for py.exe. > > Once you have created the venv you d

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Chris Angelico via Python-list
On Mon, 25 Dec 2023 at 15:42, Mike Dewhirst via Python-list wrote: > > Apologies for top posting - my phone seems unable to do otherwise. > > Here's my view - which may not be popular. You're right about that part, anyhow :) > 4. Shebang lines are pretty much redundant now that most python inter

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Mike Dewhirst via Python-list
Apologies for top posting - my phone seems unable to do otherwise. Here's my view - which may not be popular. 1. Py.exe is an awful idea. 2. Installing python in %PROGRAMFILES% is not a good idea 3. Installing Python from a Microsoft shop or server is a bad idea 4. Shebang lines are pretty mu

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Barry via Python-list
> On 24 Dec 2023, at 00:54, rbowman via Python-list > wrote: > > Does that work with virtualenv or conda? I'm slowly getting up to speed > with those. Conda is its own thing, not need for py.exe. Once you have created the venv you do not need py.exe as you will have pythob.exe in the venv

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Michael Torrie via Python-list
On 12/22/23 20:16, rbowman via Python-list wrote: > On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote: > >> Using the py launcher as your Windows association with .py and.pyw files >> you can have multiple versions of python installed and everything works >> as it should, according to your

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread rbowman via Python-list
On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote: > Using the py launcher as your Windows association with .py and.pyw files > you can have multiple versions of python installed and everything works > as it should, according to your shebang, just like on Unix. Does that work with virtuale

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Michael Torrie via Python-list
On 12/22/23 20:56, Thomas Passin via Python-list wrote: > It's just better not to make assumptions about which version of Python > will be running. Just specify it yourself when you can, and then you can > be sure. Precisely, which is why the shebang is so useful, even on Windows with py launche

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Barry Scott via Python-list
ang>py shebang_py2.py I am python sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0) K:\shebang>shebang_py2.py I am python sys.version_info(major=2, minor=7, micro=17, releaselevel='final', serial=0) K:\shebang>type shebang_py3.py #!/usr/bi

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Peter J. Holzer via Python-list
cause you are > likely to get the system's version of Python, You are not "likely" to get the system's version of Python, you get the version of Python you specify. If you specify "/usr/bin/python3", that's the system's version of Python. If you specify so

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
o the py launcher. So it's customary to just use a unix-style shebang in your python scripts. So either #!/usr/bin/python3 or #!/usr/bin/env python3 as you would in unix. Using the py launcher as your Windows association with .py and.pyw files you can have multiple versions of python ins

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:19 PM, Barry wrote: On 23 Dec 2023, at 00:15, Thomas Passin via Python-list wrote: In neither case is the shebang line used. As i understand it, not in front of my windows box to check. The handler for .py file extension is set to be the py.exe It is py.exe that understand

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Michael Torrie via Python-list
st use a unix-style shebang in your python scripts. So either #!/usr/bin/python3 or #!/usr/bin/env python3 as you would in unix. Using the py launcher as your Windows association with .py and.pyw files you can have multiple versions of python installed and everything works as it should, according to

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Michael Torrie via Python-list
On 12/22/23 11:42, Thomas Passin via Python-list wrote: > There is some important context that is missing here. Python on Windows > does not normally install to that location. That is not even a Windows > path, neither by directory name nor by path separators. No, that's just the way the py la

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 23 Dec 2023, at 00:15, Thomas Passin via Python-list > wrote: > > In neither case is the shebang line used. As i understand it, not in front of my windows box to check. The handler for .py file extension is set to be the py.exe It is py.exe that understands shebang lines. Barry -- h

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with Python. My shebang line is usually "#!/usr/bin/env python3". This has always worked well. I could run Python scripts in a console window entering just the script name, by double click

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
. My shebang line is usually "#!/usr/bin/env python3". This has always worked well. I could run Python scripts in a console window entering just the script name, by double clicking in the explorer or using WIN+r; the two last variants for GUI or for scripts with something like "in

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 22 Dec 2023, at 14:58, Christian Buhtz via Python-list > wrote: > > On Windows 11 it usually is the "Terminal" which is different from cmd.exe. In terminal app you can run cmd.exe or powershell, so it is basically the same. Barry -- https://mail.python.org/mailman/listinfo/python-li

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 22 Dec 2023, at 14:29, Sibylle Koczian wrote: > > #!/usr/bin/env/python That was what i thought you had and it will not work. The BOM suggestion is worth trying. Barry -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Christian Buhtz via Python-list
What is the "command line" on your Windows 11? On Windows 10 it usually is "cmd.exe" (Windows Command Prompt). On Windows 11 it usually is the "Terminal" which is different from cmd.exe. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread J.O. Aho via Python-list
is usually "#!/usr/bin/env python3". Disable BOM in your editor and re-save all files. -- //Aho -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Sibylle Koczian via Python-list
types .py, .pyw etc. are associated with Python. My shebang line is usually "#!/usr/bin/env python3". This has always worked well. I could run Python scripts in a console window entering just the script name, by double clicking in the explorer or using WIN+r; the two last variants for

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
, > - the file types .py, .pyw etc. are associated with Python. > > My shebang line is usually "#!/usr/bin/env python3". > > This has always worked well. I could run Python scripts in a console > window entering just the script name, by double clicking in the explorer >

Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Sibylle Koczian via Python-list
Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with Python. My shebang line is usually "#!/usr/bin/env python3&qu

Re: replacement for nntplib on Python3

2023-04-26 Thread Skip Montanaro
ble in Python3 but scheduled for deprecation in the near future. > What would be a suitable replacement? > > -- > Retrograde > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

replacement for nntplib on Python3

2023-04-26 Thread Retrograde
I used to use a script that relied on nntplib, which is currently still available in Python3 but scheduled for deprecation in the near future. What would be a suitable replacement? -- Retrograde -- https://mail.python.org/mailman/listinfo/python-list

Re: symlinks with python3 http.server.CGIHTTPRequestHandler

2022-01-11 Thread Chris Angelico
On Tue, Jan 11, 2022 at 6:17 AM Nat Taylor wrote: > > Is it possible to get http.server.CGIHTTPRequestHandler to run a symlink-ed > script? > > In the example below, GET /cgi-bin/test.py results in a 404 because it is a > symlink. > > % mkdir -p test/cgi-bin > % cd test > % vi test.py > % chmod +x

Re: symlinks with python3 http.server.CGIHTTPRequestHandler

2022-01-11 Thread Kirill Ratkin
31 Jan 11 14:04 orig.py ./cgi-bin: total 8 drwxrwxr-x 2 kirill kirill 4096 Jan 11 14:03 . drwxrwxr-x 3 kirill kirill 4096 Jan 11 14:04 .. lrwxrwxrwx 1 kirill kirill   10 Jan 11 14:03 test.py -> ../orig.py I do 'curl' request: curl -v http://0.0.0.0:8000/cgi-bin/test.py An

symlinks with python3 http.server.CGIHTTPRequestHandler

2022-01-10 Thread Nat Taylor
+x cgi-bin/test2.py % python3 -m http.server --cgi 8090 Serving HTTP on :: port 8090 (http://[::]:8090/) ... ::1 - - [06/Jan/2022 09:21:48] code 404, message No such CGI script ('/cgi-bin/test.py') ::1 - - [06/Jan/2022 09:21:48] "GET /cgi-bin/test.py HTTP/1.1" 404 - ::1 - - [

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

2021-06-17 Thread Mats Wichmann
}/.py     DESTINATION ${PYTHON_SITE}) ``` So far, we only tested under Debain, where the problem arises: - distutils.sysconfig.get_python_lib(...) returns lib/python3/dist-packages - CMake provides CMAKE_INSTALL_PREFIX=/usr/local/ - So installation goes to /usr/local/lib/python3/dist-packag

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

2021-06-17 Thread Joachim Wuttke
far, we only tested under Debain, where the problem arises: - distutils.sysconfig.get_python_lib(...) returns lib/python3/dist-packages - CMake provides CMAKE_INSTALL_PREFIX=/usr/local/ - So installation goes to /usr/local/lib/python3/dist-packages - sys.path, however, does not contain /usr/lo

Re: Ad-hoc SQL query builder for Python3?

2021-04-27 Thread Rich Shepard
On Mon, 27 Apr 2021, Robert Latest via Python-list wrote: In case nobody mentioned it before, don't forget to take a look at SQLAlchemy. The object-relational-mapper (ORM) creates a 1:1 mapping of Python objects to SQL table rows. Robert, Yes, I've known of SA for years. I want something that

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Robert Latest via Python-list
Rich Shepard wrote: > For those interested I've found a couple of possibilities: PyPika and > SQLbuilder. I'll be looking deeply into them to learn their capabilities. In case nobody mentioned it before, don't forget to take a look at SQLAlchemy. The object-relational-mapper (ORM) creates a 1:1 ma

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Rich Shepard
On Sat, 24 Apr 2021, Rich Shepard wrote: My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. For those interested I've found a couple of possibilities: PyPika and SQLbuilder. I'll be looking deeply into them to learn their capabil

Re: Ad-hoc SQL query builder for Python3?

2021-04-26 Thread Peter J. Holzer
On 2021-04-25 15:23:57 -0700, Rich Shepard wrote: > On Sun, 25 Apr 2021, Peter J. Holzer wrote: > > What should that sql query builder build the queries from? Or in other > > words what is the user supposed to input? > > Peter, > > From the dialog box offering tables, columns, and rows from which

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread dn via Python-list
This message is not meant as a personal attack. The intention is to offer criticism of the way a vague question and its apparently non-specific replies, have produced less than satisfying 'results' - for everyone. A broad question can be good. I ask them too(!) 'Good', in the sense that its open

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
On Sun, 25 Apr 2021, Peter J. Holzer wrote: What should that sql query builder build the queries from? Or in other words what is the user supposed to input? Peter, From the dialog box offering tables, columns, and rows from which a SELECT statement will be constructed. This is not a consol

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Peter J. Holzer
On 2021-04-25 00:05:44 +0100, Alan Gauld via Python-list wrote: > On 24/04/2021 15:24, Rich Shepard wrote: > > My web searches are not finding what I need to include in an application I'm > > building: an ad-hoc sql query builder. What should that sql query builder build the queries from? Or in ot

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Rich Shepard
On Sun, 25 Apr 2021, Alan Gauld via Python-list wrote: I assume you understand the huge risks involved in such a tool. Letting users loose on their own data (and possibly other peoples) allows for huge potential damage/data loss etc. Alan, I disagree about the risk. Regardless of the form of

Re: Ad-hoc SQL query builder for Python3?

2021-04-25 Thread Alan Gauld via Python-list
On 24/04/2021 15:24, Rich Shepard wrote: > My web searches are not finding what I need to include in an application I'm > building: an ad-hoc sql query builder. > > End users will want to query their data for reports not included in the > built-in queries. I assume you understand the huge risks i

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread dn via Python-list
On 25/04/2021 02.24, Rich Shepard wrote: > My web searches are not finding what I need to include in an application > I'm > building: an ad-hoc sql query builder. > > End users will want to query their data for reports not included in the > built-in queries. My searches find a windows-only tool th

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
On Sat, 24 Apr 2021, J. Pic wrote: Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver J., I use dbeaver-ce now and then as an admin tool. I didn't consider it as an included component in a desktop application. I'll look at it fr

Re: Ad-hoc SQL query builder for Python3?

2021-04-24 Thread J. Pic
Maybe search or ask dba stackexchange for more, meanwhile, here's a popular one: https://github.com/dbeaver/dbeaver -- https://mail.python.org/mailman/listinfo/python-list

Ad-hoc SQL query builder for Python3?

2021-04-24 Thread Rich Shepard
My web searches are not finding what I need to include in an application I'm building: an ad-hoc sql query builder. End users will want to query their data for reports not included in the built-in queries. My searches find a windows-only tool that apparently costs developers for the version to in

Re: Pips for python2 and python3

2021-03-22 Thread Tim Johnson
On 3/21/21 5:44 PM, Dan Stromberg wrote: python3 -m pip install Got it. Thanks a lot. -- Tim tj49.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Pips for python2 and python3

2021-03-21 Thread MRAB
On 2021-03-22 01:34, Tim Johnson wrote: On 3/21/21 5:14 PM, MRAB wrote: Tn 2021-03-21 23:13, Tim Johnson wrote: Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt

Re: Pips for python2 and python3

2021-03-21 Thread Tim Johnson
On 3/21/21 5:14 PM, MRAB wrote: Tn 2021-03-21 23:13, Tim Johnson wrote: Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt. I have a large amount of utilities

Re: Pips for python2 and python3

2021-03-21 Thread Dan Stromberg
On Sun, Mar 21, 2021 at 6:14 PM MRAB wrote: > Tn 2021-03-21 23:13, Tim Johnson wrote: > > Using ubuntu 20.04 as a recent install > > with python3 (3.8.5) which was installed as part of the > > original distribution install > > and > > python2 (2.7.18) that has be

Re: Pips for python2 and python3

2021-03-21 Thread MRAB
Tn 2021-03-21 23:13, Tim Johnson wrote: Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt. I have a large amount of utilities written in python2 which I need to

Pips for python2 and python3

2021-03-21 Thread Tim Johnson
Using ubuntu 20.04 as a recent install with python3 (3.8.5) which was installed as part of the original distribution install and python2 (2.7.18) that has been installed using apt. I have a large amount of utilities written in python2 which I need to maintain until I convert that code to

  1   2   3   4   5   6   7   8   9   10   >