RV: python

2024-03-11 Thread Víctor José Jiménez Asensio
recepción. De: Romero, Fernando [mailto:fernando.rom...@trenesargentinos.gob.ar] Enviado el: lunes, 11 de marzo de 2024 16:36 Para: debian-user-spanish@lists.debian.org Asunto: python Hola como están, no es de debían pero siempre para un sysadmin saber de Python nos ayuda mucho. Les dejo un

python

2024-03-11 Thread Romero, Fernando
Hola como están, no es de debían pero siempre para un sysadmin saber de Python nos ayuda mucho. Les dejo un curso desde cero que lo van subiendo todas las semanas por lo que veo siguiendo el canal Saludos https://www.youtube.com/playlist?list=PLu_htiBDhr8GaHkY_IUWpr7wy72kjf5mw "El cont

Re: Using a Python script as a login shell

2024-02-16 Thread Alex King
, 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 bugs in python itself

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

Installation de bibliothèques python

2023-09-28 Thread BERTRAND Joël
Bonjour à tous, J'essaye d'installer une bibliothèque python (et je me souviens pourquoi je hais ce truc, mais c'est une autre histoire). La bibliothèque en question est pcbnewTransition qui a un makefile. Parfait, je sais créer le paquet : [~] > make package

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 consideration, a

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
t;[] 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, ex

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
t; >> 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 separately &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-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 > remove

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 un

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
t;[] 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 considerat

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 > inst

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 Track. &

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 on

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

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
t;[] 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 > Discourse

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. Yo

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 third pa

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 you https

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

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 execu

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

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

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

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

Re: recherche exemples de script Python pour GDB (deboguage du moteur d'inference RefPerSys)

2023-06-06 Thread didier gaumet
exemples (-sous licence libre, en français ou en anglais) d'extension de GDB 13 en Python. C'est documenté comme possible, https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html#Python mais je ne suis très familier avec Python. J'aurais préféré coder le déboguage avec Guile, https

recherche exemples de script Python pour GDB (deboguage du moteur d'inference RefPerSys)

2023-06-06 Thread Basile Starynkevitch
) d'extension de GDB 13 en Python. C'est documenté comme possible, https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html#Python mais je ne suis très familier avec Python. J'aurais préféré coder le déboguage avec Guile, https://www.gnu.org/software/guile/ mais celui-ci semble moins

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]

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

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

2023-04-01 Thread Mario Marietto
ommon 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 sure that they are the versi

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 like to think t

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 in us devs

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

Fw: python thinking at debian

2023-02-19 Thread Vic Cekvenich
. 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 the system python are usually

Re: Python curses

2023-01-10 Thread Nate Bargmann
ain 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 onerou

Re: Python curses

2023-01-10 Thread paulf
n 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..

Re: Python curses

2023-01-10 Thread David Wright
gt; > > 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

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 wrote

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

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 Python

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

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

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

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_R

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 you wro

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

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've run > >

Re: Python curses

2023-01-10 Thread paulf
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 > any questions you mig

Re: Python curses

2023-01-10 Thread David
ined 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 any questions y

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 > print(curses.versio

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. The documentation

Re: [bullseye] ganglia-monitor-python compatibility

2022-10-28 Thread Dan Ritter
y 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 plugi

[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 <ht

[Python] quelqu'un la lu ? l'utilise ?

2022-09-22 Thread ptilou
developed mobile applications with a company operating a funds and investments distribution platform. Auteur(s): Weiming, James Ma Editeur: Packt Publishing Année de Publication: 2015 pages: 340 ISBN: 978-1-78439-451-6 eISBN: 978-1-78439-787-6 Built initially for scientific computing, Python quickly

Re: Questions Python

2022-08-31 Thread Pierre ESTREM
Bonjour Marc et le Monde, La réponse est ici : https://www.developpez.net/forums/d1474088/autres-langages/python/gui/tkinter/obtenir-nom-widget-focus/ Mais j'ai fait un peu autrement. On utilise la propriété "_name" qu'il faut donc fixer à la création du widget. # Un extrait # U

Re: OT - "tuples" en Python

2022-08-31 Thread sergiogomez
El 2022-08-31 12:32, Debian escribió: > El 31/8/22 a las 12:27, Roberto C. Sánchez escribió: On Wed, Aug 31, 2022 at > 12:18:39PM -0300, Debian wrote: Buen día. > > Estoy aprendiendo Python. Y como no puede ser de otra manera, la > bibliografía está en inglés, o spanglish

Re: OT - "tuples" en Python

2022-08-31 Thread Roberto C . Sánchez
On Wed, Aug 31, 2022 at 12:49:05PM -0300, Debian wrote: > El 31/8/22 a las 12:35, Camaleón escribió: > > Es correcto. > > La RAE no alcanza términos científicos, hay que tirar de un corpus > > especializdo; > > > > https://enclavedeciencia.rae.es/tupla > > > > Saludos, > > > > -- Camaleón > >

Re: OT - "tuples" en Python

2022-08-31 Thread Debian
El 31/8/22 a las 12:35, Camaleón escribió: Es correcto. La RAE no alcanza términos científicos, hay que tirar de un corpus especializdo; https://enclavedeciencia.rae.es/tupla Saludos, -- Camaleón No conocía esa posibilidad de entrada a la RAE. (Cada vez me gusta más la RAE) JAP

Re: OT - "tuples" en Python

2022-08-31 Thread Roberto C . Sánchez
On Wed, Aug 31, 2022 at 12:32:43PM -0300, Debian wrote: > El 31/8/22 a las 12:27, Roberto C. Sánchez escribió: > > On Wed, Aug 31, 2022 at 12:18:39PM -0300, Debian wrote: > > > Buen día. > > > > > > Estoy aprendiendo Python. Y como no puede ser de otra manera,

Re: OT - "tuples" en Python

2022-08-31 Thread Camaleón
El 2022-08-31 a las 12:18 -0300, Debian escribió: > Buen día. > > Estoy aprendiendo Python. Y como no puede ser de otra manera, la > bibliografía está en inglés, o spanglish. > > Entiendo informáticamente lo que es "tuples" según el diccionario Oxford: "a > d

Re: OT - "tuples" en Python

2022-08-31 Thread Debian
El 31/8/22 a las 12:27, Roberto C. Sánchez escribió: On Wed, Aug 31, 2022 at 12:18:39PM -0300, Debian wrote: Buen día. Estoy aprendiendo Python. Y como no puede ser de otra manera, la bibliografía está en inglés, o spanglish. Entiendo informáticamente lo que es "tuples" según el d

Re: OT - "tuples" en Python

2022-08-31 Thread Roberto C . Sánchez
On Wed, Aug 31, 2022 at 12:18:39PM -0300, Debian wrote: > Buen día. > > Estoy aprendiendo Python. Y como no puede ser de otra manera, la > bibliografía está en inglés, o spanglish. > > Entiendo informáticamente lo que es "tuples" según el diccionario Oxford: &q

OT - "tuples" en Python

2022-08-31 Thread Debian
Buen día. Estoy aprendiendo Python. Y como no puede ser de otra manera, la bibliografía está en inglés, o spanglish. Entiendo informáticamente lo que es "tuples" según el diccionario Oxford: "a data structure consisting of multiple parts", o sea, una lista consistente e

Re: Questions Python

2022-08-30 Thread Marc Chantreux
cette question * je pense que ce genre de questions est vraiment hors sujet ici (en tout cas pour ma part je ne suis plus sur les listes python justement parce que ce langage me ... laisse dubitatif :)) bonne chance. -- Marc Chantreux Pôle de Calcul et Services Avancés à la Recherche (CESAR

Re: Questions Python

2022-08-30 Thread Pierre ESTREM
on programme (ce que je crois comprendre en lisant l'exemple), ce soit etre possible en comparant le la référence à toutes les clefs du namespace standard. je ne crois pas que python aie une fonction builtin pour ca vu le peu d'intéret de la chose. Merci de m'aider. Avec plaisir. Je me permet 2 cons

Re: Questions Python

2022-08-30 Thread Pierre ESTREM
;   print (widget()) Avec cette écriture, aucun retour. a+ pierre estrem Le 30/08/2022 à 09:47, Jean-François Colas a écrit : Bonjour Pierre, Avec Python 3, il faudra plutôt écrire:    print (dir (Canvas)) La syntaxe que tu utilises pourrait être valide avec Python 2, en fonction de ce qu'es

Re: Questions Python

2022-08-30 Thread Jean-François Colas
Bonjour Pierre, Avec Python 3, il faudra plutôt écrire: print (dir (Canvas)) La syntaxe que tu utilises pourrait être valide avec Python 2, en fonction de ce qu'est Canvas. Pour le widget, cela dépendpeut-être de sa nature; as-tu essayé: print (widget()) J.-F. Le 29/08/2022 à 23:14

Re: Questions Python

2022-08-30 Thread Marc Chantreux
comprendre en lisant l'exemple), ce soit etre possible en comparant le la référence à toutes les clefs du namespace standard. je ne crois pas que python aie une fonction builtin pour ca vu le peu d'intéret de la chose. > Merci de m'aider. Avec plaisir. Je me permet 2 conseils: * reposer ces q

Re: Questions Python

2022-08-30 Thread Yahoo
Bonjour, pour lister les méthodes d'une "class" en python3 il faut mettre dir dans les parenthèses print(dir(Canvas)) Cdt Loïc Le 29/08/2022 à 23:14, Pierre ESTREM a écrit : Bonjour la liste, Dans mon apprentissage de Python, je progresse et sèche sur des points. Pour obtenir

Re: Questions Python

2022-08-30 Thread Sébastien NOBILI
Bonjour, (Réponse partielle) Le 2022-08-29 23:14, Pierre ESTREM a écrit : Pour obtenir une liste des méthodes d'un objet de classe Canvas, je lis qu'on peut exécuter :   print dir (Canvas()) En Python 3 il faut mettre des parenthèses à "print". Ça n'est pas ça ton erreur ? Sébastien

Questions Python

2022-08-29 Thread Pierre ESTREM
Bonjour la liste, Dans mon apprentissage de Python, je progresse et sèche sur des points. Pour obtenir une liste des méthodes d'un objet de classe Canvas, je lis qu'on peut exécuter :   print dir (Canvas()) J'obtiens une erreur ; quelle est la bonne syntaxe ? D'autre part je ne trouve pas

Tester un réseau en Python

2022-08-10 Thread Olivier
ster l'accès à un portail WiFi (redirection, acceptation de termes d'utilisation, ...). Si possible, j'aimerai rédiger mes tests en Python. Le framework pytest me paraît intéressant, (même si en survolant rapidement sa liste interminable de plugins, je n'en ai pas vu qui soit très indiqué pour le rése

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

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

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

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 brow

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

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

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 even upg

Re: Error when updating user Python packages

2022-02-19 Thread Christian Britz
candidates > > > 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
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’. " So maybe this argument is case sensitive and changing "ori

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 =

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: Aide programme en python

2021-07-20 Thread Étienne Mollier
Bonjour, Georges, on 2021-07-20: > Le Mon, 19 Jul 2021 21:52:22 +0200, > > a écrit : > > > J'ai essayé de récupérer le programme, par curiosité, mais j'ai > > reçu pour tout message: > > >> Invalid File Type > > >> (/home/bipede/www/downloads/logiciels/Paprass-5.65.tar.xz)! > >

Re: Aide programme en python

2021-07-20 Thread Georges
t;> données enregistrées auparavant) sans sucés. En console : > >> ~/Paprass$ python3 paprass.py /home/moi/Paprass/paprass.py:65: > >> DeprecationWarning: an integer is required (got type float). > >> Implicit conversion to integers using __int__ is depr

  1   2   3   4   5   6   7   8   9   10   >