Re: strange behavior after upgrade to Pyro 4.32
Irmen de Jong <[email protected]> Thu, 09 Apr 2015 08:25:10 +0200
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 8-4-2015 19:37, Richard wrote:
> I have some trouble debugging this. My remote command program Remco
> (https://github.com/zappfinger/remco) worked fine.
> Since I upgraded to Pyro 4.32 I have some trouble.
> I am trying to create a remote directory, as can be seen from the last
> line before the error:
> result = flame.module("flame.stuff").doCommand('mkdir ' + fildir) #
> create remote dir also
>
> why do I get:
> OSError: [Errno 2] No such file or directory: 'mkdir static'?
Because something is going wrong with your call to os.popen. It's not a Pyro error, it
is a shell error.
Does the exact same call to os.popen work without Pyro?
If it worked previously, what version of Pyro did you use then? Does it start working
again when you downgrade back to that older version?
Also, don't use os.popen. Use the subprocess module instead, because os.popen is obsolete.
Irmen
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF