RE: [viewvc-users] viewvc-1.1.24 not working with svn 1.9.4 on CentOS 6.7
Tom Truong <[email protected]> Tue, 21 Jun 2016 23:02:00 -0700
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <283fcff432bd7c30fdf18b4382f775e2__32438.5144202553$1466575341$gmane$org@mail.gmail.com> |
------=_Part_5769_1191316154.1466575325850 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Mike, Thanks for your explanation. I did Google the links you provided earlier before contacting you, but they couldn=E2=80=99t help with my problem. I downloaded the compiled subversion 1.9.4-1 for CentOS 6 at http://www.wandisco.com/subversion/os/downloads and ran their script to install on our server. Do you have the viewvc version that would work with CentOS 6 and python 2.6= ? Will viewvc-1.1.24 work with CentOS 7 and the python version that comes with it? Should I start over install subversion 1.9.4 from apache.org instead? Thanks, Tom *From:* C. Michael Pilato [mailto:[email protected]] *Sent:* Tuesday, June 21, 2016 11:56 AM *To:* Tom Truong; [email protected] *Subject:* Re: [viewvc-users] viewvc-1.1.24 not working with svn 1.9.4 on CentOS 6.7 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 <https://urldefense.proofpoint.com/v2/url?u=3Dhttps-3A__forums.aws.amazon.c= om_thread.jspa-3FthreadID-3D174605&d=3DCwMDaQ&c=3DIGDlg0lD0b-nebmJJ0Kp8A&r= =3DQaKcmMIDgIjWJScarCzwsTxQ9-6k7XKdLuzI1fEoWlA&m=3DEOvivc46ZNyT91WQ6ZEm8O7i= Mywz2f0ZmVN-rNDYlNA&s=3DhEtqgb74wC6K1OHXZPlDNF9lLPVFRZFIr4HIRGfcyBw&e=3D> 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 <https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__www.wandisco.com_svn= forum_forum_opensource-2Dsubversion-2Dforums_apache-2Dsubversion-2D1-2D8-2D= support_73237-2Dimporterror-2Dusr-2Dlib64-2Dlibsvn-5Fswig-5Fpy-2D1-2Dso-2D0= -2Dundefined-2Dsymbol-2Dpycapsule-5Fimport&d=3DCwMDaQ&c=3DIGDlg0lD0b-nebmJJ= 0Kp8A&r=3DQaKcmMIDgIjWJScarCzwsTxQ9-6k7XKdLuzI1fEoWlA&m=3DEOvivc46ZNyT91WQ6= ZEm8O7iMywz2f0ZmVN-rNDYlNA&s=3DKyII9A1DMqNicamPC1UWGUnI4xWxF9AvjH65KdH9kIE&= e=3D> -- Mike On 06/21/2016 02:19 PM, Tom Truong wrote: Hi all, When I invoked URL http://servername/viewvc <https://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__servername_viewvc&d= =3DCwMDaQ&c=3DIGDlg0lD0b-nebmJJ0Kp8A&r=3DQaKcmMIDgIjWJScarCzwsTxQ9-6k7XKdLu= zI1fEoWlA&m=3DEOvivc46ZNyT91WQ6ZEm8O7iMywz2f0ZmVN-rNDYlNA&s=3D5qegHGnnaZFUH= m9dW1EQLI-yJuOzGVI_48-YlnYBTv8&e=3D>, I=E2=80=99ve the below error. Do you have the fix for it? Appreciate your help. *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 Thanks, Tom Truong 408-687-6837 ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=3D4255&dsMessageId=3D3= 176279 To unsubscribe from this discussion, e-mail: [[email protected]= is.org]. ------=_Part_5769_1191316154.1466575325850 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset= =3Dutf-8"><meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered m= edium)"><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;} @font-face =09{font-family:Tahoma; =09panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face =09{font-family:"Courier New \;color\:black"; =09panose-1:0 0 0 0 0 0 0 0 0 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal =09{margin:0in; =09margin-bottom:.0001pt; =09font-size:11.0pt; =09font-family:"Calibri","sans-serif"; =09color:black;} 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"; =09color:black;} 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"; =09color:black;} 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"; =09color:black;} 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";} span.EmailStyle21 =09{mso-style-type:personal; =09font-family:"Calibri","sans-serif"; =09color:windowtext;} span.EmailStyle22 =09{mso-style-type:personal-reply; =09font-family:"Calibri","sans-serif"; =09color:#1F497D;} .MsoChpDefault =09{mso-style-type:export-only; =09font-size:10.0pt;} @page WordSection1 =09{size:8.5in 11.0in; =09margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 =09{page:WordSection1;} --></style></head><body bgcolor=3D"white" lang=3D"EN-US" link=3D"blue" vlin= k=3D"purple"><div class=3D"WordSection1"><p class=3D"MsoNormal"><span style= =3D"color:#1f497d">Hi Mike,</span></p><p class=3D"MsoNormal"><span style=3D= "color:#1f497d">=C2=A0</span></p><p class=3D"MsoNormal"><span style=3D"colo= r:#1f497d">Thanks for your explanation.</span></p><p class=3D"MsoNormal"><s= pan style=3D"color:#1f497d">I did Google the links you provided earlier bef= ore contacting you, but they couldn=E2=80=99t help with my problem.</span><= /p><p class=3D"MsoNormal"><span style=3D"color:#1f497d">I downloaded the co= mpiled subversion 1.9.4-1 for CentOS 6 at <a href=3D"http://www.wandisco.co= m/subversion/os/downloads">http://www.wandisco.com/subversion/os/downloads<= /a> and ran their script to install on our server.</span></p><p class=3D"Ms= oNormal"><span style=3D"color:#1f497d">Do you have the viewvc version that = would work with CentOS 6 and python 2.6?</span></p><p class=3D"MsoNormal"><= span style=3D"color:#1f497d">Will viewvc-1.1.24 work with CentOS 7 and the = python version that comes with it?</span></p><p class=3D"MsoNormal"><span s= tyle=3D"color:#1f497d">Should I start over install subversion 1.9.4 from <a= href=3D"http://apache.org">apache.org</a> instead?</span></p><p class=3D"M= soNormal"><span style=3D"color:#1f497d">=C2=A0</span></p><p class=3D"MsoNor= mal"><span style=3D"color:#1f497d">Thanks,</span></p><p class=3D"MsoNormal"= ><span style=3D"color:#1f497d">Tom</span></p><p class=3D"MsoNormal"><span s= tyle=3D"color:#1f497d">=C2=A0</span></p><div><div style=3D"border:none;bord= er-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in"><p class=3D"MsoNormal= "><b><span style=3D"font-size:10.0pt;font-family:"Tahoma","s= ans-serif";color:windowtext">From:</span></b><span style=3D"font-size:= 10.0pt;font-family:"Tahoma","sans-serif";color:windowte= xt"> C. Michael Pilato [mailto:<a href=3D"mailto:[email protected]">cmpil= [email protected]</a>] <br><b>Sent:</b> Tuesday, June 21, 2016 11:56 AM<br><b>= To:</b> Tom Truong; <a href=3D"mailto:[email protected]">users@viewvc= .tigris.org</a><br><b>Subject:</b> Re: [viewvc-users] viewvc-1.1.24 not wor= king with svn 1.9.4 on CentOS 6.7</span></p></div></div><p class=3D"MsoNorm= al">=C2=A0</p><p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt">Tom,<br= ><br>Thanks for you mail, and I'm sorry you're having trouble getti= ng ViewVC up and running.=C2=A0 Unfortunately, the problem you are seeing i= sn'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 whi= ch are maintained by the Subversion developer community, but which are comp= iled 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 speci= fically 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 eve= n if you were to simply import the Subversion bindings via Python at your s= hell prompt, you'd see the same problem without ViewVC even being in th= e 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 fol= ks who ran into similar issues:<br><a href=3D"https://urldefense.proofpoint= .com/v2/url?u=3Dhttps-3A__forums.aws.amazon.com_thread.jspa-3FthreadID-3D17= 4605&d=3DCwMDaQ&c=3DIGDlg0lD0b-nebmJJ0Kp8A&r=3DQaKcmMIDgIjWJSca= rCzwsTxQ9-6k7XKdLuzI1fEoWlA&m=3DEOvivc46ZNyT91WQ6ZEm8O7iMywz2f0ZmVN-rND= YlNA&s=3DhEtqgb74wC6K1OHXZPlDNF9lLPVFRZFIr4HIRGfcyBw&e=3D">https://= forums.aws.amazon.com/thread.jspa?threadID=3D174605</a><br><a href=3D"https= ://urldefense.proofpoint.com/v2/url?u=3Dhttp-3A__www.wandisco.com_svnforum_= forum_opensource-2Dsubversion-2Dforums_apache-2Dsubversion-2D1-2D8-2Dsuppor= t_73237-2Dimporterror-2Dusr-2Dlib64-2Dlibsvn-5Fswig-5Fpy-2D1-2Dso-2D0-2Dund= efined-2Dsymbol-2Dpycapsule-5Fimport&d=3DCwMDaQ&c=3DIGDlg0lD0b-nebm= JJ0Kp8A&r=3DQaKcmMIDgIjWJScarCzwsTxQ9-6k7XKdLuzI1fEoWlA&m=3DEOvivc4= 6ZNyT91WQ6ZEm8O7iMywz2f0ZmVN-rNDYlNA&s=3DKyII9A1DMqNicamPC1UWGUnI4xWxF9= AvjH65KdH9kIE&e=3D">http://www.wandisco.com/svnforum/forum/opensource-s= ubversion-forums/apache-subversion-1-8-support/73237-importerror-usr-lib64-= libsvn_swig_py-1-so-0-undefined-symbol-pycapsule_import</a><br><br>-- Mike<= /p><div><p class=3D"MsoNormal">On 06/21/2016 02:19 PM, Tom Truong wrote:</p= ></div><blockquote style=3D"margin-top:5.0pt;margin-bottom:5.0pt"><p class= =3D"MsoNormal">Hi all,</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoN= ormal">When I invoked URL <a href=3D"https://urldefense.proofpoint.com/v2/u= rl?u=3Dhttp-3A__servername_viewvc&d=3DCwMDaQ&c=3DIGDlg0lD0b-nebmJJ0= Kp8A&r=3DQaKcmMIDgIjWJScarCzwsTxQ9-6k7XKdLuzI1fEoWlA&m=3DEOvivc46ZN= yT91WQ6ZEm8O7iMywz2f0ZmVN-rNDYlNA&s=3D5qegHGnnaZFUHm9dW1EQLI-yJuOzGVI_4= 8-YlnYBTv8&e=3D">http://servername/viewvc</a>, I=E2=80=99ve the below e= rror.</p><p class=3D"MsoNormal">Do you have the fix for it?=C2=A0 Appreciat= e your help.</p><p class=3D"MsoNormal">=C2=A0</p><p class=3D"MsoNormal" sty= le=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style=3D= "font-size:13.5pt">An Exception Has Occurred</span></b></p><p class=3D"MsoN= ormal" style=3D"mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><spa= n style=3D"font-size:13.5pt">Python Traceback</span></b></p><p class=3D"Mso= Normal"><span style=3D"font-size:10.0pt;font-family:"Courier New ;colo= r:black","serif"">Traceback (most recent call last):</span><= /p><p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"= ;Courier New ;color:black","serif"">=C2=A0 File "/expor= t/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 Ne= w ;color:black","serif"">=C2=A0=C2=A0=C2=A0 request.run_view= vc()</span></p><p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-= family:"Courier New ;color:black","serif"">=C2=A0 File = "/export/viewvc-1.1.24/lib/viewvc.py", line 408, in run_viewvc</s= pan></p><p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:= "Courier New ;color:black","serif"">=C2=A0=C2=A0=C2=A0 = self.view_func(self)</span></p><p class=3D"MsoNormal"><span style=3D"font-s= ize:10.0pt;font-family:"Courier New ;color:black","serif&quo= t;">=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","serif"">= =C2=A0=C2=A0=C2=A0 expand_root_parents(request.cfg)</span></p><p class=3D"M= soNormal"><span style=3D"font-size:10.0pt;font-family:"Courier New ;co= lor:black","serif"">=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 Ne= w ;color:black","serif"">=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","ser= if"">=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"><sp= an style=3D"font-size:10.0pt;font-family:"Courier New ;color:black&quo= t;,"serif"">=C2=A0=C2=A0=C2=A0 roots[rootname] =3D canonicalize_r= ootpath(rootpath)</span></p><p class=3D"MsoNormal"><span style=3D"font-size= :10.0pt;font-family:"Courier New ;color:black","serif""= >=C2=A0 File "/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", l= ine 39, in canonicalize_rootpath</span></p><p class=3D"MsoNormal"><span sty= le=3D"font-size:10.0pt;font-family:"Courier New ;color:black",&qu= ot;serif"">=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-fam= ily:"Courier New ;color:black","serif"">=C2=A0 File &qu= ot;/export/viewvc-1.1.24/lib/vclib/svn/__init__.py", line 23, in _cano= nicalize_path</span></p><p class=3D"MsoNormal"><span style=3D"font-size:10.= 0pt;font-family:"Courier New ;color:black","serif"">=C2= =A0=C2=A0=C2=A0 import svn.core</span></p><p class=3D"MsoNormal"><span styl= e=3D"font-size:10.0pt;font-family:"Courier New ;color:black",&quo= t;serif"">=C2=A0File "/usr/lib64/python2.6/site-packages/svn/core= .py", line 26, in <module></span></p><p class=3D"MsoNormal"><spa= n style=3D"font-size:10.0pt;font-family:"Courier New ;color:black"= ;,"serif"">=C2=A0=C2=A0=C2=A0 from libsvn.core import *</span></p= ><p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"C= ourier New ;color:black","serif"">=C2=A0 File "/usr/lib= 64/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-fami= ly:"Courier New ;color:black","serif"">=C2=A0=C2=A0=C2= =A0 _core =3D swig_import_helper()</span></p><p class=3D"MsoNormal"><span s= tyle=3D"font-size:10.0pt;font-family:"Courier New ;color:black",&= quot;serif"">=C2=A0 File "/usr/lib64/python2.6/site-packages/libs= vn/core.py", line 24, in swig_import_helper</span></p><p class=3D"MsoN= ormal"><span style=3D"font-size:10.0pt;font-family:"Courier New ;color= :black","serif"">=C2=A0=C2=A0=C2=A0 _mod =3D imp.load_module= ('_core', fp, pathname, description)</span></p><p class=3D"MsoNorma= l"><span style=3D"font-size:10.0pt;font-family:"Courier New ;color:bla= ck","serif"">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 cl= ass=3D"MsoNormal">Tom Truong</p><p class=3D"MsoNormal">408-687-6837</p></bl= ockquote><p class=3D"MsoNormal"><span style=3D"font-size:12.0pt;font-family= :"Times New Roman","serif"">=C2=A0</span></p></div></bo= dy></html> ------=_Part_5769_1191316154.1466575325850--