Pyinstaller problem: RuntimeError: No django root directory found

100 views
Skip to first unread message

Ram

unread,
Dec 9, 2012, 11:06:56 PM12/9/12
to pyins...@googlegroups.com

Anyone knows how to fix this ?
[I am not using django in this project. But I do use flask]

Traceback (most recent call last):
  File ".\pyinstaller.py", line 91, in <module>
    main()
  File ".\pyinstaller.py", line 86, in main
    run_build(opts, spec_file)
  File ".\pyinstaller.py", line 50, in run_build
    PyInstaller.build.main(spec_file, **opts.__dict__)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\build.py", line 1709, in main
    build(specfile, buildpath)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\build.py", line 1666, in build
    execfile(spec)
  File "C:\cygwin\tmp\pyinstaller\BlibConsole\BlibConsole.spec", line 5, in <module>
    hookspath=None)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\build.py", line 386, in __init__
    self.__postinit__()
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\build.py", line 312, in __postinit__
    self.assemble()
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\build.py", line 539, in assemble
    importTracker.analyze_script(script)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\depend\imptracker.py", line 256, in analyze_script
    return self.analyze_r('__main__')
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\depend\imptracker.py", line 149, in analyze_r
    newnms = self.analyze_one(name, nm, imptyp, level)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\depend\imptracker.py", line 210, in analyze_one
    mod = self.doimport(nm, ctx, fqname)
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\depend\imptracker.py", line 307, in doimport
    hooks = __import__('PyInstaller.hooks', globals(), locals(), [hookmodnm])
  File "C:\cygwin\tmp\pyinstaller\PyInstaller\hooks\hook-django.py", line 36, in <module>
    raise RuntimeError("No django root directory found. Please check your "
RuntimeError: No django root directory found. Please check your pathex definition in the project spec file.

Alex Sandro

unread,
Dec 11, 2012, 9:22:31 PM12/11/12
to pyins...@googlegroups.com
Try this: https://dl.dropbox.com/u/67269258/pyinstaller.rar

Compile using this struct:

in main dir
 main.py --> copy from manage.py

 make a sub-dir with(Django files):
 --- manage.py
 --- settings.py
 --- urls.py
Reply all
Reply to author
Forward
0 new messages