Re: My first real request for help

2013-11-19 Thread Albert Dengg
On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote:
...
 But when I switch in, as one of the plugins a new .py version of camview-
 emc, I get this when I attempt to run linuxcnc -l, where the -l is use the 
 same config as last time option.
 
 Starting LinuxCNC...
 Traceback (most recent call last):
   File /usr/bin/axis, line 3326, in module
 _dynamic_tabs(inifile)
   File /usr/bin/axis, line 3182, in _dynamic_tabs
 child = Popen(cmd)
   File /usr/lib/python2.6/subprocess.py, line 633, in __init__
 errread, errwrite)
   File /usr/lib/python2.6/subprocess.py, line 1139, in _execute_child
 raise child_exception
 OSError: [Errno 2] No such file or directory
 
 No clue, even when straced, as to what file might be missing.
 
 So, how do I find out?
have you tried strace -e open -ff -ofile.log ?
(it is easy to miss something in the strace output  and with -ff you
also get subprocesses (in their own files, file.log.pid1,
file.log.pid2,...)

this however, does not really look like a python problem, as from the
look of it it misses some external executable it tries to Popen()

so, you should probably on some linuxcnc/camview-emc related mailling
list/forum.

regards,
albert

ps: a more descriptive subject line would be helpfull for people to
recognize what your post is about and then can quickly decide if they
want to look at it or not.


signature.asc
Description: Digital signature
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: [newbie] problem with if then

2013-06-09 Thread Albert Dengg
Jean Dubois jeandubois...@gmail.com wrote:
...
 checkavailablestring='wget -q -O -
http://www.deredactie.be/cm/vrtnieuws/videozone/programmas/journaal/EP_'+thisday.strftime(%y%m%d)+'_JO7
/dev/null ; echo $?'
The problem schould be the echo:
Since os.system returns the exit code of the shell, when chaining commands with 
; it returns the exit status of the last command,in your case the echo.
So,if you really want to go with wget here,
Either drop the echo or chain with 

Yours
Albert
Hi,
While i agree that calling wget here is not optimal
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help accessing COM .dll from Python

2012-12-01 Thread Albert Dengg
On Sat, Dec 01, 2012 at 12:47:57PM +, Steve Simmons wrote:
 Gunther - Sorry about that, hoping this response comes through as
 plain text.
 
 Chris - Thanks for the translation and the response.  Unfortunately,
 I don't speak 'C', and I think the learning curve for Python + COM
 should be slightly less steep.
i've had some some expirience using COM from python with pywin32, which
works reasonably well if your interfaces is documented.

as for examples beeing excel centric: it does not really matter, you
just have to look the real interface you want to use in the
documentation of your libary.

there are however some pitfalls, espesially with arguments passed by
reference: there not the parameter will be modified but you will have a
tuple as a return value.

albert


signature.asc
Description: Digital signature
-- 
http://mail.python.org/mailman/listinfo/python-list