Python library dependencies not included in executable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python library dependencies not included in executable

Parkway
Environment: virtualenv, Ubuntu 12.04, Python 2.7.3, PyInstaller 2.0 develop (from github)

Generate build with:

(bs)$ python ~/Programs/pyinstaller-2.0/pyinstaller.py --onedir ~/Programs/build_pi2/myproject.spec

PyInstaller output includes:

2321 INFO: Using Python library /usr/lib/libpython2.7.so.1.0
2322 INFO: Adding Python library to binary dependencies

Run executable in /dist with:

(bs)$ ./myprogram

And the error is:

Traceback (most recent call last):
  File "<string>", line 9, in <module>
  File "/home/ubuntu/Programs/pyinstaller-2.0/PyInstaller/loader/pyi_importers.py", line 404, in load_module
    module = imp.load_module(fullname, fp, filename, self._c_ext_tuple)
  File "main.pyx", line 15, in init main (/home/ubuntu/Programs/myprograms_pyx/main.c:2712)
 
ImportError: No module named json

It is not finding the imported module json.  Same error is obtained with the --onefile option.  Any ideas?

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply | Threaded
Open this post in threaded view
|

Re: Python library dependencies not included in executable

Parkway
looks like i have to setup hiddenimports ...

--
You received this message because you are subscribed to the Google Groups "PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.