Re: Running a subprocess in a venv

2023-10-21 Thread Johannes Findeisen via Python-list
On Sat, 21 Oct 2023 11:32:03 -0400 Larry Martell wrote: > On Sat, Oct 21, 2023 at 9:49 AM Johannes Findeisen > wrote: > > > > On Sat, 21 Oct 2023 09:01:18 -0400 > > Larry Martell via Python-list wrote: > > > > > I have a python script, and from that

Re: Running a subprocess in a venv

2023-10-21 Thread Johannes Findeisen via Python-list
On Sat, 21 Oct 2023 09:01:18 -0400 Larry Martell via Python-list wrote: > I have a python script, and from that I want to run another script in > a subprocess in a venv. What is the best way to do that? I could write > a file that activates the venv then runs the script, then run that > file, but

Re: Python on Android?

2018-02-20 Thread Johannes Findeisen
On Wed, 21 Feb 2018 00:11:24 +0100 Johannes Findeisen wrote: > On Tue, 20 Feb 2018 23:12:23 +1100 > Chris Angelico wrote: > > > On Mon, Feb 19, 2018 at 3:57 AM, Johannes Findeisen > > wrote: > > > On Sun, 18 Feb 2018 20:57:02 +1100 > > > Chris Angel

Re: Python on Android?

2018-02-20 Thread Johannes Findeisen
On Tue, 20 Feb 2018 23:12:23 +1100 Chris Angelico wrote: > On Mon, Feb 19, 2018 at 3:57 AM, Johannes Findeisen wrote: > > On Sun, 18 Feb 2018 20:57:02 +1100 > > Chris Angelico wrote: > > > >> Does anyone have experience with running Python scripts on Android

Re: Python on Android?

2018-02-18 Thread Johannes Findeisen
On Sun, 18 Feb 2018 20:29:02 +0300 Kirill Balunov wrote: > To mention another way to use Python on Android is Termux project > . From their site - Termux is an *Android terminal > emulator and Linux environment app* that works directly with no rooting or > setup required and

Re: Python on Android?

2018-02-18 Thread Johannes Findeisen
On Sun, 18 Feb 2018 20:57:02 +1100 Chris Angelico wrote: > Does anyone have experience with running Python scripts on Android > phones? I have a brother (honestly! I'm not actually using a phone > myself!) who's trying to run one of my scripts in QPython, which > claims to be version 3.2.2. I thin

Re: snmpset

2016-02-05 Thread Johannes Findeisen
On Fri, 5 Feb 2016 12:12:58 -0500 Joel Goldstick wrote: > On Fri, Feb 5, 2016 at 11:10 AM, Zachary Ware > wrote: > > > On Fri, Feb 5, 2016 at 9:16 AM, Matt wrote: > > > How do I do the equivalent of this in Python? > > > > > > snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 s tes

Re: Recurring Prompt

2016-01-21 Thread Johannes Findeisen
On Wed, 20 Jan 2016 11:30:19 -0800 Mansi wrote: > Hello, > > I just installed Python 3.5.1 but anytime I use Pycharm, a prompt of whether > I want to modify, repair or uninstall Python keeps on coming up. Even while > I'm in the midst of typing a program. Please advise. I believe, You should

Re: tcp server as windows service

2014-09-23 Thread Johannes Findeisen
Hi, On Tue, 23 Sep 2014 15:56:41 +0200 Arulnambi Nandagoban wrote: > Hello all, > > > > I developed a multithreaded tcp server with python and I converted into a > windows executable using pyinstaller. > > I would like to run the server as a windows service so that server restarts > whenev

Re: pip3.x error using LIST instead of list

2014-02-11 Thread Johannes Findeisen
On Tue, 11 Feb 2014 14:10:32 + Mark Lawrence wrote: > As the subject line says, details below. > > c:\Python34\Scripts>pip3.4 LIST > Traceback (most recent call last): >File "C:\Python34\lib\runpy.py", line 189, in _run_module_as_main > "__main__", mod_spec) >File "C:\Python34\li

Re: Latest Python 3.4 in the source repo is broken?

2014-02-04 Thread Johannes Findeisen
On 04 Feb 2014 15:45:46 GMT Steven D'Aprano wrote: > Before I bother Python-Dev with this, can anyone else confirm that > building Python 3.4 from source using the latest version in the source > repository fails? I can not confirm an error. I checked out the latest sources and ./configure and m

Re: Convert NTP timestamp from NTP packet to System time and date format

2014-01-30 Thread Johannes Findeisen
On Thu, 30 Jan 2014 18:34:04 +0500 Sadia Bashir wrote: > Hello everyone; > > I want to write NTP client which sends and receives NTP packet to NTP > server and should read the value from one of the four offsets and convert > it to user readable local or GMT time format, I specifically want to kno

