Skip to content

Instantly share code, notes, and snippets.

@rferreira
Created February 1, 2014 18:45
Show Gist options
  • Select an option

  • Save rferreira/8756692 to your computer and use it in GitHub Desktop.

Select an option

Save rferreira/8756692 to your computer and use it in GitHub Desktop.
(.venv)rafael@master:~/jackfruit$ pyinstaller -F --hidden-import=HTMLParser --hidden-import=htmlentitydefs --hidden-import=markupbase --name=jackfruit jackfruit/boot.py
8 INFO: wrote /home/rafael/jackfruit/jackfruit.spec
25 INFO: UPX is not available.
39 INFO: Processing hook hook-os
99 INFO: Processing hook hook-time
120 INFO: Processing hook hook-_sre
133 INFO: Processing hook hook-cStringIO
140 INFO: Processing hook hook-codecs
147 INFO: Processing hook hook-encodings
426 INFO: Processing hook hook-cPickle
489 INFO: Extending PYTHONPATH with /home/rafael/jackfruit
489 INFO: checking Analysis
490 INFO: building Analysis because out00-Analysis.toc non existent
490 INFO: running Analysis out00-Analysis.toc
526 INFO: Analyzing /home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/loader/_pyi_bootstrap.py
534 INFO: Processing hook hook-os
545 INFO: Processing hook hook-site
555 INFO: Processing hook hook-encodings
612 INFO: Processing hook hook-time
635 INFO: Processing hook hook-_sre
649 INFO: Processing hook hook-cStringIO
656 INFO: Processing hook hook-codecs
955 INFO: Processing hook hook-cPickle
1051 INFO: Processing hook hook-pydoc
1123 INFO: Processing hook hook-email
1155 INFO: Processing hook hook-httplib
1177 INFO: Processing hook hook-email.message
1209 INFO: Analyzing /home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/loader/pyi_importers.py
1241 INFO: Analyzing /home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/loader/pyi_archive.py
1269 INFO: Analyzing /home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/loader/pyi_carchive.py
1306 INFO: Analyzing /home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/loader/pyi_os_path.py
1310 INFO: Analyzing jackfruit/boot.py
1476 INFO: Processing hook hook-xml
1498 INFO: Processing hook hook-xml.sax
1513 INFO: Processing hook hook-pyexpat
2116 INFO: Processing hook hook-distutils
2570 INFO: Django root directory /home/rafael/jackfruit/jackfruit
[02/01/2014 18:44:41][4014][papaya.profile] INFO: call to function papaya.files.read took 0 ms
[02/01/2014 18:44:41][4014][papaya.metrics] INFO: connecting to redis @localhost:6379/0
[02/01/2014 18:44:41][4014][papaya.metrics] INFO: clearing metric buckets
[02/01/2014 18:44:41][4014][papaya.profile] INFO: call to function papaya.metrics.clear took 0 ms
Traceback (most recent call last):
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/hooks/utils/django-import-finder.py", line 23, in <module>
list(settings.TEMPLATE_LOADERS) +
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
self._setup(name)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
self._wrapped = Settings(settings_module)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/django/conf/__init__.py", line 132, in __init__
% (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'jackfruit.settings' (Is it on sys.path? Is there an import error in the settings file?): cannot import name Celery
Traceback (most recent call last):
File "/home/rafael/jackfruit/.venv/bin/pyinstaller", line 9, in <module>
load_entry_point('PyInstaller==2.1', 'console_scripts', 'pyinstaller')()
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/main.py", line 88, in run
run_build(opts, spec_file, pyi_config)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/main.py", line 46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/build.py", line 1935, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/build.py", line 1884, in build
execfile(spec)
File "/home/rafael/jackfruit/jackfruit.spec", line 6, in <module>
runtime_hooks=None)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/build.py", line 446, in __init__
self.__postinit__()
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/build.py", line 309, in __postinit__
self.assemble()
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/build.py", line 599, in assemble
importTracker.analyze_script(script)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/depend/imptracker.py", line 273, in analyze_script
return self.analyze_r('__main__')
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/depend/imptracker.py", line 166, in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/depend/imptracker.py", line 227, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/depend/imptracker.py", line 325, in doimport
hook = imp.load_module('PyInstaller.hooks.' + hookmodnm, *m)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/hooks/hook-django.py", line 26, in <module>
hiddenimports = django_dottedstring_imports(root_dir)
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/hooks/hookutils.py", line 469, in django_dottedstring_imports
ret = eval_script('django-import-finder.py')
File "/home/rafael/jackfruit/.venv/local/lib/python2.7/site-packages/PyInstaller-2.1-py2.7.egg/PyInstaller/hooks/hookutils.py", line 104, in eval_script
return eval(txt)
File "<string>", line 1
loaded config path from environment variable: etc/testing.config.js
^
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment