Feedback & Discussion: Magic Wormhole 0.19.0 Release Updates

2025-06-03 Thread MyMilestone Card via Python-list
Hi everyone, I just read the release announcement for Magic Wormhole 0.19.0, and I wanted to start a thread here to appreciate the work and open up discussion for anyone using or interested in it. Some exciting highlights: New status feedback API, finally, some clean visibility into code consumpt

Re: magic-wormhole 0.19.0

2025-06-01 Thread MyMilestone Card via Python-list
Thanks for sharing the update, Meejah! Great to see the addition of the status feedback API and improved Dilation handling, those changes should definitely enhance usability and performance. Also appreciate the move to pytest and the clearer packaging per PEP 625. Solid work! -- https://mail.py

Re: Python tutor mailing list?

2025-05-28 Thread Marc Nicole via Python-list
Being a user of that list i've also noticed that only recently. hope that this list is good enough to take on all python questions. Are there any other alternative lists? Thx On Wed, 28 May 2025, 01:35 Alan Gauld via Python-list, < python-list@python.org> wrote: > I am the mo

Re: Searching for a file

2025-05-28 Thread Roland Mueller via Python-list
ke 28.5.2025 klo 1.45 Thomas Passin (li...@tompassin.net) kirjoitti: > On 5/27/2025 10:41 AM, Roland Mueller via Python-list wrote: > > To get a list of files in a given directory one can use glob.glob and > > The OP had a different problem. He wanted to find a config file of &g

Re: Python tutor mailing list?

2025-05-27 Thread dn via Python-list
Message received! Hope you enjoyed your holiday... On 28/05/25 12:00, Alan Gauld via Python-list wrote: On 28/05/2025 00:32, Alan Gauld via Python-list wrote: The archives are still there and the sign-up page seems to work, but it doesn't recognise me. I tried signing up as a new m

Re: Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
On 28/05/2025 00:32, Alan Gauld via Python-list wrote: > The archives are still there and the sign-up page seems to > work, but it doesn't recognise me. I tried signing up as > a new member with a different address and that seems to work(ie no > errors) but I still don;t see any

Python tutor mailing list?

2025-05-27 Thread Alan Gauld via Python-list
I am the moderator of the python tutor mailing list. Or at least I was. It seems the tutor list has been deleted. I came back from vacation to find that I can't access it. Nobody told me anything in advance. I've tried emailing postmaster but got no response. I wonder if anyone here has any idea

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
he parts for the glob mask together instead of plain '/'. > > > ti 27.5.2025 klo 17.05 Peter J. Holzer (hjp-pyt...@hjp.at) kirjoitti: > >> On 2025-05-24 17:18:11 -0600, Mats Wichmann wrote: >> > On 5/23/25 16:05, Rob Cliffe via Python-list wrote: >> &g

Re: Searching for a file

2025-05-27 Thread Roland Mueller via Python-list
s and add the resulting list of files. >>> tmp_files = [] >>> for dir in ['/tmp', '/var/tmp']: ... tmp_files += [f for f in glob(dir + '/*') if isfile(f) ] ti 27.5.2025 klo 17.05 Peter J. Holzer (hjp-pyt...@hjp.at) kirjoitti: > On 2025-05-

Python 3.14.0 beta 2 is here!

2025-05-26 Thread Hugo van Kemenade via Python-list
Here’s the second 3.14 beta. https://www.python.org/downloads/release/python-3140b2/ This is a beta preview of Python 3.14 Python 3.14 is still in development. This release, 3.14.0b2, is the second of four planned beta releases. Beta release previews are intended to give the wider community the

Re: Searching for a file

2025-05-24 Thread Chris Angelico via Python-list
On Sun, 25 May 2025 at 10:05, Rob Cliffe via Python-list wrote: > Yes, but if I understand correctly, they all start from a single > directory (and work downwards if required). > My suggestion involved searching a *list* (possibly multiple lists) of > directories. for dir in dirs:

Re: Searching for a file

2025-05-24 Thread Rob Cliffe via Python-list
On 25/05/2025 00:18, Mats Wichmann wrote: On 5/23/25 16:05, Rob Cliffe via Python-list wrote: On 23/05/2025 18:55, Mats Wichmann wrote: On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a

Re: Best practice for config files?

