viewvc errors after upgrading subversion

After upgrading subversion on my svn server, I started seeing this errors from viewvc:

An Exception Has Occurred

Python Traceback

Traceback (most recent call last):
  File "/usr/local/viewvc/lib/viewvc.py", line 4827, in main
    request.run_viewvc()
  File "/usr/local/viewvc/lib/viewvc.py", line 251, in run_viewvc
    self.rootpath = vclib.svn.canonicalize_rootpath(rootpath)
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py", line 39, in canonicalize_rootpath
    rootpath = _canonicalize_path(rootpath)
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py", line 23, in _canonicalize_path
    import svn.core
  File "/usr/local/lib/python2.7/site-packages/svn/core.py", line 26, in 
    from libsvn.core import *
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 26, in 
    _core = swig_import_helper()
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 22, in swig_import_helper
    _mod = imp.load_module('_core', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/site-packages/libsvn/_core.so: Undefined symbol "svn_uri__is_child"

… when viewing https://svn.example.org/. And:

An Exception Has Occurred

Python Traceback

Traceback (most recent call last):
  File "/usr/local/viewvc/lib/viewvc.py", line 4827, in main
    request.run_viewvc()
  File "/usr/local/viewvc/lib/viewvc.py", line 402, in run_viewvc
    self.view_func(self)
  File "/usr/local/viewvc/lib/viewvc.py", line 2177, in view_roots
    allroots = list_roots(request)
  File "/usr/local/viewvc/lib/viewvc.py", line 4648, in list_roots
    cfg.options.svn_config_dir)
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py", line 95, in SubversionRepository
    rootpath = canonicalize_rootpath(rootpath)
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py", line 39, in canonicalize_rootpath
    rootpath = _canonicalize_path(rootpath)
  File "/usr/local/viewvc/lib/vclib/svn/__init__.py", line 23, in _canonicalize_path
    import svn.core
  File "/usr/local/lib/python2.7/site-packages/svn/core.py", line 26, in 
    from libsvn.core import *
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 26, in 
    _core = swig_import_helper()
  File "/usr/local/lib/python2.7/site-packages/libsvn/core.py", line 22, in swig_import_helper
    _mod = imp.load_module('_core', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/site-packages/libsvn/_core.so: Undefined symbol "svn_uri__is_child"

.. when viewing https://svn.example.org/viewvc.cgi/stuxnet/

The solution: upgraded devel/py-subversion. In my case, I upgraded from 1.7.9_1 to 1.8.0_1. I think perhaps just a rebuild would have been sufficient.

But along the way I also upgraded viewvc (via portupgrade -f), which I now believe to have been unnecessary.

Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Comment

Scroll to Top