|
Thanks William, in the meanwhile I went ahead compiling scripts and only running them on the same linux distro as that used to compile them (but not same computer and the destination computer has a different version of python installed). I found that this restriction was still acceptable for my project. On the same distro (different computer, different installed python), pyinstaller worked for simple scripts, however when I threw in Biopython, the compiled script started giving an error, right at the beginning before executing anything else. (see below the error). Even when I try to run the compiled script on the SAME machine used to compile (different directory) it gives the same error. On such machine the default python is 2.2, while the one used to compile is installed in /opt and is not the default and it is 2.4 . These are my only includes: import sys, re, os, os.path, cPickle, math from Bio.Blast import NCBIStandaloneThis is the error: [EMAIL PROTECTED] tmpaBsqYb2]$ step1 Traceback (most recent call last): File "<string>", line 4, in ? File "/home/me/pyinstaller/iu.py", line 312, in importHook mod = _self_doimport(nm, ctx, fqname) File "/home/me/pyinstaller/iu.py", line 398, in doimport exec co in mod.__dict__ File "/home/me/PItries/step1src/buildstep1/out1.pyz/Bio", line 48, in ? File "/home/me/PItries/step1src/buildstep1/out1.pyz/Bio", line 36, in _load_registries OSError: [Errno 20] Not a directory: '/home/me/PItries/step1src/buildstep1/out1.pyz' Note that "/home/me/PItries/step1src" is the directory of the script at the time of compilation. The directory where I was running it is totally different. I have no clue of what that error and stack trace are telling me. Any explanation or idea to work around it? Thanks in advance PS: In attachment you can see the compilation warnings file. I notice that that there are many top-level import failures (Some in Bio but not in Bio.Blast, dunno if this is meaningful), but I have no clue of how to fix these either...? William Caban wrote: I still working with this issue. I'm trying to completely port this section to distutils in order to finally clean the code. I'm still having some issues with the generated loader and I'm working with it.-William On Fri, 2006-04-07 at 12:56 -0400, William Caban wrote: |
W: no module named org (delayed import by xml.sax) W: no module named java (conditional import by xml.sax._exceptions) W: no module named org (top-level import by pickle) W: no module named TextTools (conditional import by Martel.Generate) W: no module named rourl2path (conditional import by urllib) W: no module named xmltok (top-level import by pyexpat) W: no module named msvcrt (conditional import by getpass) W: no module named xmlparse (top-level import by pyexpat) W: no module named Bio.WWW.RequestLimiter (top-level import by Bio.config._support) W: no module named ic (delayed import by urllib) W: no module named msvcrt (delayed import by getpass) W: no module named _winreg (delayed import by urllib) W: no module named EasyDialogs (conditional import by getpass) W: no module named SOCKS (top-level import by ftplib) W: no module named _xmlplus (top-level import by xml) W: no module named mx.TextTools.mxTextTools.__version__ (top-level import by mx.TextTools.TextTools) W: no module named org (top-level import by copy) W: no module named _emx_link (conditional import by os) W: no module named TextTools (conditional import by Martel.Parser) W: no module named Carbon (conditional import by tempfile) W: __all__ is built strangely at line 0 - dis (/opt/Python-2.4.3/lib/python2.4/dis.pyc) W: delayed exec statement detected at line 0 - bdb (/opt/Python-2.4.3/lib/python2.4/bdb.pyc) W: delayed eval hack detected at line 0 - bdb (/opt/Python-2.4.3/lib/python2.4/bdb.pyc) W: delayed eval hack detected at line 0 - bdb (/opt/Python-2.4.3/lib/python2.4/bdb.pyc) W: delayed conditional __import__ hack detected at line 0 - doctest (/opt/Python-2.4.3/lib/python2.4/doctest.pyc) W: delayed exec statement detected at line 0 - doctest (/opt/Python-2.4.3/lib/python2.4/doctest.pyc) W: __all__ is built strangely at line 0 - tokenize (/opt/Python-2.4.3/lib/python2.4/tokenize.pyc) W: delayed __import__ hack detected at line 0 - pickle (/opt/Python-2.4.3/lib/python2.4/pickle.pyc) W: delayed __import__ hack detected at line 0 - pickle (/opt/Python-2.4.3/lib/python2.4/pickle.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed exec statement detected at line 0 - Bio.StdHandler (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/StdHandler.pyc) W: delayed conditional eval hack detected at line 0 - gopherlib (/opt/Python-2.4.3/lib/python2.4/gopherlib.pyc) W: delayed __import__ hack detected at line 0 - encodings (/opt/Python-2.4.3/lib/python2.4/encodings/__init__.pyc) W: __all__ is built strangely at line 0 - re (/opt/Python-2.4.3/lib/python2.4/re.pyc) W: delayed conditional eval hack detected at line 0 - warnings (/opt/Python-2.4.3/lib/python2.4/warnings.pyc) W: delayed conditional __import__ hack detected at line 0 - warnings (/opt/Python-2.4.3/lib/python2.4/warnings.pyc) W: delayed __import__ hack detected at line 0 - Bio.config.FormatRegistry (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/config/FormatRegistry.pyc) W: delayed __import__ hack detected at line 0 - Bio.config.FormatRegistry (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/config/FormatRegistry.pyc) W: delayed __import__ hack detected at line 0 - Bio (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/__init__.pyc) W: delayed conditional __import__ hack detected at line 0 - Bio (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/__init__.pyc) W: delayed __import__ hack detected at line 0 - Bio (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/__init__.pyc) W: delayed exec statement detected at line 0 - pdb (/opt/Python-2.4.3/lib/python2.4/pdb.pyc) W: delayed conditional eval hack detected at line 0 - pdb (/opt/Python-2.4.3/lib/python2.4/pdb.pyc) W: delayed eval hack detected at line 0 - pdb (/opt/Python-2.4.3/lib/python2.4/pdb.pyc) W: delayed conditional eval hack detected at line 0 - pdb (/opt/Python-2.4.3/lib/python2.4/pdb.pyc) W: delayed eval hack detected at line 0 - pdb (/opt/Python-2.4.3/lib/python2.4/pdb.pyc) W: delayed conditional __import__ hack detected at line 0 - unittest (/opt/Python-2.4.3/lib/python2.4/unittest.pyc) W: delayed conditional __import__ hack detected at line 0 - unittest (/opt/Python-2.4.3/lib/python2.4/unittest.pyc) W: delayed conditional exec statement detected at line 0 - iu (/home/me/pyinstaller/iu.pyc) W: delayed conditional exec statement detected at line 0 - iu (/home/me/pyinstaller/iu.pyc) W: delayed __import__ hack detected at line 0 - Bio.config._support (/opt/Python-2.4.3/lib/python2.4/site-packages/Bio/config/_support.pyc) W: delayed exec statement detected at line 0 - cgi (/opt/Python-2.4.3/lib/python2.4/cgi.pyc) W: delayed exec statement detected at line 0 - socket (/opt/Python-2.4.3/lib/python2.4/socket.pyc) W: delayed eval hack detected at line 0 - os (/opt/Python-2.4.3/lib/python2.4/os.pyc) W: __all__ is built strangely at line 0 - __future__ (/opt/Python-2.4.3/lib/python2.4/__future__.pyc) W: delayed __import__ hack detected at line 0 - xml.sax (/opt/Python-2.4.3/lib/python2.4/xml/sax/__init__.pyc)
_______________________________________________ PyInstaller mailing list [email protected] http://lists.hpcf.upr.edu/mailman/listinfo/pyinstaller
