Re: [viewvc-users] Failure to import pkg_resources

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
Michael Lund wrote:
> This past weekend, we upgraded Subversion from 1.5.6 to 1.6.3.  The
> repository was converted, as well.  The newer Subversion requires at
> least Python 2.4 for its bindings, so I upgraded from Python 2.3.4 to
> 2.6.2.  At the command line, I can successfully import setuptools,
> pkg_resources, and MySQLdb.  The “easy_install” has been installed
> afresh and seems to be working fine.  I have refreshed the _mysql.so in
> ~apache/.python-eggs by invoking “import MySQLdb”.
> 
> When we try to run ViewVC with “view=query” in the URL we encounter the
> traceback shown below.  We are failing to import pkg_resources, which is
> a really basic package.  Does anyone have a suggestion as to why this
> package cannot be found?
> 
> Traceback (most recent call last):

[...]

> ImportError: No module named pkg_resources

ViewVC doesn't do anything particularly interesting with its module loading.
 Are you using mod_python and in need of an upgrade there, too?  If you're
using CGI mode, is the shebang line in bin/cgi/viewvc.cgi pointing to the
right Python binary?

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

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

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)

iEYEARECAAYFAkpx0n8ACgkQokEGqRcG/W62CACgtKvWFN8LDqcK55MCYVSVTii4
y+MAn1UCQXhdsPj3I2Z3aL+tjYIyGnOk
=ZuuJ
-----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.