pyinstaller 2.0 + win 7 problem (TypeError)

137 views
Skip to first unread message

Ram

unread,
Aug 28, 2012, 4:32:08 PM8/28/12
to pyins...@googlegroups.com

Is this a pyinstaller problem? I just tried: python .\pyinstaller-2.0\pyinstaller.py -F .\proj.py

...
4727 INFO: Analyzing proj.py
5886 WARNING: pywintypes is changing its name to pywintypes27
10138 INFO: checking Tree
10257 INFO: checking Tree
Traceback (most recent call last):
  File "./build/pyinstaller-2.0/pyinstaller.py", line 91, in <module>
    main()
  File "./build/pyinstaller-2.0/pyinstaller.py", line 86, in main
    run_build(opts, spec_file)
  File "./build/pyinstaller-2.0/pyinstaller.py", line 50, in run_build
    PyInstaller.build.main(spec_file, **opts.__dict__)
  File ".\build\pyinstaller-2.0\PyInstaller\build.py", line 1625, in main
    build(specfile, buildpath)
  File ".\build\pyinstaller-2.0\PyInstaller\build.py", line 1582, in build

    execfile(spec)
  File ".\proj.spec", line 5, in <module>
    hookspath=None)
  File ".\build\pyinstaller-2.0\PyInstaller\build.py", line 389, in __init
__
    self.__postinit__()
  File ".\build\pyinstaller-2.0\PyInstaller\build.py", line 315, in __post
init__
    self.assemble()
  File ".\build\pyinstaller-2.0\PyInstaller\build.py", line 475, in assemb
le
    importTracker.analyze_script(script)
  File ".\build\pyinstaller-2.0\PyInstaller\depend\imptracker.py", line 20
5, in analyze_script
    return self.analyze_r('__main__')
  File ".\build\pyinstaller-2.0\PyInstaller\depend\imptracker.py", line 98
, in analyze_r
    newnms = self.analyze_one(name, nm, imptyp, level)
  File ".\build\pyinstaller-2.0\PyInstaller\depend\imptracker.py", line 15
9, in analyze_one
    mod = self.doimport(nm, ctx, fqname)
  File ".\build\pyinstaller-2.0\PyInstaller\depend\imptracker.py", line 25
6, in doimport
    hooks = __import__('PyInstaller.hooks', globals(), locals(), [hookmodnm])
  File ".\build\pyinstaller-2.0\PyInstaller\hooks\hook-django.py", line 47
, in <module>
    for root_dir in django_root_dirs]
  File ".\build\pyinstaller-2.0\PyInstaller\hooks\hookutils.py", line 205,
 in django_dottedstring_imports
    package_name = os.path.basename(django_root_dir)
  File "C:\Python27\lib\ntpath.py", line 198, in basename
    return split(p)[1]
  File "C:\Python27\lib\ntpath.py", line 181, in split
    return d + head, tail
TypeError: cannot concatenate 'str' and 'list' objects

Martin Zibricky

unread,
Aug 28, 2012, 6:59:55 PM8/28/12
to pyins...@googlegroups.com
Ram píše v Út 28. 08. 2012 v 13:32 -0700:
> Is this a pyinstaller problem? I just tried: python .\pyinstaller-2.0
> \pyinstaller.py -F .\proj.py

I'm not sure. May be django support is just not properly maintained in
pyinstaller.

Ram

unread,
Aug 28, 2012, 7:11:09 PM8/28/12
to pyins...@googlegroups.com


Hi Martin,

I am not even using django in this project.  How do I go about debugging/fixing this problem?

Thanks,
--Ram

Martin Zibricky

unread,
Aug 29, 2012, 3:45:09 AM8/29/12
to pyins...@googlegroups.com
Ram píše v Út 28. 08. 2012 v 13:32 -0700:
> mod = self.doimport(nm, ctx, fqname)
> File ".\build\pyinstaller-2.0\PyInstaller\depend\imptracker.py", line 25
> 6, in doimport
> hooks = __import__('PyInstaller.hooks', globals(), locals(), [hookmodnm])
> File ".\build\pyinstaller-2.0\PyInstaller\hooks\hook-django.py", line 47
>

If you are not using django then this traceback is really weird. It
means that pyinstaller has found a dependency on django and is applying
some hooks for proper django support.

Could you please trace why is it doing?

Reply all
Reply to author
Forward
0 new messages