2025-05-24 Thread Michael F. Stemper via Python-list
On 22/05/2025 15.27, Stefan Ram wrote: "Michael F. Stemper" wrote or quoted: Should I specify the location of the config file with a command-line option, or is requiring the program to be executed in the directory containing the configuration file considered acceptable practice? It was me

Re: Best practice for config files?

2025-05-24 Thread Jason H via Python-list
On 22/05/2025 20:59, Michael F. Stemper wrote: I recently wrote a program to do some record-keeping for me. I found myself hard-coding a bunch of different values into it. This didn't seem right, so I made my first use of configparser.ConfigParser(). Created the configuration file and everything

Re: Searching for a file

2025-05-23 Thread Rob Cliffe via Python-list
On 23/05/2025 18:55, Mats Wichmann wrote: On 5/22/25 21:04, Rob Cliffe via Python-list wrote: It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in

Re: Best practice for config files?

2025-05-22 Thread Grant Edwards via Python-list
On 2025-05-23, Thomas Passin wrote: >> Alternatively look at the PATH envronment variable, which >> contains a list of directories separated by semicolons and which you can >> access as os.environ['PATH'] . > > There is really no reason for a config file to be on the system > path. On Unix/Lin

Searching for a file

2025-05-22 Thread Rob Cliffe via Python-list
It occurs to me that it might be useful if Python provided a function to search for a file with a given name in various directories (much as the import.import_lib function searches for a module in the directories in sys.path). This function would perhaps be best placed in the os.path or os modu

Re: Best practice for config files?

2025-05-22 Thread Rob Cliffe via Python-list
On 22/05/2025 23:45, Mats Wichmann wrote: On 5/22/25 13:59, Michael F. Stemper via Python-list wrote: I recently wrote a program to do some record-keeping for me. I found myself hard-coding a bunch of different values into it. This didn't seem right, so I made my first u

Best practice for config files?

2025-05-22 Thread Michael F. Stemper via Python-list
I recently wrote a program to do some record-keeping for me. I found myself hard-coding a bunch of different values into it. This didn't seem right, so I made my first use of configparser.ConfigParser(). Created the configuration file and everything is working fine. However, I wrote it based on t

Re: Dynamic classes

2025-05-20 Thread Left Right via Python-list
ly add methods, conditionally provide different method bodies, conditionally provide different arguments to parametrized decorators. -- https://mail.python.org/mailman/listinfo/python-list

Re: Dynamic classes

2025-05-19 Thread Greg Ewing via Python-list
under the name 'Flag3: 4, __init__'. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Dynamic classes

2025-05-19 Thread Rob Cliffe via Python-list
On 19/05/2025 23:11, Thomas Passin via Python-list wrote: On 5/19/2025 5:49 PM, Mats Wichmann via Python-list wrote: On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, &

Re: Dynamic classes

2025-05-19 Thread Thomas Passin via Python-list
On 5/19/2025 5:49 PM, Mats Wichmann via Python-list wrote: On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, 'Flag2': 2, 'Flag3: 4, ' '__init__&#

Re: Dynamic classes

2025-05-19 Thread Mats Wichmann via Python-list
On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, 'Flag2': 2, 'Flag3: 4, ' '__init__' : __init__}) The new class is there, and the cla

Dynamic classes

2025-05-19 Thread Jonathan Gossage via Python-list
initializer. -- Jonathan Gossage -- https://mail.python.org/mailman/listinfo/python-list

Re: Trailer for upcoming Python documentary

2025-05-19 Thread Christian Buhtz via Python-list
Am 18.05.2025 22:16 schrieb Larry Martell via Python-list: https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ Awesome! Which release channels will be used? How can we pay? -- https://mail.python.org/mailman/listinfo/python-list

Re: Trailer for upcoming Python documentary

2025-05-18 Thread Tim Daneliuk via Python-list
On 5/18/25 15:16, Larry Martell wrote: https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ Get ready Guido: "I'd like to thank the Academy ..." -- https://mail.python.org/mailman/listinfo/python-list

Re: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mats Wichmann via Python-list
On 5/18/25 08:39, Mike Dewhirst via Python-list wrote: Apologies for top-posting. It's my phone's fault.Since  no-one appears to have responded, I'll stir up some aggro and offer my opinion based on ~45 years experience with Microsoft.Uninstall python/idle etc completely and

Trailer for upcoming Python documentary

2025-05-18 Thread Larry Martell via Python-list
https://youtu.be/pqBqdNIPrbo?si=P2ukSXnDj3qy3HBJ -- https://mail.python.org/mailman/listinfo/python-list

