Issue #50 resolved

support for Pyinstaller

Jorge Araya Navarro
created an issue

After freezing any project that uses your library, it doesn't work.

$ ./somestandaloneexecutablescript 
Traceback (most recent call last):
  File "/home/jorge/project/build/somestandaloneexecutablescript/out00-PYZ.pyz/src.ui", line 144, in on_pbtConvert_clicked
  File "/home/jorge/project/build/somestandaloneexecutablescript/out00-PYZ.pyz/amazonproduct.api", line 164, in __init__
  File "/home/jorge/project/build/somestandaloneexecutablescript/out00-PYZ.pyz/amazonproduct.utils", line 158, in load_class
  File "/home/jorge/project/build/somestandaloneexecutablescript/out00-PYZ.pyz/amazonproduct.utils", line 139, in import_module
ImportError: No module named objectify

Comments (2)

  1. Jorge Araya Navarro reporter

    adding a hook with

    hiddenimports = ['amazonproduct.processors.__init__',
                     'amazonproduct.processors._lxml',
                     'amazonproduct.processors.objectify',
                     'amazonproduct.processors.elementtree',
                     'amazonproduct.processors.etree',
                     'amazonproduct.processors.minidom',
                     'amazonproduct.contrib.__init__',
                     'amazonproduct.contrib.cart',
                     'amazonproduct.contrib.caching',
                     'amazonproduct.contrib.retry']
    

    to PyInstaller's hook directory with the name hook-yourhook.py

    and then using it with --hidden-import yourhook should fix this nightmare...

  2. Log in to comment