#6296 closed defect (invalid)
Problem with SWIG: undefined symbol: XML_SetElementHandler
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.10.4 |
Severity: | normal | Keywords: | svn python binding |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I first had this problem:
Then i installed SWIG and i still have the same problem. However after some searching i found this: http://trac.edgewall.org/wiki/TracSubversion#unsupported-vcs
However when i test wether i can acces svn i get this:
Python 2.3.6 (#1, Nov 1 2007, 16:31:52) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from svn import core Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/src/build/469858-i386/install/usr/lib/python2.3/site-packages/svn/core.py", line 21, in ? File "/usr/src/build/469858-i386/install/usr/lib/python2.3/site-packages/libsvn/core.py", line 4, in ? ImportError: /usr/local/apr/lib/libaprutil-0.so.0: undefined symbol: XML_SetElementHandler
So i think there is a problem with my installation?
My specs: svn, version 1.4.5 (r25188) compiled Nov 2 2007, 19:54:50 Python 2.3.6 Clearsilver 0.10.5 swig 1.3.31 trac 0.4.10
I compiled trac swig clearsilver and python myself, without errors. I copied /usr/local/lib/svn-python to the site-packages dir. But as you can see it does not work.
Please help
PS: When i run tracd i get the following error:
Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line 406, in dispatch_request dispatcher.dispatch(req) File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/usr/local/lib/python2.3/site-packages/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "/usr/local/lib/python2.3/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request self.get_repository(req.authname).sync() File "/usr/local/lib/python2.3/site-packages/trac/versioncontrol/api.py", line 91, in get_repository raise TracError('Unsupported version control system "%s". ' TracError: Unsupported version control system "svn". Check that the Python bindings for "svn" are correctly installed.
But as you can see svn is installed! but it does not work
Attachments (0)
Change History (4)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Priority: | high → normal |
---|---|
Severity: | blocker → normal |
And using the users mailinglist would have made more sense than a ticket though, since it is not a defect but a problem on your system. I am setting the priority and severity to normal since there's nothing wrong with Trac as it stands that is 'blocking', only your local install.
comment:3 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
This is not an error with Trac, but an issue with your system. Moreover, installation issues are not to be dealt with as tickets, but asked on the MailingList as specified on the New Ticket page.
It looks like a version mismatch with your APR libraries (Apache and Subversion use them)
comment:4 by , 17 years ago
Why didnt i get this error when i configured , compiled and installed trac? Isnt there a sanity check?
Anyway i will try the mailinglist
XML_SetElementHandler is defined in libexpat. It seems as if your library path does not have it. Check your library path with
ldconfig
and see whether or not expat is in it (on FreeBSD something like:ldconfig -r | grep expat
).The resulting Trac error is logical.