[mod_python] Re: Vampire does not support packages?

Stephane Bortzmeyer bortzmeyer at nic.fr
Wed Dec 3 03:32:53 EST 2008


On Mon, Nov 24, 2008 at 09:33:15PM +1100,
 Graham Dumpleton <graham.dumpleton at gmail.com> wrote 
 a message of 62 lines which said:

>  PythonOption mod_python.legacy.importer *

Sorry, same error.


...

  File "/var/www/devel.codev-nic.generic-nic.net/SiteLogic.py", line 2, in <module>
    from codevnic.lib.Config import Config

  File "/usr/lib/python2.5/site-packages/vampire/cache.py", line 518, in load_module
    return importModule(fullname,self.__directory,self.__req)

  File "/usr/lib/python2.5/site-packages/vampire/cache.py", line 179, in importModule
    raise ImportError("Vampire does not support packages.")

ImportError: Vampire does not support packages.



Reminder: my Apache config:

              SetHandler mod_python

              # Tell to Apache that Vampire must handle it               
              PythonHandler vampire

              # Debugging only. Discouraged for a production server               
              PythonDebug On

              # Required, for Cheetah to find modules
              PythonOption VampireImportHooks On

              # Necessary? 2008-12-03
              PythonOption mod_python.legacy.importer *

              # Enable default content handlers. Vampire will find them in
              #  ".vampire".
              PythonOption VampireDefaultHandlers On

              # Like Apache's DirectoryIndex to have nice URLs 
              PythonOption VampireDirectoryIndex index


More information about the Mod_python mailing list