This is really interesting:
- the django hook is processed even not having django installed
- pyinstaller should not process django-hook when django is not
installed

It seems like a serious bug in pyinstaller.

What python modules do you use? Does any of them have optional
dependency on django?

Could you please look at the file if 'django' is there?

./build/pyi.linux2/YOUR_APP/warnYOUR_APP.txt

Thanks.


Ram píše v St 09. 01. 2013 v 19:24 -0800:
> 
> 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) # 

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
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.

Reply via email to