Re: Where to put *.pth files for custom Python site packages?

2024-09-18 Thread Florent Rougon
Hi, Le 17/09/2024, Christian Gelinek a écrit: > The Python documentation[0] states that the search path can be extended via > .pth files which should be added to specific directories. (...) > Given that these sub-folders are managed by Debian/`apt`, where should I place > our cus

Re: Where to put *.pth files for custom Python site packages?

2024-09-16 Thread tomas
On Tue, Sep 17, 2024 at 11:01:00AM +0930, Christian Gelinek wrote: > We're using a library of our own Python modules & packages. > > The Python documentation[0] states that the search path can be extended via > .pth files which should be added to specific directories. Whil

Where to put *.pth files for custom Python site packages?

2024-09-16 Thread Christian Gelinek
We're using a library of our own Python modules & packages. The Python documentation[0] states that the search path can be extended via .pth files which should be added to specific directories. While the documentation specifically mentions "lib/pythonX.Y/site-packages (on Unix

Re: Installing a python package with pipx

2024-06-02 Thread Richard
If it where an issue with pip or pipx, yes. But as you pointed out yourself, it's also happening on OpenSuse, so the issue can't be pip or pipx, but rather either what you are trying to install or your understanding of it. Am So., 2. Juni 2024 um 14:20 Uhr schrieb Richmond : > I am not complaini

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard writes: > python3 -m venv venv > source venv/bin/activate > pip install musicpy OK thanks. And apparently to get idle working I do: python -m idlelib.idle

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard writes: > That's how its done. Also, complaining here about something that > doesn't even work on other distros and thus can't be a Debian > problem doesn't make that much sense. I am not complaining, I am trying to find out how to get it working. And as pip (and pipx) are debian packag

Re: Installing a python package with pipx

2024-06-02 Thread Richard
ichmond : > OK Back on Debian, I removed the one package installed with pipx, which > was musicpy, then tried to install it with pip, but got this message > which actually tells me to use pipx. (There is no package python-musicpy). > > pip install musicpy > error: externally-managed

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
OK Back on Debian, I removed the one package installed with pipx, which was musicpy, then tried to install it with pip, but got this message which actually tells me to use pipx. (There is no package python-musicpy). pip install musicpy error: externally-managed-environment × This environment is

Re: Installing a python package with pipx

2024-06-02 Thread Richmond
Richard wrote: > > > On Sat, Jun 1, 2024, 23:50 Richmond > wrote: > > Richard mailto:rrosn...@gmail.com>> writes: > > > A packages documentation is always your best > friend: https://pypi.org > > /project/idle/ > > > > Yes it makes it look easy ther

Re: Installing a python package with pipx

2024-06-01 Thread Richard
ds together that don't go together. And whatever is off with your paths. Things of pipx installed packages should be in .local/bin and .local/shared/pipx. At least on Debian that's the default. No idea what you did. > > > Also, python script isn't a necessarily a standalone executa

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
ges/idle.py", line 4, in from layout import * ModuleNotFoundError: No module named 'layout' > Also, python script isn't a necessarily a standalone executable. And > also, you shouldn't just wildly mix pipx commands with pip commands > if you don't know

Re: Installing a python package with pipx

2024-06-01 Thread Richard
A packages documentation is always your best friend: https://pypi.org/project/idle/ Also, python script isn't a necessarily a standalone executable. And also, you shouldn't just wildly mix pipx commands with pip commands if you don't know what you are doing. Either create a venv

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > Pretty much just what pipx does. > Well I don't know how. Now I need to run idle in my new environment. I have installed it .local/pipx/shared/bin/pip install idle and it is here: .local/pipx/shared/lib/python3.11/site-packages/idle.py but I don't know how to run it. I jus

Re: Installing a python package with pipx

2024-06-01 Thread Richard
Pretty much just what pipx does. On Sat, Jun 1, 2024, 22:00 Richmond wrote: > > I got it working by doing: > > python3 -m venv .local/pipx/venvs/musicpy/ > > .local/pipx/venvs/musicpy/bin/python3.11 > > Then I was able to import musicpy from the python shell. > > How bewildering! > > Thanks. > >

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
> I got it working by doing: python3 -m venv .local/pipx/venvs/musicpy/ .local/pipx/venvs/musicpy/bin/python3.11 Then I was able to import musicpy from the python shell. How bewildering! Thanks.

