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

2021-12-09 Thread Roland Müller via Python-list
Hello, On 12/8/21 11:29, vani arul wrote: Thanks for your help. I am not good at programming.My code works perfectly.But I am bit confused about the return values. Binary Search Program /def Binarysearch(a,key):     l=0     r=len(a)-1     while l<=r:     med = (l+r)//2     if key==a

Re: How to package a Python command line app?

2021-12-09 Thread Peter J. Holzer
On 2021-12-09 19:35:37 +0100, 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. Just build it for the oldest version. Even

Re: Odd locale error that has disappeared on reboot.

2021-12-09 Thread Peter J. Holzer
On 2021-12-09 10:38:58 +, Chris Green wrote: > Julio Di Egidio wrote: > > Still your code wouldn't pass review: you do need some exception > > handling there [...] > However catching and re-trying isn't going to help at all. It happily > produced the same arror every 10 minutes throughout th

Re: How to package a Python command line app?

2021-12-09 Thread Manfred Lotz
On Thu, 9 Dec 2021 18:18:26 +0100 "Dieter Maurer" wrote: > Manfred Lotz wrote at 2021-12-8 12:31 +0100: > >The are many possibilities to package a Python app, and I have to > >admit I am pretty confused. > > > >Here is what I have: > > > >A Python command line app which requires some packages whi

Re: How to package a Python command line app?

2021-12-09 Thread Manfred Lotz
On Thu, 9 Dec 2021 17:34:03 + Barry wrote: > > On 8 Dec 2021, at 18:27, Manfred Lotz wrote: > > > > The are many possibilities to package a Python app, and I have to > > admit I am pretty confused. > > > > Here is what I have: > > > > A Python command line app which requires some package

Re: How to package a Python command line app?

2021-12-09 Thread Barry
> On 8 Dec 2021, at 18:27, Manfred Lotz wrote: > > The are many possibilities to package a Python app, and I have to admit > I am pretty confused. > > Here is what I have: > > A Python command line app which requires some packages which are not in > the standard library. > > I am on Linux a

Re: How to package a Python command line app?

2021-12-09 Thread Dieter Maurer
Manfred Lotz wrote at 2021-12-8 12:31 +0100: >The are many possibilities to package a Python app, and I have to admit >I am pretty confused. > >Here is what I have: > >A Python command line app which requires some packages which are not in >the standard library. Are they on PyPI or can they be dow

Re: HTML extraction

2021-12-09 Thread Dieter Maurer
Pieter van Oostrum wrote at 2021-12-8 11:00 +0100: > ... >bs4 can do it, but lxml wants correct XML. Use `lxml's the `HTMLParser` to parse HTML (--> "see https://lxml.de/parsing.html#parsing-html";). -- https://mail.python.org/mailman/listinfo/python-list

Re: help

2021-12-09 Thread Igor Korot
Hi, On Thu, Dec 9, 2021 at 10:31 AM smita wrote: > > > >I am not able to open python on my laptop plzz help What do you mean by saying "open python"? Thank you. > > > >Sent from [1]Mail for Windows > > > > References > >Visible links >1. https://go.microsoft.com/fwlink/?LinkId=

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: Odd locale error that has disappeared on reboot.

2021-12-09 Thread Chris Green
Inada Naoki wrote: > On Wed, Dec 8, 2021 at 2:52 AM Chris Green wrote: > > > > > > At 03:40 last night it suddenly started throwing the following error every > > time it ran:- > > > > Fatal Python error: initfsencoding: Unable to get the locale encoding > > LookupError: unknown encoding:

Re: How to package a Python command line app?

2021-12-09 Thread Loris Bennett
Hi Manfred, Manfred Lotz writes: > Hi Loris, > > On Wed, 08 Dec 2021 15:38:48 +0100 > "Loris Bennett" wrote: > >> Hi Manfred, >> >> Manfred Lotz writes: >> >> > The are many possibilities to package a Python app, and I have to >> > admit I am pretty confused. >> > >> > Here is what I have: >

Re: Odd locale error that has disappeared on reboot.

2021-12-09 Thread Chris Green
Julio Di Egidio wrote: > On 08/12/2021 10:50, Chris Green wrote: > > Julio Di Egidio wrote: > >> On 07/12/2021 16:28, Chris Green wrote: > >>> What could have caused this? I certainly wasn't around at 03:40! :-) > >>> There aren't any automatic updates enabled on the system, the only > >>> thing

help

2021-12-09 Thread smita
  I am not able to open python on my laptop plzz help   Sent from [1]Mail for Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

Re: Python child process in while True loop blocks parent

2021-12-09 Thread Barry Scott
> On 8 Dec 2021, at 17:11, Jen Kris wrote: > > I started this post on November 29, and there have been helpful comments > since then from Barry Scott, Cameron Simpson, Peter Holzer and Chris > Angelico. Thanks to all of you. > > I've found a solution that works for my purpose, and I said