RE: WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-18 Thread Mike Dewhirst via Python-list
.Good luck.Mike --Unsigned mail from my phone Original message ----From: T N via Python-list Date: 17/5/25 12:54 (GMT+10:00) To: python-list@python.org Subject: WG: dont use C:\Windows as working directory when installed using microsoft store V

WG: dont use C:\Windows as working directory when installed using microsoft store

2025-05-16 Thread T N via Python-list
so please fix that Thanks a lot in advance and keep up the good work TN -- https://mail.python.org/mailman/listinfo/python-list

IDLE: dark mode on windows?

2025-05-16 Thread T N via Python-list
tk config files somewhere. i would aprichiate any help on that. thanks a lot in advance, Tim from Hamburg -- https://mail.python.org/mailman/listinfo/python-list

Re: [egenix-info] ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread Marc-Andre Lemburg via Python-list
chimon On Wed, 14 May 2025 13:42:22 +0200 eGenix Team via Python-list wrote: *ANNOUNCING* eGenix Antispam Bot for Telegram Version 0.7.1 A simple, yet effective bot implementation to address Telegram signup spam. This announcement is also available on our web-site for online reading:

[ANN] New version 2.1.0 of L.Pointal's Python 3 Cheat Sheet

2025-05-14 Thread Laurent Pointal via Python-list
onnal programming map and filter list comprehension expressions * Add dict's | merge and |= update operators * Reorganize sequences index sectionto make room * Add with () group of context to open multiple files A+ L.Pointal. -- https://mail.python.org/mailman/listinfo/python-list

Re: [egenix-info] ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread Schimon Jehudah via Python-list
e can always tune them or add new ones. > > Thanks, -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread Schimon Jehudah via Python-list
regards, Schimon On Wed, 14 May 2025 13:42:22 +0200 eGenix Team via Python-list wrote: > *ANNOUNCING* > > > eGenix Antispam Bot for Telegram > > Version 0.7.1 > > A simple, yet effective bot implementation > to address Telegram signup spam. > > This announce

ANN: eGenix Antispam Bot for Telegram 0.7.1

2025-05-14 Thread eGenix Team via Python-list
https://www.malemburg.com/ -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-13 Thread Thomas Passin via Python-list
On 5/8/2025 2:05 AM, Left Right via Python-list wrote: Also, it appears that the change linked above is a lie: https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem According to the grammar, any character can follow backslash in a valid Python

Re: backslash in triple quoted string

2025-05-12 Thread Greg Ewing via Python-list
hat I said. Currently it's a warning. If and when it becomes an error, presumably the grammar documentation will be updated to reflect that. If it isn't, you'll have cause to complain, but not before. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Keith Thompson via Python-list
. It makes the discussion easier to follow, especially for those of us who read the comp.lang.python Usenet newsgroup rather than the mailing list. I do not intend to reply further. -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Ethan Furman via Python-list
Chris and Oleg (sp?), please control your tempers; your latter posts added nothing useful to the conversation. (Apologies for the late reply, I was out of town.) -- ~Ethan~ Moderator -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Left Right via Python-list
rd, you could at least try to find the irony, that was the larger goal, than to immediately presume you are being attacked, and start retaliating instead of looking into the problem. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Left Right via Python-list
> But the message doesn't say it's an error. It uses the word "warning", > not "error". You're tilting at a straw horse here. Read the associate release note. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-12 Thread Keith Thompson via Python-list
"lie" means to you, but I suggest that it explains the harsh reaction to your initial statement. -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

PyCon

2025-05-12 Thread Larry Martell via Python-list
Anyone going to PyCon? I'll be there, getting in Tuesday night. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Greg Ewing via Python-list
traw horse here. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
ly care. All it really proves is > that you have zero respect for anyone else. > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
to spell my name correctly. You can leave that there, I don't really care. All it really proves is that you have zero respect for anyone else. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
then. Prove it. You're all hot air and opinions and bluster. > Show some actual code, and show that you can do right what you're > complaining that Python has done wrong. > > I'm not holding my breath. > > ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Oh, so this is where 4chan relocated after they were hacked? What a refined discussion! On Sun, May 11, 2025 at 5:28 PM Chris Angelico wrote: > > On Mon, 12 May 2025 at 01:24, Left Right via Python-list > wrote: > > > > But, sure, go ahead, foam at the mouth, if it >

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Mon, 12 May 2025 at 01:24, Left Right via Python-list wrote: > > But, sure, go ahead, foam at the mouth, if it > makes you feel better about it. Projecting, much? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
hat you can do right what you're complaining that Python has done wrong. I'm not holding my breath. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
Hahah... what a pile of rubbish. The point is that the error is wrong. It cannot be a syntax error and at the same time the program compiles. You need to choose one. But, sure, go ahead, foam at the mouth, if it makes you feel better about it. -- https://mail.python.org/mailman/listinfo/python

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
> Have you ever built a language parser? I've lost count by now. Probably fewer than hundred times though. -- https://mail.python.org/mailman/listinfo/python-list