Re: Installing a python package with pipx

2024-06-01 Thread Richard
ond wrote: > I guess I have to tell python where to look? > >

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > Looking at the package, no wonder it fails. musicpy doesn't contain > anything that can be executed. So pipx run can't work for obvious > reasons. You'll have to install it with pipx install and use it in a > python script. > > https://pypi.org

Re: Installing a python package with pipx

2024-06-01 Thread Richard
Looking at the package, no wonder it fails. musicpy doesn't contain anything that can be executed. So pipx run can't work for obvious reasons. You'll have to install it with pipx install and use it in a python script. https://pypi.org/project/musicpy/ Richard On Sat, Jun 1, 2024,

Re: Installing a python package with pipx

2024-06-01 Thread Richmond
Richard writes: > If you haven't closed the terminal window/logged out, you need to run > source .bashrc. Running pipx ensurepath should have said something > like that. Yes, I did this: > > (logged out and in to get updated PATH)

Re: Installing a python package with pipx

2024-06-01 Thread Richard
If you haven't closed the terminal window/logged out, you need to run source .bashrc. Running pipx ensurepath should have said something like that. Richard On Sat, Jun 1, 2024, 18:10 Richmond wrote: > I have been trying to install this: > > https://pypi.org/project/musicpy/#description > > with

Installing a python package with pipx

2024-06-01 Thread Richmond
I have been trying to install this: https://pypi.org/project/musicpy/#description with not much success. I have done these: sudo aptitude install pip sudo aptitude install pipx pipx ensurepath pipx install --include-deps musicpy (logged out and in to get updated PATH) pipx run musicpy 'music

Re: Using a Python script as a login shell

2024-02-16 Thread Alex King
er a quick look, it seems like you took some steps to secure it. If you care about security you want to think about defense in depth.  Even if there don't appear to be ways for arbitrary filesystem or network access to happen, you have to consider the effect of bugs in your program and bu

Using a Python script as a login shell

2024-02-16 Thread Ralph Aichinger
Hello fellow Debianites! I want do do a custom CLI for a project, and I am quite happy with the Python cmd module. Aside from having a practically un-googleable name it is very nice, and does a lot with very little code. So far, so good. But: If I write a Python script with this module, and

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Joe
> I have thanked him for that. Have talked about my ignorance of Python > virtualisation there. Ref: > https://lists.debian.org/debian-user/2023/07/msg00645.html > > Yes, I now am considering that I might need to. But learning an entire > system just to address a minor need, can

Re: How could a standalone python binary executable be made from apython script, to be run on other computers that don't have pythoninstalled?

