Re: [viewvc-users] viewvc-1.1.24 not working with svn 1.9.4 on CentOS 6.7
"C. Michael Pilato" <[email protected]> Tue, 21 Jun 2016 14:55:55 -0400
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_4863_1623431164.1466535368107
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Tom,
Thanks for you mail, and I'm sorry you're having trouble getting ViewVC
up and running. Unfortunately, the problem you are seeing isn't in
ViewVC, but rather in the Subversion Python bindings. Or, more
specifically, with the way in which those bindings were compiled and
distributed.
It would appear that those bindings (the sources of which are maintained
by the Subversion developer community, but which are compiled and
distributed by members of the various specific Linux distributions) were
compiled against a version of Python that doesn't match what is actually
deployed on your server. I wouldn't be able to say specifically what
those specific versions are (though from the paths you shared, it would
seem you have Python 2.6 on your machine), but I suspect that even if
you were to simply import the Subversion bindings via Python at your
shell prompt, you'd see the same problem without ViewVC even being in
the equation at all:
$ python -c 'from svn import core'
So, I think this is something you'll need to raise as a issue with the
CentOS Subversion package maintainer.
FWIW, here are some other folks who ran into similar issues:
https://forums.aws.amazon.com/thread.jspa?threadID=3D174605
http://www.wandisco.com/svnforum/forum/opensource-subversion-forums/apache-=
subversion-1-8-support/73237-importerror-usr-lib64-libsvn_swig_py-1-so-0-un=
defined-symbol-pycapsule_import
-- Mike
On 06/21/2016 02:19 PM, Tom Truong wrote:
>
> Hi all,
>
> =20
>
> When I invoked URL http://servername/viewvc, I=E2=80=99ve the below error=
.
>
> Do you have the fix for it? Appreciate your help.
>
> =20
>
> *An Exception Has Occurred*
>
> *Python Traceback*
>
> Traceback (most recent call last):
>
> File "/export/viewvc-1.1.24/lib/viewvc.py", line 4855, in main
>
> request.run_viewvc()
>
> File "/export/viewvc-1.1.24/lib/viewvc.py", line 408, in run_viewvc
>
> self.view_func(self)
>
> File "/export/viewvc-1.1.24/lib/viewvc.py", line 2207, in view_roots
>
> expand_root_parents(request.cfg)
>
> File "/export/viewvc-1.1.24/lib/viewvc.py", line 4732, in
> expand_root_parents
>
> roots =3D vclib.svn.expand_root_parent(pp)
>
> File "/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 76, in
> expand_root_parent
>
> roots[rootname] =3D canonicalize_rootpath(rootpath)
>
> File "/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 39, in
> canonicalize_rootpath
>
> rootpath =3D _canonicalize_path(rootpath)
>
> File "/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 23, in
> _canonicalize_path
>
> import svn.core
>
> File "/usr/lib64/python2.6/site-packages/svn/core.py", line 26, in
> <module>
>
> from libsvn.core import *
>
> File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 28,
> in <module>
>
> _core =3D swig_import_helper()
>
> File "/usr/lib64/python2.6/site-packages/libsvn/core.py", line 24,
> in swig_import_helper
>
> _mod =3D imp.load_module('_core', fp, pathname, description)
>
> ImportError: /usr/lib64/libsvn_swig_py-1.so.0: undefined symbol:
> PyCapsule_Import
>
> =20
>
> =20
>
> Thanks,
>
> Tom Truong
>
> 408-687-6837
>
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=3D4255&dsMessageId=3D3=
176212
To unsubscribe from this discussion, e-mail: [[email protected]=
is.org].
------=_Part_4863_1623431164.1466535368107
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
Tom,<br>
<br>
Thanks for you mail, and I'm sorry you're having trouble getting
ViewVC up and running.=C2=A0 Unfortunately, the problem you are seeing
isn't in ViewVC, but rather in the Subversion Python bindings.=C2=A0 Or=
,
more specifically, with the way in which those bindings were
compiled and distributed.<br>
<br>
It would appear that those bindings (the sources of which are
maintained by the Subversion developer community, but which are
compiled and distributed by members of the various specific Linux
distributions) were compiled against a version of Python that
doesn't match what is actually deployed on your server.=C2=A0 I wouldn'=
t
be able to say specifically what those specific versions are (though
from the paths you shared, it would seem you have Python 2.6 on your
machine), but I suspect that even if you were to simply import the
Subversion bindings via Python at your shell prompt, you'd see the
same problem without ViewVC even being in the equation at all:<br>
<br>
$ python -c 'from svn import core'<br>
<br>
So, I think this is something you'll need to raise as a issue with
the CentOS Subversion package maintainer.<br>
<br>
FWIW, here are some other folks who ran into similar issues:<br>
<a class=3D"moz-txt-link-freetext" href=3D"https://forums.aws.amazon.co=
m/thread.jspa?threadID=3D174605">https://forums.aws.amazon.com/thread.jspa?=
threadID=3D174605</a><br>
<a class=3D"moz-txt-link-freetext" href=3D"http://www.wandisco.com/svnforum=
/forum/opensource-subversion-forums/apache-subversion-1-8-support/73237-imp=
orterror-usr-lib64-libsvn_swig_py-1-so-0-undefined-symbol-pycapsule_import"=
>http://www.wandisco.com/svnforum/forum/opensource-subversion-forums/apache=
-subversion-1-8-support/73237-importerror-usr-lib64-libsvn_swig_py-1-so-0-u=
ndefined-symbol-pycapsule_import</a><br>
<br>
-- Mike<br>
<br>
<div class=3D"moz-cite-prefix">On 06/21/2016 02:19 PM, Tom Truong
wrote:<br>
</div>
<blockquote
cite=3D"mid:[email protected]"
type=3D"cite">
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=
-8">
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
=09{font-family:"Cambria Math";
=09panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0in;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri","sans-serif";}
h3
=09{mso-style-priority:9;
=09mso-style-link:"Heading 3 Char";
=09mso-margin-top-alt:auto;
=09margin-right:0in;
=09mso-margin-bottom-alt:auto;
=09margin-left:0in;
=09font-size:13.5pt;
=09font-family:"Times New Roman","serif";}
h4
=09{mso-style-priority:9;
=09mso-style-link:"Heading 4 Char";
=09mso-margin-top-alt:auto;
=09margin-right:0in;
=09mso-margin-bottom-alt:auto;
=09margin-left:0in;
=09font-size:12.0pt;
=09font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:blue;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{mso-style-priority:99;
=09color:purple;
=09text-decoration:underline;}
pre
=09{mso-style-priority:99;
=09mso-style-link:"HTML Preformatted Char";
=09margin:0in;
=09margin-bottom:.0001pt;
=09font-size:10.0pt;
=09font-family:"Courier New";}
span.EmailStyle17
=09{mso-style-type:personal-compose;
=09font-family:"Calibri","sans-serif";
=09color:windowtext;}
span.Heading3Char
=09{mso-style-name:"Heading 3 Char";
=09mso-style-priority:9;
=09mso-style-link:"Heading 3";
=09font-family:"Times New Roman","serif";
=09font-weight:bold;}
span.Heading4Char
=09{mso-style-name:"Heading 4 Char";
=09mso-style-priority:9;
=09mso-style-link:"Heading 4";
=09font-family:"Times New Roman","serif";
=09font-weight:bold;}
span.HTMLPreformattedChar
=09{mso-style-name:"HTML Preformatted Char";
=09mso-style-priority:99;
=09mso-style-link:"HTML Preformatted";
=09font-family:"Courier New";}
.MsoChpDefault
=09{mso-style-type:export-only;}
@page WordSection1
=09{size:8.5in 11.0in;
=09margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
=09{page:WordSection1;}
--></style>
<div class=3D"WordSection1">
<p class=3D"MsoNormal">Hi all,</p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal">When I invoked URL <a
moz-do-not-send=3D"true" href=3D"http://servername/viewvc"><a c=
lass=3D"moz-txt-link-freetext" href=3D"http://servername/viewvc">http://ser=
vername/viewvc</a></a>,
I=E2=80=99ve the below error.</p>
<p class=3D"MsoNormal">Do you have the fix for it?=C2=A0 Appreciate
your help.</p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal"
style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><=
span
style=3D"font-size:13.5pt;font-family:"Times New
Roman","serif";color:black">An Exception
Has Occurred</span></b></p>
<p class=3D"MsoNormal"
style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><=
span
style=3D"font-size:13.5pt;font-family:"Times New
Roman","serif";color:black">Python
Traceback</span></b></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">Traceback (most recent call last):</span=
></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/viewvc.py", line 4855, in main</span=
></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 request.run_viewvc()<=
/span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/viewvc.py", line 408, in
run_viewvc</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 self.view_func(self)<=
/span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/viewvc.py", line 2207, in
view_roots</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 expand_root_parents(r=
equest.cfg)</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/viewvc.py", line 4732, in
expand_root_parents</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 roots =3D
vclib.svn.expand_root_parent(pp)</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 76,
in expand_root_parent</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 roots[rootname] =3D
canonicalize_rootpath(rootpath)</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 39,
in canonicalize_rootpath</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 rootpath =3D
_canonicalize_path(rootpath)</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 23,
in _canonicalize_path</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 import svn.core</span=
></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black"> =C2=A0File
"/usr/lib64/python2.6/site-packages/svn/core.py", line 26,
in <module></span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 from libsvn.core impo=
rt *</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/usr/lib64/python2.6/site-packages/libsvn/core.py", line
28, in <module></span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 _core =3D swig_import=
_helper()</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0 File
"/usr/lib64/python2.6/site-packages/libsvn/core.py", line
24, in swig_import_helper</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">=C2=A0=C2=A0=C2=A0 _mod =3D imp.load_mod=
ule('_core',
fp, pathname, description)</span></p>
<p class=3D"MsoNormal"><span
style=3D"font-size:10.0pt;font-family:"Courier
New";color:black">ImportError:
/usr/lib64/libsvn_swig_py-1.so.0: undefined symbol:
PyCapsule_Import</span></p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal">Thanks,</p>
<p class=3D"MsoNormal">Tom Truong</p>
<p class=3D"MsoNormal">408-687-6837</p>
</div>
</blockquote>
<br>
</body>
</html>
------=_Part_4863_1623431164.1466535368107--