Re: Script Request

2013-12-11 Thread Johannes Findeisen
Hi, On Wed, 11 Dec 2013 04:53:41 -0700 Jeff James wrote: > Looking for a script which will check connectivity of any or all of our > company URL's first thing in the morning to make sure none or our sites are > down. Any suggestions ? Thank You This really is not a suggestion because the s

Re: wiimote IR tracking in python

2013-12-01 Thread Johannes Findeisen
On Mon, 2 Dec 2013 05:59:07 +0800 martin koh wrote: > Hi all..may i know how to do the IR tracking by using wiimote? i did tried > the source code from > (http://ph-elec.com/archives/simple-python-wii-mote-test/) using command > prompt but i can't compile successfully, i think is because i don'

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Sat, 30 Nov 2013 01:08:28 + Mark Lawrence wrote: > On 30/11/2013 01:06, Tim Chase wrote: > > On 2013-11-30 00:59, Mark Lawrence wrote: > >> Wrong again, or at least overengineered. > >> > >> print "The total rolled was:", number, " > > ^ > >> > >

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Sat, 30 Nov 2013 01:38:36 +0100 Johannes Findeisen wrote: > On Fri, 29 Nov 2013 16:31:21 -0800 (PST) > farhan...@gmail.com wrote: > > > print "The total rolled was: "number" " > > The above line is wrong. You did it right below: > > > pri

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Fri, 29 Nov 2013 16:31:21 -0800 (PST) farhan...@gmail.com wrote: > print "The total rolled was: "number" " The above line is wrong. You did it right below: > print "Thanks for playing, " + name + "." > print "You bet the total would be at least " + value + "." Do this: print "The total ro

Re: Python project

2013-11-28 Thread Johannes Findeisen
On Thu, 28 Nov 2013 15:43:43 -0800 (PST) ngangsia akumbo wrote: > > I wish to come up with a city guide that can give directions, locations like > business spots, cafe, restaurants, hospitals in English and the local > language spoken by the people. Thats a nice idea! :) > To be honest am not

Re: Python project

2013-11-27 Thread Johannes Findeisen
On Wed, 27 Nov 2013 17:43:27 -0800 (PST) ngangsia akumbo wrote: > Hi everyone Hi, > I a beginner in python. The first project is to build an online city guide > start with my own city. I will need some support on where to get started. Take a look at the Django Web framework: https://www.django

Re: Doc generation from annotated source code

2013-11-18 Thread Johannes Findeisen
On Mon, 18 Nov 2013 14:46:46 +0100 Laszlo Nagy wrote: > I just started rewritting my project from python 2 to python 3. I > noticed that there are these new parameter and return value annotations. > I have docstrings everywhere in my project, but I plan to convert many > of them into annotation

Re: Self-defence

2013-11-17 Thread Johannes Findeisen
On Sun, 17 Nov 2013 14:09:44 -0300 Zero Piraeus wrote: Since Nikos is providing downloads to torrent files from Hollywood movies I reported abuse/copyright violation to CloudFlare where he is hosting his site. I made screenshots of that site and downloaded all torrent files as evidence. I will

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Johannes Findeisen
On Sat, 16 Nov 2013 07:56:47 -0800 (PST) Ned Batchelder wrote: > Johannes, in cases like this, it is very important to have a clear message. > I liked that you said, "We cannot teach you Unix basics here". It weakens > that message if you then teach some Unix basics. Better to keep things very

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Johannes Findeisen
On Sat, 16 Nov 2013 07:32:36 -0800 (PST) Ferrous Cranus wrote: > Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence > έγραψε: > > On 16/11/2013 13:45, Ferrous Cranus wrote: > root@secure [~]# cd /usr/bin/python3 > -bash: cd: /usr/bin/python3: Not a directory > > It seems

Re: Static Website Generator

2013-11-16 Thread Johannes Findeisen
Hi, On Sat, 16 Nov 2013 14:21:04 +0100 Silvio Siefke wrote: > i want try a static Website Generator. Has someone an advice for a simple > and easy System to use? I want run my blog with it, so the system should > run with my design of Website. have you looked at http://ringce.com/hyde . I curren

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Johannes Findeisen
On Thu, 14 Nov 2013 00:00:04 +0200 Ferrous Cranus wrote: > Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε: > > But i have gone to the link and did what it said and it didn't proved > usefull thats why i re-ask. Try looking for a package named "setuptools". I think that is the package you

Re: Trying tcompile an use the Python 3.4a