2023-07-27 Thread gene heskett
30), Susmita/Rajib wrote: From: David Wright Date: Thu, 20 Jul 2023 10:06:43 -0500 I'm not sure who you think the first and second parties are. [ ... ] I have considered myself as the 1st party. Debian universe as the 2nd party and the rest as the 3rd party. So by my considerati

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Susmita/Rajib
;[🔎] CAEG4cZXe=BUQ5VE_z0rcLqHGGERdANnZ=vjiznjbk439jif...@mail.gmail.com> and the rest [ ... ] > Python makes extremely heavy and common use of "virtual environments". > This is not full-blown system virtualization as you might be thinking. > It's more like a chroot,

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Susmita/Rajib
gt;> >> that could theoretically be looked into, but that would mean extra >> >> system resources to be spent for it. >> > > > This is where terminology is not helpful. Python has the concept of > a virtual environment (venv) in which to run Python programs sep

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Greg Wooledge
On Thu, Jul 27, 2023 at 08:57:26AM +0530, Susmita/Rajib wrote: > Is there something called a bare minimum virtualisation, where only > the python environment could be in a 'cage', isolated from the rest > system, so that irrespective of the virtual environment resides or is &

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Greg Wooledge
On Thu, Jul 27, 2023 at 07:28:25AM +, Andrew M.A. Cater wrote: > You are trying to create a stand alone Python script on Debian that > you can give to someone running Windows. > > Python is an interpreted language - so that person will need a version > of Python on their mach

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-27 Thread Andrew M.A. Cater
15:52:38 (+0530), Susmita/Rajib wrote: > >> From: David Wright > >> Date: Thu, 20 Jul 2023 10:06:43 -0500 > >> > > I'm not sure who you think the first and second parties are. > [ ... ] > > I have considered myself as the 1st party. Debian

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-26 Thread Susmita/Rajib
;[🔎] CAEG4cZXe=BUQ5VE_z0rcLqHGGERdANnZ=vjiznjbk439jif...@mail.gmail.com> and others > On Thu, Jul 27, 2023 at 07:08:35AM +0530, Susmita/Rajib wrote: >> I have considered myself as the 1st party. Debian universe as the 2nd >> party and the rest as the 3rd party. So by my consideration, an

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-26 Thread David Wright
On Thu 27 Jul 2023 at 07:08:35 (+0530), Susmita/Rajib wrote: > From: David Wright > Date: Wed, 26 Jul 2023 12:22:04 -0500 > > On Mon 24 Jul 2023 at 15:52:38 (+0530), Susmita/Rajib wrote: > >> Thank you for writing back with the link leading to the Python

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-26 Thread Greg Wooledge
On Thu, Jul 27, 2023 at 07:08:35AM +0530, Susmita/Rajib wrote: > I have considered myself as the 1st party. Debian universe as the 2nd > party and the rest as the 3rd party. So by my consideration, anything > 'Python' outside of the Debian Universe is 3rd party. I have rarely

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-26 Thread Susmita/Rajib
; >> Thank you for writing back with the link leading to the Python >> Discourse thread. [ … ] >> Can't accept a third party website info on face value. > > PEPs are official Python documents; the one I referred to > is an Accepted (as of June last year) Standards Tra

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-26 Thread David Wright
On Mon 24 Jul 2023 at 15:52:38 (+0530), Susmita/Rajib wrote: > From: David Wright > Date: Thu, 20 Jul 2023 10:06:43 -0500 > > Thank you for writing back with the link leading to the Python > Discourse thread. [ … ] > Can't accept a third party website info o

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-24 Thread Andy Smith
Hello, On Mon, Jul 24, 2023 at 05:27:28PM +0530, Susmita/Rajib wrote: > My first post of this thread is illustrative. You did indeed state that you only wanted guidance from "Illustrious leaders and senior List Maintainers of Debian Users ML" so I don't know why anyone is bothering to give you an

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-24 Thread Susmita/Rajib
;[🔎] CAEG4cZXe=BUQ5VE_z0rcLqHGGERdANnZ=vjiznjbk439jif...@mail.gmail.com> <[🔎] CAEG4cZXy=0lra4adonsaueeoafdyapoqf5cze3s1zerrjfs...@mail.gmail.com> On Mon, Jul 24, 2023 at 03:52:38PM +0530, Susmita/Rajib wrote: > Thank you for writing back with the link leading to the Python >

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-24 Thread Greg Wooledge
On Mon, Jul 24, 2023 at 03:52:38PM +0530, Susmita/Rajib wrote: > Thank you for writing back with the link leading to the Python > Discourse thread. I would have preferred a similar post assuring us > from the Debian Side. Can't accept a third party website info on face > value.

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-24 Thread Susmita/Rajib
/www.debian.org/releases/stable/amd64/release-notes/ch-information.en.html#python3-pep-668 [...] Dear Mr. Wright, Thank you for writing back with the link leading to the Python Discourse thread. I would have preferred a similar post assuring us from the Debian Side. Can't accept a thi

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-20 Thread David Wright
On Thu 20 Jul 2023 at 16:36:44 (+0530), Susmita/Rajib wrote: > I want to have other users run my python script on their computers, > that don't have python installer, as a standalone binary/executable. > > I searched the debian-user ML with the string, "standalone python &g

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-20 Thread Roger Price
On Thu, 20 Jul 2023, Susmita/Rajib wrote: I want to have other users run my python script on their computers, that don't have python installer, as a standalone binary/executable. This is the wrong list. It's a 12 year old question. A Google search would have given

