[EMAIL PROTECTED] write;

> i tried running a exe file info.exe from the spawnle cmd, its running
> fine from the interactive mode, but when i try to run the same info.exe
> file from a python file, its giving me the following error:
>
> ##############################################################
> Traceback (most recent call last):
>   File "C:\Documents and Settings\shivayogimath_dc\Desktop\network.py",
> line 56,
>  in ?
>
>      os.spawnle(os.P_NOWAIT,'C:\info.exe')
>
>   File "C:\Python23\Lib\site-packages\wmi.py", line 263, in __getattr__
>     raise AttributeError, attribute
> AttributeError: spawnle
> ################################################################
>
> Could u please help in removing this error.

if "os.spawnle" gives you an attribute error in a module that's installed under
site-packages, it's likely that you've overwritten the name "os" in your code.

as an emergeny fix, add "import os" to the line just before os.spawnle.

(if you're lucky, this will break the code that overwrote the "os" name, so
you can fix that...)

</F>



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to