Re: backslash in triple quoted string

2025-05-11 Thread Peter J. Holzer via Python-list
On 2025-05-11 12:36:31 +0200, Left Right via Python-list wrote: > Then it just means that the grammar lies. No, because the parser accepts the sequence. And it produces exactly what the description says. The program #!/usr/bin/python3 print("start") for i in range(3): print(&

Re: backslash in triple quoted string

2025-05-11 Thread Richard Damon via Python-list
On 05/11/2025 6:36 AM EDT Left Right via Python-list <[1]python-list@python.org> wrote: Then it just means that the grammar lies. The two claims are mutually exclusive, so either one is a lie or the other or both. No, it more points out that not all erro

Re: backslash in triple quoted string

2025-05-11 Thread Chris Angelico via Python-list
On Sun, 11 May 2025 at 20:38, Left Right via Python-list wrote: > > My comment was more of an irony really. It's plenty obvious that the > grammar is a lie. The reason is that it's tedious to put the actual > intender rules into the grammar, and so whoever wrote the gr

Re: backslash in triple quoted string

2025-05-11 Thread Left Right via Python-list
May 11, 2025 at 12:11 PM Peter J. Holzer via Python-list wrote: > > On 2025-05-08 08:05:54 +0200, Left Right via Python-list wrote: > > Also, it appears that the change linked above is a lie: > > Such strong words ... > > > > https://docs.python.org/3/

Re: backslash in triple quoted string

2025-05-11 Thread Peter J. Holzer via Python-list
On 2025-05-08 08:05:54 +0200, Left Right via Python-list wrote: > Also, it appears that the change linked above is a lie: Such strong words ... > https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem > > According to the grammar, a

Re: backslash in triple quoted string

2025-05-07 Thread Left Right via Python-list
ontributed by Victor > Stinner in gh-98401.) > > Found in: > https://docs.python.org/3/whatsnew/3.12.html#other-language-changes > > It's not supposed to crash your program though. If the program crashes > because of it, it's a bug in Python. > > On Thu, May 8, 202

Re: backslash in triple quoted string

2025-05-07 Thread Left Right via Python-list
your program though. If the program crashes because of it, it's a bug in Python. On Thu, May 8, 2025 at 7:00 AM Bob van der Poel via Python-list wrote: > > Did something change in python buggering up my use of a "\ " sequence in a > triple quoted string? > > I have y

backslash in triple quoted string

2025-05-07 Thread Bob van der Poel via Python-list
as a comment at the top of a function. I changed the "\" to a "/" and all is well now. -- Listen to my FREE CD at http://www.mellowood.ca/music/cedars Bob van der Poel ** Wynndel, British Columbia, CANADA ** EMAIL: b...@mellowood.ca WWW: http://www.mellowood.ca -- https://mail.python.org/mailman/listinfo/python-list

Python 3.14.0 beta 1 is here!

2025-05-07 Thread Hugo van Kemenade via Python-list
://mail.python.org/mailman/listinfo/python-list

RE: Module urljoin does not appear to work with scheme Gemini

2025-04-24 Thread Anders Munch via Python-list
before I realised that the lists non_hierarchical, uses_query and uses_fragment are not used. With only three options instead of six, making a strategy object is not quite as attractive. But still worth considering. regards, Anders -- https://mail.python.org/mailman/listinfo/python-list

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-23 Thread Henry S. Thompson via Python-list
ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] -- https://mail.python.org/mailman/listinfo/python-list

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Schimon Jehudah via Python-list
and Gopher. gemini://woodpeckersnest.space/~schapps/journal/2024-05-28-censoring-gemini-and-gopher.gmi Schimon On Tue, 22 Apr 2025 15:33:52 +0100 "Henry S. Thompson" wrote: > Schimon Jehudah via Python-list writes: > > > Yesterday, I have added support for a new syndication f

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Henry S. Thompson via Python-list
Schimon Jehudah via Python-list writes: > Yesterday, I have added support for a new syndication format, Gemini > feed. I note that 'gemini' is not (yet?) a registered URI scheme: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml ht -- Henry S. Tho

