Hi,

I'm trying to package a django application (gave up on Win32, trying
linux right now). It uses templates. I've managed to get further than
with just command line by doing explicit imports of missing django
modules in my bootstrap script:

import django.template.defaulttags
import django.template.defaultfilters
import django.template.loader_tags

running the app:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "/home/sherman/pyinstaller-1.4/iu.py", line 436, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "/home/sherman/pyinstaller-1.4/iu.py", line 521, in doimport
    exec co in mod.__dict__
  File "itv/build/pyi.linux2/itv/outPYZ1.pyz/
django.template.loader_tags", line 3, in <module>
  File "/home/sherman/pyinstaller-1.4/iu.py", line 436, in importHook
    mod = _self_doimport(nm, ctx, fqname)
  File "/home/sherman/pyinstaller-1.4/iu.py", line 521, in doimport
    exec co in mod.__dict__
  File "itv/build/pyi.linux2/itv/outPYZ1.pyz/django.template.loader",
line 120, in <module>
  File "itv/build/pyi.linux2/itv/outPYZ1.pyz/django.template", line
969, in add_to_builtins
  File "itv/build/pyi.linux2/itv/outPYZ1.pyz/django.template", line
965, in get_library
django.template.InvalidTemplateLibrary: Template library
django.template.loader_tags does not have a variable named 'register'

I'm not terribly familiar with Python, but 'register' is declared in
the global scope of the loader_tags module. It looks like it should
reference another module...

Any suggestions are appreciated, thanks!

Sherman

-- 
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