Re: [viewvc-users] no module named handler

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4B02C087.3020707__8951.69730433754$1258471578$gmane$org@collab.net>
I'm no mod_python wizard, but I'm guessing that the directory in which
'handler.py' resides is not in mod_python's PythonPath, and thus is unable
to be located/imported by mod_python.


Sebastian Pieck wrote:
> Hi everybody,
> 
> I have a problem with my viewvc setup:
> When I call the url I get this error page:
> 
> ======= snip ================================================
> 
> /MOD_PYTHON ERROR
> 
> ProcessId:      31226
> Interpreter:    'cluster.systemhaus-vdp.local'
> 
> ServerName:     'cluster.systemhaus-vdp.local'
> DocumentRoot:   '/var/www/'
> 
> URI:            '/viewvc'
> Location:       None
> Directory:      '/usr/lib/viewvc/'
> Filename:       '/usr/lib/viewvc/viewvc.py'
> PathInfo:       ''
> 
> Phase:          'PythonHandler'
> Handler:        'handler'
> 
> Traceback (most recent call last):
> 
>   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
>     default=default_handler, arg=req, silent=hlist.silent)
> 
>   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1202, in _process_target
>     module = import_module(module_name, path=path)
> 
>   File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 304, in import_module
>     return __import__(module_name, {}, {}, ['*'])
> 
> ImportError: No module named handler/
> 
> ===================================================================
> 
> *I configured viewvc in apache 2.2 with the following settings:*
> 
> 
> ========= snip ====================================================
> /  ScriptAlias /viewvc "/usr/lib/viewvc/viewvc.py"
>   <Directory "/usr/lib/viewvc">
>                 AddHandler python-program .py
>                 #PythonPath "[r'/usr/lib/viewvc/vclib']+sys.path"
>                 PythonHandler handler
>                 PythonDebug On
>   </Directory>/
> ===================================================================
> 
> 
> *Enabling or disabling the PythonPath makes no difference. I also set and removed the "r" in the PythonPath with no difference.
> I am running the system with Debian 5 and the packages from the main repository (viewvc 1.0.5).
> I am a complete python newbie, so I have no idea how to debug my config or what is going wrong.
> 
> **
> Please Help
> 
> Sebastian Pieck*
> 
> 
> 
> 


-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2418968

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAksCwIcACgkQokEGqRcG/W6lCQCgjwvRNcxoPt1GmU3iUHqHC5Z7
o/MAnArn04UwaC0RpOxp6FgUmkagOkKM
=DYfw
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.