Hi Matin,
Thanks for the quick reply. I do not have django installed.
$ pip uninstall django
Cannot uninstall requirement django, not installed
I made these changes in the hook-django.py and my code compiled:
django_root_dirs = []
hiddenimports = []
compat.setenv("PYTHONPATH", python_path)
#
#for path in python_path.split(os.pathsep):
# django_root_dirs.extend(find_django_root(path))
#
#if not django_root_dirs:
# raise RuntimeError("No django root directory found. Please check your "
# "pathex definition in the project spec file.")
#
#if django_root_dirs[0] in PyInstaller.__pathex__:
# raise RuntimeError("The django root directory is defined in the
pathex. "
# "You have to define the parent directory instead of
"
# "the django root directory.")
#
#compat.setenv("PYTHONPATH", python_path)
#
Thanks.
On Wednesday, January 9, 2013 5:11:46 AM UTC-5, Martin Z wrote:
>
> Ram píše v Út 08. 01. 2013 v 18:57 -0800:
> > File "c:\cygwin\tmp\temp\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.
> >
> > Hope you can fix this and perhaps I can try again?
> > Thanks.
>
> This is the famous django issue. More people already complained about
> django. There could be multiple issues involved.
>
> Probably it's time to fix django.
>
> Do you think any of them could be related?
> http://www.pyinstaller.org/ticket/414
> http://www.pyinstaller.org/ticket/567
> http://www.pyinstaller.org/ticket/581
> http://www.pyinstaller.org/ticket/618
> http://www.pyinstaller.org/ticket/642
> http://www.pyinstaller.org/ticket/645
>
> What is your django version?
> What is your django project structure?
> - where are your 'settings.py' and 'manage.py'?
>
> Thanks
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/pyinstaller/-/-G0C9mvN7uMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.