[viewvc-users] Failure to import pkg_resources

Michael Lund <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <[email protected]>
Hello -

 

It might be that the answer to my question is simply "You need to
understand Python better."  However, it's possible that someone will
immediately have an idea for me to try, so it's worth asking.

 

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):
  File "/var/www/viewvc-1.1.1-experimental/lib/viewvc.py", line 4100, in
main
    request.run_viewvc()
  File "/var/www/viewvc-1.1.1-experimental/lib/viewvc.py", line 403, in
run_viewvc
    self.view_func(self)
  File "/var/www/viewvc-1.1.1-experimental/lib/viewvc.py", line 3764, in
view_query
    import cvsdb
  File "/var/www/viewvc-1.1.1-experimental/lib/cvsdb.py", line 21, in
<module>
    import dbi
  File "/var/www/viewvc-1.1.1-experimental/lib/dbi.py", line 18, in
<module>
    import MySQLdb
  File "build/bdist.linux-x86_64/egg/MySQLdb/__init__.py", line 19, in
<module>
  File "build/bdist.linux-x86_64/egg/_mysql.py", line 7, in <module>
  File "build/bdist.linux-x86_64/egg/_mysql.py", line 3, in
__bootstrap__
ImportError: No module named pkg_resources

 

By the way, the ViewVC queries of the MySQL commit database have
provided us with an awesome integration between Subversion and Bugzilla.
Thanks to all who have produced this extremely useful tool!

 

Mike Lund

----------------------------------------------------------------------
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum Corporation. Furthermore, Quantum Corporation is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.

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

To unsubscribe from this discussion, e-mail: [[email protected]].
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.