2013-11-13 Thread Johannes Findeisen
On Wed, 13 Nov 2013 23:19:53 +0200 Ferrous Cranus wrote: > Στις 13/11/2013 7:45 μμ, ο/η Chris “Kwpolska” Warrick έγραψε:> > > Get ez_setup.py and get-pip.py, and run them with the desired Python. > > > > > Why can't i just use that? > > root@secure [~]# sudo yum install python-pip > Loaded plug

Re: To whoever hacked into my Database

2013-11-06 Thread Johannes Findeisen
On Wed, 06 Nov 2013 23:26:26 +0200 Νίκος Γκρ33κ wrote: > Στις 6/11/2013 5:25 μμ, ο/η Νίκος Γκρ33κ έγραψε: > > Okey let the hacker try again to mess with my database!!! > > > > He is done it twice, lets see if he will make it again! > > > > I'am waiting! > > No luck yet mighty one? :) I am very n

Re: Automation

2013-11-03 Thread Johannes Findeisen
On Sun, 3 Nov 2013 14:19:48 -0200 Renato Barbosa Pim Pereira wrote: > I have one .xls file with the values of PV MV and SP, I wanna to calculate > Kp Ki Kd with python from this file, can anyone give me any suggestion > about how can I do this? From now, thanks. Did you looked at http://www.pytho

Re: Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
On Sun, 27 Oct 2013 11:09:08 +0100 Peter Otten wrote: > Johannes Findeisen wrote: > > > Hi all, > > > > I am going crazy with logging. I have an application which sets up > > logging after parsing the args in the main() funktion. It needs to be > > setup afte

Re: Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
On Sun, 27 Oct 2013 11:09:08 +0100 Peter Otten wrote: > Johannes Findeisen wrote: > > > Hi all, > > > > I am going crazy with logging. I have an application which sets up > > logging after parsing the args in the main() funktion. It needs to be > > setup afte

Logging to file and not to console

2013-10-27 Thread Johannes Findeisen
Hi all, I am going crazy with logging. I have an application which sets up logging after parsing the args in the main() funktion. It needs to be setup after parsing the args because I can set the loglevel via commandline flags. I have tried many variants on how to do that but every time with an w

Re: array/list of sockets

2013-10-26 Thread Johannes Findeisen
Hi, On Sat, 26 Oct 2013 14:41:15 -0700 (PDT) theelder777@ wrote: > Hello all, I am kind of new to python. I am currently trying to make and use > a list/array of sockets in a program. So I have declared an array as follows: > myCSocks = ['CSock1', 'CSock2', 'CSock3', 'CSock4', 'CSock5'] You act

Re: ODBC links?

2007-11-12 Thread Johannes Findeisen
ce together for > this quick project). What modules would I want to be looking for to create > an ODBC link? Hi, maybe pyodbc is what you are looking for: http://pyodbc.sourceforge.net/ Regards, Johannes Findeisen -- http://mail.python.org/mailman/listinfo/python-list

Re: Please Help !!!

2007-10-19 Thread Johannes Findeisen
Hello Heiko, On Wed, 2007-10-17 at 11:32 +0200, Heiko Schlierkamp wrote: > I need to update the virus program every day with the new dat file from > mcafee > I would like to us a Bat file to go to the web page and download the dat > file automatically to a specific Directory, that I have created,

Re: How can I encode something in base32 preferably very fast?

2005-07-25 Thread Johannes Findeisen
html I think you need to convert to a String before encoding... Have fun, -- Johannes Findeisen http://hanez.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Access VBA

2005-07-16 Thread Johannes Findeisen
On Sun, 2005-07-17 at 01:30 +0200, Johannes Findeisen wrote: > My recommendation: > > Use Python! You will love me in some years because i have said this. > When using Access you are binding your application to Microsoft. You > need a runtime version of Access when distributing the

Re: Python vs. Access VBA

2005-07-16 Thread Johannes Findeisen
nding your application to Microsoft. You need a runtime version of Access when distributing the application to others. When using Python you could build an install CD for more the windows and you didn't have to bother about proprietary licensing issues. Good Luck with your decision... ;-) Regards, -- Johannes Findeisen http://hanez.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Django - Rails killer comes...

2005-07-16 Thread Johannes Findeisen
d i hope i will become better when trying this software. Thanks for your _open_ release! I love it! Regards, -- Johannes Findeisen http://hanez.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: help!

2005-06-24 Thread Johannes Findeisen
few improvements over this filesystem. Basically, it provided long file names, support for bigger partitions and support for the three timestamps." Regards -- Johannes Findeisen -- http://mail.python.org/mailman/listinfo/python-list