Re: [cx-freeze-users] FreezePython problem on Sun OS
Brought to you by:
atuining
From: Clim B. <cbo...@xs...> - 2005-07-21 18:53:29
|
Thanks Ralf, that's indeed working better. But does that mean I can only put one frozen binary in the destination directory ? Is it also possible to create the modules in a separate directory then the the binary. Ralf Schmitt wrote: > Clim Bouwhuis wrote: > >> Currently I am trying to create a binary on a Sun Sparc 5.8 with >> Python 2.3.3 from a Python script but got the following response : >> >> ~/python/cx_Freeze-3.0.1/FreezePython snmpset.py >> >> Name File >> ---- ---- >> m UserDict /usr/local/lib/python2.3/UserDict.py >> m __main__ snmpset.py >> m _socket _socket.so > > > ^^^ current dir > >> Copying _socket.so >> Traceback (most recent call last): >> File >> "/home/bouwhc/python/cx_Freeze-3.0.1/initscripts/ConsoleKeepPath.py", >> line 15, in ? >> exec code in m.__dict__ >> File "/home/bouwhc/python/cx_Freeze-3.0.1/FreezePython.py", line >> 213, in ? >> finder.CopyDependentFiles(options.targetDir, options.extListFile) >> File "/home/bouwhc/python/cx_Freeze-3.0.1/ModuleFinder.py", line 38, >> in CopyDependentFiles >> shutil.copy2(sourceName, targetName) >> File "/usr/local/lib/python2.3/shutil.py", line 83, in copy2 >> copystat(src, dst) >> File "/usr/local/lib/python2.3/shutil.py", line 55, in copystat >> st = os.stat(src) >> >> OSError: [Errno 2] No such file or directory: '_socket.so' >> >> >> Does anybody have some idea how I can fix this ? > > > rm *.so, or specify a destination directory. > FreezePython does find the modules in the current directory and > deletes them in the destination directory (i.e. the current directory) > before trying to copy them... > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > |