{"action":"opened","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1334","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1334/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/1334/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/1334","id":95350788,"number":1334,"title":"Error in hook-django.py with Django 1.7","user":{"login":"bosha","id":134622,"avatar_url":"https://avatars.githubusercontent.com/u/134622?v=3","gravatar_id":"","url":"https://api.github.com/users/bosha","html_url":"https://github.com/bosha","followers_url":"https://api.github.com/users/bosha/followers","following_url":"https://api.github.com/users/bosha/following{/other_user}","gists_url":"https://api.github.com/users/bosha/gists{/gist_id}","starred_url":"https://api.github.com/users/bosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosha/subscriptions","organizations_url":"https://api.github.com/users/bosha/orgs","repos_url":"https://api.github.com/users/bosha/repos","events_url":"https://api.github.com/users/bosha/events{/privacy}","received_events_url":"https://api.github.com/users/bosha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-16T05:01:57Z","updated_at":"2015-07-16T05:01:57Z","closed_at":null,"body":"Hello. \r\n\r\nI have an application running with django 1.7.\r\nIf I try to execute pyinstaller with it, it fails:\r\n\r\n````\r\n╰─➤  pyinstaller local/manage.py \r\n27 INFO: wrote /home/bosha/Dropbox/sync/python-dev/defects/manage.spec\r\n29 INFO: UPX is not available.\r\n30 INFO: Extending PYTHONPATH with /home/bosha/Dropbox/sync/python-dev/defects/local\r\n30 INFO: checking Analysis\r\n30 INFO: Building Analysis because out00-Analysis.toc non existent\r\n30 INFO: Creating base_library.zip for Python 3\r\n3712 INFO: running Analysis out00-Analysis.toc\r\n3751 INFO: Looking for graph hooks ...\r\n3752 INFO: Analyzing local/manage.py\r\n10548 INFO: Analyzing /home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/loader/_pyi_bootstrap.py\r\n10619 INFO: Analyzing /home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/loader/pyi_importers.py\r\n10631 INFO: Analyzing /home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/loader/pyi_archive.py\r\n10649 INFO: Analyzing /home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/loader/pyi_carchive.py\r\n10663 INFO: Analyzing /home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/loader/pyi_os_path.py\r\n10667 INFO: Hidden import 'codecs' has been found otherwise\r\n10667 INFO: Hidden import 'encodings' has been found otherwise\r\n10667 INFO: Looking for import hooks ...\r\n10673 INFO: Processing hook   hook-encodings.py\r\n11097 INFO: Processing hook   hook-pydoc.py\r\n11099 INFO: Processing hook   hook-distutils.py\r\n11108 INFO: Processing hook   hook-xml.py\r\n11109 INFO: Processing hook   hook-site.py\r\n11209 INFO: Processing hook   hook-sysconfig.py\r\n11210 INFO: Processing hook   hook-django.core.management.py\r\n11535 INFO: Processing hook   hook-django.db.backends.py\r\n11899 INFO: Processing hook   hook-django.core.mail.py\r\n11978 INFO: Processing hook   hook-django.db.backends.mysql.base.py\r\n11981 INFO: Processing hook   hook-django.db.backends.oracle.base.py\r\n11986 INFO: Processing hook   hook-sqlite3.py\r\n12044 INFO: Processing hook   hook-xml.sax.py\r\n12045 INFO: Processing hook   hook-xml.dom.domreg.py\r\n12045 INFO: Processing hook   hook-xml.dom.py\r\n12050 INFO: Processing hook   hook-django.core.cache.py\r\n12089 INFO: Processing hook   hook-django.py\r\nTraceback (most recent call last):\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/bin/pyinstaller\", line 9, in <module>\r\n    load_entry_point('PyInstaller==3.0dev', 'console_scripts', 'pyinstaller')()\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/main.py\", line 96, in run\r\n    run_build(opts, spec_file, pyi_config)\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/main.py\", line 49, in run_build\r\n    PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/build.py\", line 2170, in main\r\n    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/build.py\", line 2116, in build\r\n    exec(text, spec_namespace)\r\n  File \"<string>\", line 12, in <module>\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/build.py\", line 403, in __init__\r\n    self.__postinit__()\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/build.py\", line 240, in __postinit__\r\n    self.assemble()\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/build.py\", line 675, in assemble\r\n    hook_name_space = mod_loader.load_module()\r\n  File \"<frozen importlib._bootstrap>\", line 539, in _check_name_wrapper\r\n  File \"<frozen importlib._bootstrap>\", line 1614, in load_module\r\n  File \"<frozen importlib._bootstrap>\", line 596, in _load_module_shim\r\n  File \"<frozen importlib._bootstrap>\", line 1220, in load\r\n  File \"<frozen importlib._bootstrap>\", line 1200, in _load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 1129, in _exec\r\n  File \"<frozen importlib._bootstrap>\", line 1471, in exec_module\r\n  File \"<frozen importlib._bootstrap>\", line 321, in _call_with_frames_removed\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/hooks/hook-django.py\", line 23, in <module>\r\n    root_dir = django_find_root_dir()\r\n  File \"/home/bosha/Dropbox/sync/python-dev/defects/lib/python3.4/site-packages/PyInstaller/utils/hooks/hookutils.py\", line 514, in django_find_root_dir\r\n    manage_py = CONF['scripts'][0]\r\nKeyError: 'scripts'\r\n````\r\n\r\nCONF dict is empty.\r\nRunning on Linux, inside virtualenv, with python3.4 and python3 branch of pyinstaller."}}