Re: Thread-ID - how much could be?

2014-09-11 Thread Ervin Hegedüs
Hi Steven, On Fri, Sep 12, 2014 at 11:29:56AM +1000, Steven D'Aprano wrote: > import sys > print sys.maxint > > 9223372036854775807 > > > > the couter could be 9223372036854775807? > > > > And after? :) > > Suppose you somehow managed to create 9223372036854775807 threads. If your > c

Re: Example of python service running under systemd?

2014-09-11 Thread Ervin Hegedüs
Hi Chris, On Fri, Sep 12, 2014 at 12:29:27PM +1000, Chris Angelico wrote: > On Fri, Sep 12, 2014 at 12:03 PM, Michael Torrie wrote: > > > > Any executable file can be turned into a daemon service with systemd > > (whether or not it forks itself into the background). Thus any python > > script ca

Re: Example of python service running under systemd?

2014-09-11 Thread Ervin Hegedüs
Hi Michael, On Thu, Sep 11, 2014 at 08:03:54PM -0600, Michael Torrie wrote: > >> What I want is to have this startup, after my board has it’s networking > >> layer up and running (and hopefully a valid ip address by then), and to > >> just keep running forever > > > > may be you think about the

pythonw.exe has stopped working

2014-09-11 Thread rahuldbhagat
Hello Folks, I'm using RIDE -- Robot Framework Test Data Editor RIDE 1.3 running on Python 2.7.6. When I click on some of my test case the RIDE GUI hangs and gives bellow error message. [Window Title] pythonw.exe [Main Instruction] pythonw.exe has stopped working [Content] A problem cause

Re: Thread-ID - how much could be?

2014-09-11 Thread Chris Angelico
On Fri, Sep 12, 2014 at 1:41 PM, Cameron Simpson wrote: > On 12Sep2014 11:29, Steven D'Aprano > wrote: >> >> [...]maxint. I know that some Linux >> systems can have an uptime over a year, perhaps even two years, but I >> think >> that nearly 300 years is asking a bit much. > > > 2 years is nothin

Re: Thread-ID - how much could be?

2014-09-11 Thread Cameron Simpson
On 12Sep2014 11:29, Steven D'Aprano wrote: [...]maxint. I know that some Linux systems can have an uptime over a year, perhaps even two years, but I think that nearly 300 years is asking a bit much. 2 years is nothing. Unless they have a particularly buggy kernel, most UNIX systems, Linux in

Re: Why command os.popen works in python interactive mode but not in script debugger mode?

2014-09-11 Thread Chris Angelico
On Fri, Sep 12, 2014 at 3:15 PM, Viet Nguyen wrote: > But from debugger mode in a script: import os > (Pdb) p = os.popen('date') > *** SyntaxError: SyntaxError('invalid syntax', ('', 1, 1, "= > os.popen('date')")) > > > Can anyone help me why there is syntax here? > This is actually a comma

Why command os.popen works in python interactive mode but not in script debugger mode?

2014-09-11 Thread Viet Nguyen
Can anyone give me hint or reason why same command behaves differently in debugger mode from interactive mode: >From interactive mode: >>> import os >>> p = os.popen('date') >>> p.read() 'Thu Sep 11 11:18:07 PDT 2014\n' But from debugger mode in a script: >>> import os (Pdb) p = os.popen('date'

Re: Example of python service running under systemd?

2014-09-11 Thread Michael Torrie
On 09/11/2014 08:29 PM, Chris Angelico wrote: > On Fri, Sep 12, 2014 at 12:03 PM, Michael Torrie wrote: >> No, you you don't need to do this. Systemd can handle all of that for >> you. Read up on the docs on creating systemd services. Here's a little >> blog post that has some good examples, bo

Re: Example of python service running under systemd?

2014-09-11 Thread Chris Angelico
On Fri, Sep 12, 2014 at 12:03 PM, Michael Torrie wrote: > No, you you don't need to do this. Systemd can handle all of that for > you. Read up on the docs on creating systemd services. Here's a little > blog post that has some good examples, both a non-daemonizing service > and a daemonizing se

Re: Example of python service running under systemd?

2014-09-11 Thread Michael Torrie
On 09/11/2014 03:29 PM, Ervin Hegedüs wrote: >> It basically creates two threads, one which does some local processing and >> control, the other which periodically does reporting via udp packets. I use >> the dual threads because they both work with a shared serial port at times, >> so I have to

Re: Thread-ID - how much could be?

2014-09-11 Thread Chris Angelico
On Fri, Sep 12, 2014 at 11:29 AM, Steven D'Aprano wrote: > I know that some Linux > systems can have an uptime over a year, perhaps even two years, but I think > that nearly 300 years is asking a bit much. Your hardware probably won't > keep working that long. I've had over two years of uptime. C

Re: Thread-ID - how much could be?

2014-09-11 Thread Skip Montanaro
On Thu, Sep 11, 2014 at 8:29 PM, Steven D'Aprano wrote: > Suppose you somehow managed to create 9223372036854775807 threads. If your > computer has 16 GB of RAM available, that means that at most each thread > can use: > > py> 16*1024*1024*1024/9223372036854775807 > 1.862645149230957e-09 > > bytes

Re: Thread-ID - how much could be?

2014-09-11 Thread Steven D'Aprano
Ervin Hegedüs wrote: [...] >> > My question is: how much thread ID could be totally? Is there any >> > maximum number? And if the thread reached that, what will be >> > done? Overlflowed? Couting from 0 again? [...] >> There is no upper limit to the thread name other than that you will >> eventual

Re: Example of python service running under systemd?

2014-09-11 Thread Chris Angelico
On Fri, Sep 12, 2014 at 3:48 AM, Travis Griggs wrote: > I’ve been reading lots of systemd docs. And blogs. Etc. At this point, I > think I would benefit from learning by example… > > Does anyone have an example .service file that they use to launch a long > running service written as a python pr

Re: Example of python service running under systemd?

2014-09-11 Thread Travis Griggs
On Sep 11, 2014, at 2:29 PM, Ervin Hegedüs wrote: > Hi Travis, > > On Thu, Sep 11, 2014 at 02:06:48PM -0700, Travis Griggs wrote: >> >> On Sep 11, 2014, at 11:18 AM, Chris “Kwpolska” Warrick >> wrote: >> >>> Depends what you want. >> >> Mine is not a web service. My main.py looks like thi

Re: Problem Installing Python

2014-09-11 Thread Terry Reedy
On 9/11/2014 3:31 PM, osemen tosin wrote: Hi there, I tried installing Python and I could not continue without getting this error. "There is a problem with this installer package. A DLL required for this install to complete could not be run. Contact your support personnel or vendor package."

Re: Problem Installing Python

2014-09-11 Thread Emile van Sebille
On 9/11/2014 12:31 PM, osemen tosin wrote: Hi there, I tried installing Python and I could not continue without getting this error. "There is a problem with this installer package. A DLL required for this install to complete could not be run. Contact your support personnel or vendor package."

Re: Thread-ID - how much could be?

2014-09-11 Thread Peter Otten
Ervin Hegedüs wrote: > Hi Peter, > > thanks for the reply, > > On Thu, Sep 11, 2014 at 09:48:18PM +0200, Peter Otten wrote: >> Ervin Hegedüs wrote: >> >> > Exception in thread Thread-82: >> > ... >> > My question is: how much thread ID could be totally? Is there any >> > maximum number? And if

Re: Thread-ID - how much could be?

2014-09-11 Thread Ervin Hegedüs
Hi Peter, thanks for the reply, On Thu, Sep 11, 2014 at 09:48:18PM +0200, Peter Otten wrote: > Ervin Hegedüs wrote: > > > Exception in thread Thread-82: > > ... > > My question is: how much thread ID could be totally? Is there any > > maximum number? And if the thread reached that, what will be

Re: Example of python service running under systemd?

2014-09-11 Thread Ervin Hegedüs
Hi Travis, On Thu, Sep 11, 2014 at 02:06:48PM -0700, Travis Griggs wrote: > > On Sep 11, 2014, at 11:18 AM, Chris “Kwpolska” Warrick > wrote: > > > Depends what you want. > > Mine is not a web service. My main.py looks like this: > > #!/usr/bin/env python3 > > import cycle > import pushTel

Re: Example of python service running under systemd?

2014-09-11 Thread Travis Griggs
On Sep 11, 2014, at 11:18 AM, Chris “Kwpolska” Warrick wrote: > Depends what you want. Mine is not a web service. My main.py looks like this: #!/usr/bin/env python3 import cycle import pushTelemetry from threading import Thread def main(): Thread(target=pushTelemetry.udpLoop).start()

Re: Thread-ID - how much could be?

2014-09-11 Thread Peter Otten
Ervin Hegedüs wrote: > I've made a long-time running daemon, which uses threads. Looks > like that works perfectly, now I'm looking at the exceptions :). > > In the log, I found an interesting message: > > Exception in thread Thread-82: > ... > > The main function allows 2 thread to run simulta

Problem Installing Python

2014-09-11 Thread osemen tosin
Hi there, I tried installing Python and I could not continue without getting this error. "There is a problem with this installer package. A DLL required for this install to complete could not be run. Contact your support personnel or vendor package." Please I need your help.-- https://mail.p

Thread-ID - how much could be?

2014-09-11 Thread Ervin Hegedüs
Hello, I've made a long-time running daemon, which uses threads. Looks like that works perfectly, now I'm looking at the exceptions :). In the log, I found an interesting message: Exception in thread Thread-82: ... The main function allows 2 thread to run simultaniously, and if the thread finis

Re: How to create python web framework for ERP

2014-09-11 Thread Vimal Rughani
On Tuesday, 9 September 2014 13:55:24 UTC+5:30, Vimal Rughani wrote: > Hi All, > > > > Greetings ! > > > > I am bit familiar with Django and Python. I want to create ERP on python. > Initially I feel Django will be good option for My Own ERP, but after working > bit on that I feel it doesn

Re: Example of python service running under systemd?

2014-09-11 Thread Chris “Kwpolska” Warrick
On Thu, Sep 11, 2014 at 7:48 PM, Travis Griggs wrote: > I’ve been reading lots of systemd docs. And blogs. Etc. At this point, I > think I would benefit from learning by example… > > Does anyone have an example .service file that they use to launch a long > running service written as a python pr

Example of python service running under systemd?

2014-09-11 Thread Travis Griggs
I’ve been reading lots of systemd docs. And blogs. Etc. At this point, I think I would benefit from learning by example… Does anyone have an example .service file that they use to launch a long running service written as a python program? If there is any example of what you changed to your pyth

Re: Newer Debian versions of python on older Debian distros?

2014-09-11 Thread Travis Griggs
On Sep 8, 2014, at 5:06 PM, Chris Angelico wrote: > Alternatively, you could just run Debian Jessie. I have a few Jessie > systems on the network, with a Python 3.4 IIRC, and there've been no > stability problems lately. Both options are pretty easy. In the end, we were able to get jessie runnin

ANN: Wing IDE 5.0.9 released

2014-09-11 Thread Wingware
Hi, Wingware has released version 5.0.9 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE includes a professional quality code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips, goto-definit