Re: How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-20 Thread Andy Smith
Hi, On Thu, Jul 20, 2023 at 04:36:44PM +0530, Susmita/Rajib wrote: > My dear Illustrious leaders and senior List Maintainers of Debian Users ML, Is there some reason that you only want answers from "leaders" and "senior List Maintainers" as opposed to the vast majority of list subscribers, like y

How could a standalone python binary executable be made from a python script, to be run on other computers that don't have python installed?

2023-07-20 Thread Susmita/Rajib
My dear Illustrious leaders and senior List Maintainers of Debian Users ML, I want to have other users run my python script on their computers, that don't have python installer, as a standalone binary/executable. I searched the debian-user ML with the string, "standalone python binary

Re: Follow recent stable Python versions

2023-06-23 Thread Yoann LE BARS
Hello, everybody out there! Thank you for your answers. I realize I have not made myself clear, my bad. Indeed, I do not want to change the Python version of the whole distribution: I do not want to mess up the system. My need is to follow the up-to-date Python stable version for

Re: Follow recent stable Python versions

2023-06-22 Thread Anssi Saari
Dan Ritter writes: > You will want to let the Debian python packages alone, and > install new pythons from source in /opt/python-VER or such. Then > use venvs to make sure that you are always getting the python > you really want. There's a tool called pyenv which handles downlo

Re: Follow recent stable Python versions

2023-06-22 Thread Celejar
On Thu, 22 Jun 2023 19:34:54 -0400 Greg Wooledge wrote: > On Fri, Jun 23, 2023 at 01:06:05AM +0200, Yoann LE BARS wrote: > > As far as I know, Python is not part of backports. Is there any way > > other > > than pinning to install the last stable version of Python on a

Re: Follow recent stable Python versions

2023-06-22 Thread Manphiz
Yoann LE BARS writes: > Hello, everybody out there! > > For the upcoming two years, I will have to follow the new versions of > Python. Not the preview release, but the up-to-date stable release – > well, I can wait for a couple of weeks after the rele

Re: Follow recent stable Python versions

2023-06-22 Thread Dan Ritter
Yoann LE BARS wrote: > > Hello, everybody out there! > > For the upcoming two years, I will have to follow the new versions of > Python. Not the preview release, but the up-to-date stable release – well, I > can wait for a couple of weeks after the release of the l

Re: Follow recent stable Python versions

2023-06-22 Thread Greg Wooledge
On Fri, Jun 23, 2023 at 01:06:05AM +0200, Yoann LE BARS wrote: > As far as I know, Python is not part of backports. Is there any way > other > than pinning to install the last stable version of Python on a stable > version of Debian? Drop the idea that you have only one versio

Follow recent stable Python versions

2023-06-22 Thread Yoann LE BARS
Hello, everybody out there! For the upcoming two years, I will have to follow the new versions of Python. Not the preview release, but the up-to-date stable release – well, I can wait for a couple of weeks after the release of the last stable version. As far as I know, Python is not

Re: /libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found

2023-04-01 Thread Mario Marietto
Hello. I have installed these packages on Debian 11 : freenect/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-bin/stable,now 1:0.5.3-2 amd64 [installed, automatic] libfreenect-demos/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-dev/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-doc/s

Re: /libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found

2023-04-01 Thread Kushal Kumaran
On Sat, Apr 01 2023 at 10:42:11 PM, Mario Marietto wrote: > Hello. > > I'm trying to compile libfreenect because I want to use my kinect xbox 360 > on Debian 11. I'm following the tutorial that I've found here : > libfreenect is already packaged in debian. Is there a reason you're building from

/libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found

2023-04-01 Thread Mario Marietto
d.We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.htmlPlease note and check the following: * The Python version is: Python3.8 from "/usr/local/bin/python3.8" * The NumPy version is: "1.24.2"and make sur

