Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

py2exe error

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


mvonehr at web

May 29, 2001, 2:31 AM

Post #1 of 4 (418 views)
Permalink
py2exe error

Hi,

I use the command os.popen('dir','r').
In th exe I have the following error: file not found.
Then I tried the popen2 module.
w, r = popen2.popen2('dir', mode='t')
The same occurred.
File "popen2.pyc", line 120, in popen2
the file is not found.

I need the command: dir to read out the Harddisk serial number.
Can I read it using another command?

Thanks for any comments,

Markus


thomas.heller at ion-tof

May 29, 2001, 2:54 AM

Post #2 of 4 (373 views)
Permalink
py2exe error [In reply to]

"Markus von Ehr" <mvonehr [at] web> wrote in message news:3B136C78.369A10AA [at] web
> Hi,
>
> I use the command os.popen('dir','r').
> In th exe I have the following error: file not found.
> Then I tried the popen2 module.
> w, r = popen2.popen2('dir', mode='t')
> The same occurred.
> File "popen2.pyc", line 120, in popen2
> the file is not found.
>
To use any popen-variant on Win95 or Win98 you
have to copy the helper application w9xpopen.exe
into the same directory where your executable lives.

Thomas


mvonehr at web

May 29, 2001, 11:24 AM

Post #3 of 4 (393 views)
Permalink
py2exe error [In reply to]

Thanks Thomas,

I didn't know that, now it works!

Markus


Thomas Heller schrieb:

> "Markus von Ehr" <mvonehr [at] web> wrote in message news:3B136C78.369A10AA [at] web
> > Hi,
> >
> > I use the command os.popen('dir','r').
> > In th exe I have the following error: file not found.
> > Then I tried the popen2 module.
> > w, r = popen2.popen2('dir', mode='t')
> > The same occurred.
> > File "popen2.pyc", line 120, in popen2
> > the file is not found.
> >
> To use any popen-variant on Win95 or Win98 you
> have to copy the helper application w9xpopen.exe
> into the same directory where your executable lives.
>
> Thomas


clp2 at rebertia

Nov 6, 2009, 10:12 PM

Post #4 of 4 (137 views)
Permalink
Re: Py2exe error [In reply to]

On Fri, Nov 6, 2009 at 9:40 PM, Joshua Leihe <jleihe [at] gmail> wrote:
> Hello, I was wondering if anyone know how to fix this.
> When I try to import py2exe version 0.6.9, using the command "import py2exe"
> I get the following error message.
>
> Warning (from warnings module):
>   File "C:\Program Files\Python25\lib\site-packages\py2exe\build_exe.py",
> line 16
>     import sets
> DeprecationWarning: the sets module is deprecated
>
> Apparently something is wrong with the sets module, but I don't know how to
> fix it.
> Any ideas?

It's a warning, not an error, so you don't truly need to fix it. You
can safely ignore it.
Apparently your version of py2exe was written for a Python version
before sets became a built-in type and thus importing the `sets`
module was required in order to use them.
Since sets are now built-in, the `sets` module is being phased out,
hence the warning; nothing is erroneous with the `sets` module, you're
just being told the py2exe code is using it and that it's being
deprecated. The py2exe code will /eventually/ need to be changed when
it's ported to a version of Python that completely removes the `sets`
module (e.g. 3.x), but it's nothing you personally need to worry
about.

Cheers,
Chris
--
http://blog.rebertia.com
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.