Re: Pip installs to unexpected place

2025-04-21 Thread rbowman via Python-list
5, in import matplotlib.pyplot as plt ModuleNotFoundError: No module named 'matplotlib' -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-21 Thread songbird via Python-list
Peter J. Holzer wrote: > On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: ... >> When the system launches its application the PYTHONPATH will start with >> system site directories; local user site directories will be on the >> PYTHONPATH but since they come l

Module urljoin does not appear to work with scheme Gemini

2025-04-20 Thread Schimon Jehudah via Python-list
~schapps/journal/2025-04-20-slixfeed-gemini-and-twtxt.gmi', query='', fragment='') >>> >>> https://git.xmpp-it.net/sch/Slixfeed/src/branch/master/slixfeed/parser/gmi.py Is this a problem with the module urljoin? To whom should reports about such concern be conveyed? Please advise. Kind regards, Schimon -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-19 Thread Thomas Passin via Python-list
On 4/19/2025 4:56 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: On 18/04/25 9:41 am, Mats Wichmann

Re: Pip installs to unexpected place

2025-04-19 Thread Peter J. Holzer via Python-list
On 2025-04-18 13:08:36 -0400, Thomas Passin via Python-list wrote: > On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > > There'

Re: Pip installs to unexpected place

2025-04-19 Thread Peter J. Holzer via Python-list
On 2025-04-18 17:11:33 +0100, Oscar Benjamin via Python-list wrote: > On Fri, 18 Apr 2025 at 16:50, Peter J. Holzer via Python-list > wrote: > > > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > > On 18/04/25 9:41 am, Mats Wichmann wrote: > &

Re: Pip installs to unexpected place

2025-04-18 Thread Thomas Passin via Python-list
On 4/18/2025 11:38 AM, Peter J. Holzer via Python-list wrote: On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: On 18/04/25 9:41 am, Mats Wichmann wrote: There's just not a really great answer to this. Seems to me a system-installed application shouldn't be look

Re: Pip installs to unexpected place

2025-04-18 Thread Oscar Benjamin via Python-list
On Fri, 18 Apr 2025 at 16:50, Peter J. Holzer via Python-list wrote: > > On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > > On 18/04/25 9:41 am, Mats Wichmann wrote: > > > There's just not a really great answer to this. > > > > Seems to me a

Re: Pip installs to unexpected place

2025-04-18 Thread Peter J. Holzer via Python-list
On 2025-04-18 13:24:28 +1200, Greg Ewing via Python-list wrote: > On 18/04/25 9:41 am, Mats Wichmann wrote: > > There's just not a really great answer to this. > > Seems to me a system-installed application shouldn't be looking in the > user's .local packages in

Re: Pip installs to unexpected place

2025-04-17 Thread Greg Ewing via Python-list
his user". -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-17 Thread Mats Wichmann via Python-list
On 4/17/25 15:15, Grant Edwards via Python-list wrote: On 2025-04-17, Left Right via Python-list wrote: Also... when installing stuff with pip --user, it is always a package that is not installed for the system (usually not even available for the system). How can that "break system pac

Re: Pip installs to unexpected place

2025-04-17 Thread Grant Edwards via Python-list
On 2025-04-17, Left Right via Python-list wrote: >> Also... when installing stuff with pip --user, it is always a package >> that is not installed for the system (usually not even available for >> the system). How can that "break system packages"? > > pip insta

Re: Pip installs to unexpected place

2025-04-17 Thread Left Right via Python-list
The reason it doesn't happen very often is that package maintainers kind of trust each other to be nice. There aren't really any safeguards to prevent malicious actors from doing this, but you would have to want to install their package for some reason. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-17 Thread Thomas Passin via Python-list
On 4/17/2025 4:58 AM, Roel Schroeven via Python-list wrote: Op 15/04/2025 om 20:31 schreef Mats Wichmann via Python-list: To be clear: you do not have to activate a virtualenv to use *Python* from it. If you just call the python by the path it's in, it figures everything out (and sets

