It compiled using the django-hook fix. Now when I run it:
$ ./dist/Proj/ProjConsole.exe
Process Proj Main Process:
Traceback (most recent call last):
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\multiprocessing.process",
line 258, in _bootstrap
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.startup.ProjProcess",
line 42, in run
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\multiprocessing.process",
line 114, in run
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.startup.ProjProcess",
line 67, in startProjProcess
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.startup.instances._base",
line 290, in run
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.startup.instances._base",
line 101, in startup
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.startup.instances._base",
line 127, in _startup
File
"C:\cygwin\home\joe\Exp\Proj_2012_April\pyi.win32\Proj\out01-PYZ.pyz\Proj.tools.logconfig",
line 91, in setup_logging_server
AttributeError: 'module' object has no attribute 'listenTCP'
(listenTCP is a function in Twisted 12.3 reactor)
Any ideas how to fix this? This runs with an earlier version of pyinstaller
I have.
Thanks.
On Wednesday, January 9, 2013 10:24:45 PM UTC-5, Ram wrote:
>
>
> 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/-/dej7QhJTJtEJ.
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.