Re: Fw: python thinking at debian

2023-02-21 Thread Max Nikulin
On 20/02/2023 20:59, Vic Cekvenich wrote: ... I think that is the goal for all of us. ... I did/do apt install python3-pip and python3-venv and python ensurepip still does not work. But if I do pyenv to build, all of python works well. There is large gap between too generic goal "can de

Re: Fw: python thinking at debian

2023-02-20 Thread Dan Ritter
Vic Cekvenich wrote: > Hi Dan, thx for a response. > > I am trying to avoid building python. > > I currently do that via pyenv for the system python and it makes debian > unstable(as 'my' python in /usr/local fights with other system packages in > /bin. I'd

Re: Fw: python thinking at debian

2023-02-20 Thread Vic Cekvenich
Hi Dan, thx for a response. I am trying to avoid building python. I currently do that via pyenv for the system python and it makes debian unstable(as 'my' python in /usr/local fights with other system packages in /bin. I'd like to think that debian also would like to help

Re: Fw: python thinking at debian

2023-02-20 Thread Dan Ritter
Vic Cekvenich wrote: > > I can't figure out how to file a bug. But I see a bug related to ensurepip - > and some maintainer said that ensurepip is used by developers and won't be > fixed by debian. > > But you also won't let us that develop fix it. In ubuntu, they even have a > repo for ptyh

Fw: python thinking at debian

2023-02-19 Thread Vic Cekvenich
tu just so we can develop. Anyway, I'm sure I have done things and this will be ignore, but maybe you get other input on this and allow us to use debina for D12/bookworm. Cheers, Vic error: # python -m ensurepip ensurepip is disabled in Debian/Ubuntu for the system python. Python modules for

Re: Python curses

2023-01-10 Thread Nate Bargmann
t of the main namespace.. Then there is the "import fooBarBaz as fBB" syntax which is useful to shorten long module names, as I understand it (the name after the "as" can be any legal Python identifier). There are some modules with submodules that make the long name prefix

Re: Python curses

2023-01-10 Thread paulf
gt; On Tue 10 Jan 2023 at 09:01:17 (-0500), pa...@quillandmouse.com > > > wrote: > > > > On Tue, 10 Jan 2023 08:34:05 -0500 Greg Wooledge > > > > wrote: > > > > > On Tue, Jan 10, 2023 at 08:24:11AM -0500, > > > > >

Re: Python curses

2023-01-10 Thread David Wright
e > > > wrote: > > > > On Tue, Jan 10, 2023 at 08:24:11AM -0500, pa...@quillandmouse.com wrote: > > > > > What you wrote triggered something. I'd been following the > > > > > Python curses docs, which tell you to write, for example, &g

Re: Python curses

2023-01-10 Thread Curt
On 2023-01-10, wrote: > > Follow-up question, in case you know this too: apparently, when you > purchase a Kindle book and read it via the Kindle app on your Android > phone, the document doesn't exist on the phone itself. I've https://pennbookcenter.com/where-are-kindle-books-stored-on-android/

Re: Python curses

2023-01-10 Thread paulf
> > wrote: > > > > What you wrote triggered something. I'd been following the > > > > Python curses docs, which tell you to write, for example, > > > > "A_REVERSE". And Python was throwing exceptions. But based on > > > > what you

Re: Python curses

2023-01-10 Thread Dan Ritter
pa...@quillandmouse.com wrote: > On Tue, 10 Jan 2023 08:11:28 -0500 > Dan Ritter wrote: > > > The Debian package calibre contains: > > > > - an X11 application which is an all-singing, all-dancing > > library manager and ebook reader > > > > - a set of CLI-usable conversion utilities, most imp

Re: Python curses

2023-01-10 Thread David Wright
On Tue 10 Jan 2023 at 09:01:17 (-0500), pa...@quillandmouse.com wrote: > On Tue, 10 Jan 2023 08:34:05 -0500 Greg Wooledge wrote: > > On Tue, Jan 10, 2023 at 08:24:11AM -0500, pa...@quillandmouse.com wrote: > > > What you wrote triggered something. I'd been following the P

Re: Python curses

2023-01-10 Thread tomas
On Tue, Jan 10, 2023 at 02:48:26PM +, Tixy wrote: [...] > I doubt that's possible because I assume these things are protected > with DRM to stop people from copying them, or escaping the clutches of > Big Corp who want to monitor what you do in order to sell you more > stuff. I have yet to s

Re: Python curses

2023-01-10 Thread Tixy
On Tue, 2023-01-10 at 09:18 -0500, pa...@quillandmouse.com wrote: > Follow-up question, in case you know this too: apparently, when you > purchase a Kindle book and read it via the Kindle app on your Android > phone, the document doesn't exist on the phone itself. I've > plugged my phone into my PC

Re: Python curses

2023-01-10 Thread paulf
On Tue, 10 Jan 2023 08:11:28 -0500 Dan Ritter wrote: > pa...@quillandmouse.com wrote: > > On Tue, 10 Jan 2023 21:29:31 +1100 > > David wrote: > > > > > On Tue, 10 Jan 2023 at 15:04, wrote: > > > > > > > > I'm trying to write some code in Python's curses module. > > > > > > Hi, > > > > > > T

Re: Python curses

2023-01-10 Thread tomas
On Tue, Jan 10, 2023 at 09:01:17AM -0500, pa...@quillandmouse.com wrote: > On Tue, 10 Jan 2023 08:34:05 -0500 > Greg Wooledge wrote: > > > On Tue, Jan 10, 2023 at 08:24:11AM -0500, pa...@quillandmouse.com > > wrote: > > > What you wrote triggered something.

Re: Python curses

2023-01-10 Thread paulf
On Tue, 10 Jan 2023 08:34:05 -0500 Greg Wooledge wrote: > On Tue, Jan 10, 2023 at 08:24:11AM -0500, pa...@quillandmouse.com > wrote: > > What you wrote triggered something. I'd been following the Python > > curses docs, which tell you to write, for example, "A_

Re: Python curses

2023-01-10 Thread Greg Wooledge
On Tue, Jan 10, 2023 at 08:24:11AM -0500, pa...@quillandmouse.com wrote: > What you wrote triggered something. I'd been following the Python > curses docs, which tell you to write, for example, "A_REVERSE". And > Python was throwing exceptions. But based on what yo

Re: Python curses

2023-01-10 Thread Dan Ritter
pa...@quillandmouse.com wrote: > On Tue, 10 Jan 2023 21:29:31 +1100 > David wrote: > > > On Tue, 10 Jan 2023 at 15:04, wrote: > > > > > > I'm trying to write some code in Python's curses module. > > > > Hi, > > > > This kindle/paperback book [1][2] might also be of interest. > > > > Don't l

Re: Python curses

2023-01-10 Thread paulf
On Tue, 10 Jan 2023 03:21:11 -0600 Nate Bargmann wrote: > * On 2023 09 Jan 22:05 -0600, pa...@quillandmouse.com wrote: > > Folks: > > I'm not python curses expert, but is what I found. > > > I'm trying to write some code in Python's curses module. I&#

Re: Python curses

2023-01-10 Thread paulf
n's vendor lock with Kindle. Do you know of a simple, accessible way of converting a Kindle book to something I can read on my PC? [snip] > The author is a moderator of the python-tutor mailing list [4], and > very helpful on there, so that also might be a good place to ask > a

Re: Python curses

2023-01-10 Thread David
$6.00) as explained here [3]. Disclaimer: I have not read it, but if I was going to do anything in curses with Python then I would start by reading it. The author is a moderator of the python-tutor mailing list [4], and very helpful on there, so that also might be a good place to ask

Re: Python curses

2023-01-10 Thread Nate Bargmann
* On 2023 09 Jan 22:05 -0600, pa...@quillandmouse.com wrote: > Folks: I'm not python curses expert, but is what I found. > I'm trying to write some code in Python's curses module. I've run into > common curses items like A_NORMAL which don't exist. When I do a

Python curses

2023-01-09 Thread paulf
Folks: I'm trying to write some code in Python's curses module. I've run into common curses items like A_NORMAL which don't exist. When I do a print(curses.version), it shows "b 2.2". This tells me that the Debian (testing) version of python curses is version 2.2

Re: [bullseye] ganglia-monitor-python compatibility

2022-10-28 Thread Dan Ritter
ea why the package Ganglia Python Modules > <https://packages.debian.org/buster/ganglia-monitor-python> is no longer > supported on Debian Bullseye ? Is this a kernel incompatibility issue or > Python related problem ? Is there a workaround solution to use some of > these monitoring

[bullseye] ganglia-monitor-python compatibility

2022-10-27 Thread Bardo Bardo
Hi, Ganglia has some useful monitoring plugins such as diskstat, mysql, postgresql, elasticsearch, advanced cpu metrics, ... i'm using theses metrics for years, but since Debian 11 these modules are no longer available, Is there any idea why the package Ganglia Python Modules &

OT, Re: Answering to the question (was: Problem Running Python with Apache2 on Debian)

2022-07-22 Thread john doe
On 7/22/2022 6:50 PM, Nicolas George wrote: Edwin Zimmerman (12022-07-22): You are right.  I stopped reading when I saw the tkinter import. I was considering sending to this list a general advice about answering the question as it is asked, with three checks. You just made me insert a fourth o

Answering to the question (was: Problem Running Python with Apache2 on Debian)

2022-07-22 Thread Nicolas George
Edwin Zimmerman (12022-07-22): > You are right.  I stopped reading when I saw the tkinter import. I was considering sending to this list a general advice about answering the question as it is asked, with three checks. You just made me insert a fourth one at the beginning and convinced me to send i

Re: Problem Running Python with Apache2 on Debian

2022-07-22 Thread Edwin Zimmerman
> Look at the original mail: they want tu execute a CGI. You are right.  I stopped reading when I saw the tkinter import.

Re: Problem Running Python with Apache2 on Debian

2022-07-22 Thread Nicolas George
Edwin Zimmerman (12022-07-22): > Sorry, but this isn't possible to do.  Firefox is treating your .py as > a download.  If you want a browser-based application, you need to look > into using a web framework like django or flask instead of > desktop-based frameworks like tkinter. Please, the questio

Re: Problem Running Python with Apache2 on Debian

2022-07-22 Thread Edwin Zimmerman
On 7/22/22 12:10 PM, ldmko...@yahoo.com wrote: > > I cannot get a python file to execute from html in Apache2 running on Debian > 11.  I will attempt to provide enough information: Sorry, but this isn't possible to do.  Firefox is treating your .py as a download.  If you want a

Focus on python 3.9 instead of 3.9.2 for Bullseye?

2022-04-29 Thread Harald Dunkel
Hi folks, Would it be possible to ignore the micro version number of python 3.9 and get 3.9.12 for Bullseye? Hiding 3.9.12 in Bookworm is useless. I doubt that the users running Testing or Sid are scared of python 3.10. Regards Harri

Re: Error when updating user Python packages

2022-02-20 Thread Nicholas Geovanis
On Sun, Feb 20, 2022, 2:21 AM Christian Britz wrote: > > > On 2022-02-20 03:35 UTC+0100, Nicholas Geovanis wrote: > > > Probably you should be using the pip3 command instead. It may not be > > installed, > > so I think this will install it: > > sudo apt-get install python3-pip > > python3-pip is

Re: Error when updating user Python packages

2022-02-20 Thread Christian Britz
On 2022-02-20 03:35 UTC+0100, Nicholas Geovanis wrote: > Probably you should be using the pip3 command instead. It may not be > installed, > so I think this will install it: >  sudo apt-get install python3-pip python3-pip is installed. I think it came with the Debian installer. It makes no di

Re: Error when updating user Python packages

2022-02-19 Thread Nicholas Geovanis
is on Debian stable. Any ideas? > Probably you should be using the pip3 command instead. It may not be installed, so I think this will install it: sudo apt-get install python3-pip That's assuming that you want to stay inside the Debian universe. You could install it directly by pip and eve

Re: Error when updating user Python packages

2022-02-19 Thread Christian Britz
idates > > > package_links = self.process_project_url( > > > > File > "/usr/lib/python3/dist-packages/pip/_internal/index/package_finder.py", > line 793, in process_project_url > > > page_links = list(parse_links(html_page)) >

Error when updating user Python packages

2022-02-19 Thread Christian Britz
dist-packages/pip/_internal/index/collector.py", line 324, in wrapper_wrapper return list(fn(page)) File "/usr/lib/python3/dist-packages/pip/_internal/index/collector.py", line 335, in parse_links document = html5lib.parse( File "/usr/share/python-wheels/htm

Re: python-apt create_pin question

2022-01-17 Thread Antonio Russo
tiny bit before posting: Unlike the file parsing interface (ReadPinfile) in libapt, which performs a case-insensitive compare, the Python interface to CreatePin checks for either "Origin" or "origin": static PyObject *policy_create_pin(PyObject *self, PyObject *args) { p

Re: python-apt create_pin question

2022-01-17 Thread Michael Lange
be doing something silly. I'd appreciate any help. just a shot into the dark: According to https://apt-team.pages.debian.net/python-apt/library/apt_pkg.html : "The parameter type refers to one of the strings ‘Version’, ‘Release’, or ‘Origin’. "

Re: python-apt create_pin question

2022-01-15 Thread Andrei POPESCU
On Vi, 14 ian 22, 08:09:30, Antonio Russo wrote: > > Hello! > > I'm trying to use apt_pkg to get a "best candidate" for a package, but with > slightly different constraints than I have set up in /etc/apt/preferences.d. > > I am trying to use Policy.create_pin to do so, but cannot seem to get it

python-apt create_pin question

2022-01-14 Thread Antonio Russo
Hello! I'm trying to use apt_pkg to get a "best candidate" for a package, but with slightly different constraints than I have set up in /etc/apt/preferences.d. I am trying to use Policy.create_pin to do so, but cannot seem to get it working: import apt_pkg apt_pkg.init() cache = apt_pkg.Cach

gimpfu (python) module

2021-12-06 Thread A. Kapetanovic
Hi, I am trying to do some python gimp scripting but impossible to understand how to install the gimpfu module on my debian 11 : Can please someone help me ? Thanks. devel@k0:~/.config/GIMP/2.10/plug-ins$ ./ofn-export-layers-combinations.py Traceback (most recent call last): File "

Re: Bullseye default python

2021-06-09 Thread David Wright
On Wed 09 Jun 2021 at 10:39:32 (-0400), Henning Follmann wrote: > I recently update one computer to bullseye. > So I noticed that /usr/bin/python is not created. > I probably missed the news how this will be handled. > I think python never was managed through update-alternatives

Re: Bullseye default python

2021-06-09 Thread Dan Ritter
Henning Follmann wrote: > Hello, > I recently update one computer to bullseye. > So I noticed that /usr/bin/python is not created. > I probably missed the news how this will be handled. > I think python never was managed through update-alternatives, > /usr/bin/python was just

Bullseye default python

2021-06-09 Thread Henning Follmann
Hello, I recently update one computer to bullseye. So I noticed that /usr/bin/python is not created. I probably missed the news how this will be handled. I think python never was managed through update-alternatives, /usr/bin/python was just a link to /usr/bin/python2 which was again just a link to

Re: about a post at debian-python

2021-03-28 Thread Robbi Nespu
On 3/27/21 4:14 PM, Patrice Duroux wrote: Hi, Sorry if I polluted the debian-python mailing list about my following investigations: https://lists.debian.org/debian-python/2021/03/msg00053.html <https://lists.debian.org/debian-python/2021/03/msg00053.html> https://lists.debian.org/

about a post at debian-python

2021-03-27 Thread Patrice Duroux
Hi, Sorry if I polluted the debian-python mailing list about my following investigations: https://lists.debian.org/debian-python/2021/03/msg00053.html https://lists.debian.org/debian-python/2021/03/msg00054.html I was not convinced to start by opening an issue starting at snakemake, so I posted

  1   2   3   4   5   6   7   8   9   10   >