Re: Pip installs to unexpected place

2025-04-17 Thread Roel Schroeven via Python-list
Op 15/04/2025 om 20:31 schreef Mats Wichmann via Python-list: To be clear: you do not have to activate a virtualenv to use *Python* from it. If you just call the python by the path it's in, it figures everything out (and sets some variables you can query vi sysconfig if you have reas

Re: Pip installs to unexpected place

2025-04-16 Thread Thomas Passin via Python-list
On 4/15/2025 5:38 PM, rbowman via Python-list wrote: On Tue, 15 Apr 2025 14:12:19 -0400, Thomas Passin wrote: On Linux, at least, it's standard for pip to install into the user's site-packages location if it's not invoked with admin privileges - even without --user. Pip will

Re: Pip installs to unexpected place

2025-04-16 Thread rbowman via Python-list
27;s is 24.3.1 but neither of them show '--break-system-packages' in --help. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-16 Thread Grant Edwards via Python-list
On 2025-04-16, Mats Wichmann via Python-list wrote: > On 4/15/25 16:07, Grant Edwards via Python-list wrote: >> On 2025-04-15, Thomas Passin via Python-list wrote: >> >>> On Linux, at least, it's standard for pip to install into the user's >>> site

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 16:07, Grant Edwards via Python-list wrote: On 2025-04-15, Thomas Passin via Python-list wrote: On Linux, at least, it's standard for pip to install into the user's site-packages location if it's not invoked with admin privileges - even without --user. Pip will

Re: Pip installs to unexpected place

2025-04-15 Thread Grant Edwards via Python-list
On 2025-04-15, Thomas Passin via Python-list wrote: > On Linux, at least, it's standard for pip to install into the user's > site-packages location if it's not invoked with admin privileges - even > without --user. Pip will emit a message saying so. Well, that used to

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
/lib/python3.10/site-packages' left over from earlier versions of Ubuntu. However on Fedora 42 with 3.13.2 Defaulting to user installation because normal site-packages is not writable. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 3:41 PM, dn via Python-list wrote: Various responses have been provided but the OP has not yet replied on- list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 12:43 PM, Friedrich Romstedt via Python-list wrote: Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . [...] Instead, it was installed into the site-packages directory in

Re: Pip installs to unexpected place

2025-04-15 Thread dn via Python-list
-discussions - but will hearing only half of some of the conversation help them? On 14/04/25 11:33, dn via Python-list wrote: On 14/04/25 11:10, Jonathan Gossage via Python-list wrote: I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . The version of Python was compiled

Re: Pip installs to unexpected place

2025-04-15 Thread Mats Wichmann via Python-list
On 4/15/25 10:43, Friedrich Romstedt via Python-list wrote: Many people put emphasis on that you need to *activate* a virtualenv before using it, but no-one so far stressed the fact that you got Sphinx installed to ~/jonathan/.local/lib/python3.13/site-packages *without using *--user. To be

Re: Pip installs to unexpected place

2025-04-15 Thread Friedrich Romstedt via Python-list
Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : > I am using *Python 3.13* in a virtual environment under *Ubuntu Linux > 24.04* > . > [...] > Instead, it was > installed into the site-packages directory in > */home/jonathan/.locals/lib/pyt

Re: Pip installs to unexpected place

2025-04-15 Thread rbowman via Python-list
te.ps1 is in the Scripts subdirectory and you do run it directly. On Linux the python in bin is usually a symlink, although you can specify it to be copied with a parameter to venv. Symlinks on Windows are problematic but the process is more or less the same. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-15 Thread Keith Thompson via Python-list
venv's active script (with the ~ expanded to the path of his home directory). (I'm relatively new at this. Please let me know if I've gotten any of the details wrong.) [...] -- Keith Thompson (The_Other_Keith) keith.s.thompso...@gmail.com void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't ha

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't ha

Re: Pip installs to unexpected place

2025-04-14 Thread rbowman via Python-list
ll agree it sounds like the venv wasn't activated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-14 Thread Keith Thompson via Python-list
id */ -- https://mail.python.org/mailman/listinfo/python-list

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
;> wrote: On 4/13/2025 7:10 PM, Jonathan Gossage via Python-list wrote: > I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* > . > The version of Python was compiled from source code and installed with make > altinstall. I at

  1   2   3   4   5   6   7   8   9   10   >