Py2exe and Module Error...

vincehofmeister at gmail.com vincehofmeister at gmail.com
Wed Oct 22 18:34:39 EDT 2008


Hey everyone:

I am using py2exe and everything is working fine except one module,
ClientCookie, found here:

http://wwwsearch.sourceforge.net/ClientCookie/

Keeps coming up as not found no matter what I do. I have tried all
these combinations from the command line:

python run.py py2exe - Results in "following modules appear to be
missing" [ClientCookie]

python run.py py2exe -p ClientCookie - Results in "No module named
ClientCookie"

python run.py py2exe -i ClientCookie - Results in "No module named
ClientCookie"


Ok, so that wasn't the problem I guess so now I try two different
combinations of the run.py file... they look like this:

#!/usr/bin/env python

from distutils.core import setup
import py2exe

#setup(windows=['C:\\exe\\new_pound.py']);
setup(windows=[{"script" : "C:\\exe\\pos_final2.py"}],
options={"py2exe" : {"includes" : ["sip"]}})

^this just gives me the standard "following modules appear to be
missing" [ClientCookie]



#!/usr/bin/env python

from distutils.core import setup
import py2exe

#setup(windows=['C:\\exe\\new_pound.py']);
setup(windows=[{"script" : "C:\\exe\\pos_final2.py"}],
options={"py2exe" : {"includes" : ["sip", "ClientCookie"]}})

^this gives the error "No module named ClientCookie


Ok so I am really in a crunch and have no idea what to do. Any help
would be GREATLY appreciated.

Vince

P.S. I know ClientCookie is a branch of mechanize, but I don't
understand how it runs fine on my machine using import ClientCookie
and then when using py2exe it doesn't find it. I have tried from
mechanize import ClientCookie and many alternatives but none of those
work on importing the ClientCookie module normally without py2exe.







More information about the Python-list mailing list