I'm back again.

Looking at keryx.py, I noticed that os and sys were imported before
commands, and yet were not throwing errors. I also noticed that this
line appeared before commands was imported:

"""
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
"""

The purpose of that line is to change the current working directory to
wherever the executable is. Apparently it is confusing Pyinstaller.
After removing it, Keryx compiles with no trouble.

Is there any way to have this line _and_ make Keryx compile correctly?
Or should I  try something else?

Thanks!

On Mon, Feb 22, 2010 at 7:51 PM, mac9416 <[email protected]> wrote:
> Hey, Giovanni, sorry for the delayed response. I somehow missed your
> reply and in the meantime found a solution to my problem. The way I
> fixed it was to import commands in keryx.py, therefore satisfying
> Debian.py's dependency on the commands module.
>
> That worked fine for a long time. Then when I tried to compile again
> tonight the issue reappeared. I still had problems after adding
> Debian.py to Analysys.
>
> """
> mac9...@ubuntu:~/Desktop/trunk$ python Makespec.py --onefile
> /home/mac9416/official-unstable/keryx.py
> wrote /home/mac9416/Desktop/trunk/keryx/keryx.spec
> now run Build.py to build the executable
> mac9...@ubuntu:~/Desktop/trunk$ python Build.py keryx/keryx.spec
> checking Analysis
> building Analysis because outAnalysis0.toc non existent
> running Analysis outAnalysis0.toc
> Analyzing: support/_mountzlib.py
> Analyzing: support/useUnicode.py
> Analyzing: /home/mac9416/official-unstable/keryx.py
> Warnings written to keryx/warnkeryx.txt
> checking PYZ
> rebuilding outPYZ1.toc because outPYZ1.pyz is missing
> building PYZ outPYZ1.toc
> checking PKG
> rebuilding outPKG3.toc because outPKG3.pkg is missing
> building PKG outPKG3.pkg
> checking EXE
> rebuilding outEXE2.toc because keryx missing
> building EXE from outEXE2.toc
> Appending archive to EXE keryx/dist/keryx
> mac9...@ubuntu:~/Desktop/trunk$ ./keryx/dist/keryx
> Traceback (most recent call last):
>  File "<string>", line 28, in <module>
>  File "/home/mac9416/Desktop/trunk/iu.py", line 455, in importHook
>    raise ImportError, "No module named %s" % fqname
> ImportError: No module named commands
> """
>
> Thanks again for any help!
>

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

Reply via email to