Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Issue with svn bindings

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


cbillen at warmlyyours

Nov 3, 2006, 11:05 AM

Post #1 of 8 (6429 views)
Permalink
Issue with svn bindings

Good afternoon,

I am getting "Unsupported version control system "svn" when trying to access
the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
SVN 1.4 on apache 2.2.3 via mod_python.

I have compiled subversion and the python bindings as such:

./configure --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
--with-ssl --with-swig

--with-neon=/us
make
make swig-py
make install
make install-swig-py

The above steps complete successfully

Finally I copied the libsvn and svn folder that were installed to
/usr/local/lib/svn-python to /usr/local/python2.4/site-packages

I can start python and do import svn without errors.

However trac does not seem to think so.

Internal Error

Ticket changes event provider (TicketModule) failed:

TracError: Unsupported version control system "svn"

You may want to see the other kind of events from the Timeline

I can only see Milestones and WikiChanges, Ticket and Repository fails with
the same error.

When I do browse source I see the same error "Unsupported version control
system svn"

Is there a step I am missing?

Thank you


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


gmcgrath815 at gmail

Nov 3, 2006, 11:29 AM

Post #2 of 8 (6319 views)
Permalink
Re: Issue with svn bindings [In reply to]

in python do this command:
import svn.repos

What do you get out?


On 11/3/06, Christian Billen <cbillen[at]warmlyyours.com> wrote:
>
>
> Good afternoon,
>
> I am getting "Unsupported version control system "svn" when trying to
> access
> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
> SVN 1.4 on apache 2.2.3 via mod_python.
>
> I have compiled subversion and the python bindings as such:
>
> ./configure --with-apr=/usr/local/apache2
> --with-apr-util=/usr/local/apache2
> --with-ssl --with-swig
>
> --with-neon=/us
> make
> make swig-py
> make install
> make install-swig-py
>
> The above steps complete successfully
>
> Finally I copied the libsvn and svn folder that were installed to
> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
>
> I can start python and do import svn without errors.
>
> However trac does not seem to think so.
>
> Internal Error
>
> Ticket changes event provider (TicketModule) failed:
>
> TracError: Unsupported version control system "svn"
>
> You may want to see the other kind of events from the Timeline
>
> I can only see Milestones and WikiChanges, Ticket and Repository fails
> with
> the same error.
>
> When I do browse source I see the same error "Unsupported version control
> system svn"
>
> Is there a step I am missing?
>
> Thank you
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


manu.blot at gmail

Nov 3, 2006, 11:33 AM

Post #3 of 8 (6321 views)
Permalink
Re: Issue with svn bindings [In reply to]

> I can start python and do import svn without errors.

If you have several python interpreters installed, check that your
mod_python module uses the same interpreter as the one you've run from
the command line.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cbillen at warmlyyours

Nov 3, 2006, 11:42 AM

Post #4 of 8 (6320 views)
Permalink
Re: Issue with svn bindings [In reply to]

Ah, looks like wečre on to something:

Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn.repos
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "svn/repos.py", line 19, in ?
from libsvn.repos import *
File "libsvn/repos.py", line 5, in ?
import _repos
ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
SSL_shutdown
>>>

What it means I am not sure yet but Ičm sure you guys do :)

C


On 11/3/06 1:29 PM, "Garrett McGrath" <gmcgrath815[at]gmail.com> wrote:

> in python do this command:
> import svn.repos
>
> What do you get out?
>
>
> On 11/3/06, Christian Billen <cbillen[at]warmlyyours.com> wrote:
>>
>> Good afternoon,
>>
>> I am getting "Unsupported version control system "svn" when trying to access
>> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
>> SVN 1.4 on apache 2.2.3 via mod_python.
>>
>> I have compiled subversion and the python bindings as such:
>>
>> ./configure --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
>> --with-ssl --with-swig
>>
>> --with-neon=/us
>> make
>> make swig-py
>> make install
>> make install-swig-py
>>
>> The above steps complete successfully
>>
>> Finally I copied the libsvn and svn folder that were installed to
>> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
>>
>> I can start python and do import svn without errors.
>>
>> However trac does not seem to think so.
>>
>> Internal Error
>>
>> Ticket changes event provider (TicketModule) failed:
>>
>> TracError: Unsupported version control system "svn"
>>
>> You may want to see the other kind of events from the Timeline
>>
>> I can only see Milestones and WikiChanges, Ticket and Repository fails with
>> the same error.
>>
>> When I do browse source I see the same error "Unsupported version control
>> system svn"
>>
>> Is there a step I am missing?
>>
>> Thank you
>>
>>
>>
>> >>
>>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


gmcgrath815 at gmail

Nov 3, 2006, 11:53 AM

Post #5 of 8 (6336 views)
Permalink
Re: Issue with svn bindings [In reply to]

It means your svn Python bindings are broken in some way or another, the
problem is this never manifests quiet the same on each machine. It could
also mean that Neon (a SVN dependancy) isn't built correctly. My
recommendation. Find your neon install ( i can almost guarantee it's inside
the src folder for your svn install) and rename the folder. Go into that
folder and build new using the shared and static enables, also make sure
that neon is built against ssl. This will prevent svn from building neon
when it gets built. Then rebuild your svn by first doing a make clean and
make clean-swig-py. run ./configure (with any flags you want) do a make &&
make swig-py. then do a make install && make install-swig-py. That should
help get you on your way.

As an asside ensure that the versions of apr and apr-util that svn is
building against are correct and are infact the apache 2.2.3 ones (version
1.2.7 not 0.9.3 which is what svn comes with) I can almost guarantee that
svn is building those as well if you've unpacked the dependancies (so rename
them too and track down apr-config and apu-config and make sure they are the
right versions. apache 2.2.3 built those as apr-1-config and apu-1-config
on my system so be careful.)

I've actually written a bit about this on the svn mailing list because it
took me so long to fix, you can check there for more details (sorry I don't
have a link off hand.)


On 11/3/06, Christian Billen <cbillen[at]warmlyyours.com> wrote:
>
> Ah, looks like we're on to something:
>
> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import svn.repos
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "svn/repos.py", line 19, in ?
> from libsvn.repos import *
> File "libsvn/repos.py", line 5, in ?
> import _repos
> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
> SSL_shutdown
> >>>
>
> What it means I am not sure yet but I'm sure you guys do :)
>
> C
>
>
> On 11/3/06 1:29 PM, "Garrett McGrath" <gmcgrath815[at]gmail.com> wrote:
>
> in python do this command:
> import svn.repos
>
> What do you get out?
>
>
> On 11/3/06, *Christian Billen* <cbillen[at]warmlyyours.com> wrote:
>
>
> Good afternoon,
>
> I am getting "Unsupported version control system "svn" when trying to
> access
> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
> SVN 1.4 on apache 2.2.3 via mod_python.
>
> I have compiled subversion and the python bindings as such:
>
> ./configure --with-apr=/usr/local/apache2
> --with-apr-util=/usr/local/apache2
> --with-ssl --with-swig
>
> --with-neon=/us
> make
> make swig-py
> make install
> make install-swig-py
>
> The above steps complete successfully
>
> Finally I copied the libsvn and svn folder that were installed to
> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
>
> I can start python and do import svn without errors.
>
> However trac does not seem to think so.
>
> Internal Error
>
> Ticket changes event provider (TicketModule) failed:
>
> TracError: Unsupported version control system "svn"
>
> You may want to see the other kind of events from the Timeline
>
> I can only see Milestones and WikiChanges, Ticket and Repository fails
> with
> the same error.
>
> When I do browse source I see the same error "Unsupported version control
> system svn"
>
> Is there a step I am missing?
>
> Thank you
>
>
>
>
>
>
>
> >
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


cbillen at warmlyyours

Nov 3, 2006, 12:54 PM

Post #6 of 8 (6311 views)
Permalink
Re: Issue with svn bindings [In reply to]

Fantastic, following your instructions worked beautifully.

I built neon with this config
./configure --with-ssl -with-zlib --enable-shared --enable-static
make
make install

And after that subversion built without a problem and all is working

Thank you!
C

On 11/3/06 1:53 PM, "Garrett McGrath" <gmcgrath815[at]gmail.com> wrote:

> It means your svn Python bindings are broken in some way or another, the
> problem is this never manifests quiet the same on each machine. It could also
> mean that Neon (a SVN dependancy) isn't built correctly. My recommendation.
> Find your neon install ( i can almost guarantee it's inside the src folder for
> your svn install) and rename the folder. Go into that folder and build new
> using the shared and static enables, also make sure that neon is built against
> ssl. This will prevent svn from building neon when it gets built. Then
> rebuild your svn by first doing a make clean and make clean-swig-py. run
> ./configure (with any flags you want) do a make && make swig-py. then do a
> make install && make install-swig-py. That should help get you on your way.
>
> As an asside ensure that the versions of apr and apr-util that svn is building
> against are correct and are infact the apache 2.2.3 ones (version 1.2.7 not
> 0.9.3 which is what svn comes with) I can almost guarantee that svn is
> building those as well if you've unpacked the dependancies (so rename them too
> and track down apr-config and apu-config and make sure they are the right
> versions. apache 2.2.3 built those as apr-1-config and apu-1-config on my
> system so be careful.)
>
> I've actually written a bit about this on the svn mailing list because it took
> me so long to fix, you can check there for more details (sorry I don't have a
> link off hand.)
>
>
> On 11/3/06, Christian Billen <cbillen[at]warmlyyours.com> wrote:
>> Ah, looks like we're on to something:
>>
>> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
>> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> >>> import svn.repos
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> File "svn/repos.py", line 19, in ?
>> from libsvn.repos import *
>> File "libsvn/repos.py", line 5, in ?
>> import _repos
>> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
>> SSL_shutdown
>>>>> >>>
>>
>> What it means I am not sure yet but I'm sure you guys do :)
>>
>> C
>>
>>
>>
>> On 11/3/06 1:29 PM, "Garrett McGrath" < gmcgrath815[at]gmail.com
>> <mailto:gmcgrath815[at]gmail.com> > wrote:
>>
>>> in python do this command:
>>> import svn.repos
>>>
>>> What do you get out?
>>>
>>>
>>> On 11/3/06, Christian Billen < cbillen[at]warmlyyours.com
>>> <mailto:cbillen[at]warmlyyours.com> > wrote:
>>>>
>>>> Good afternoon,
>>>>
>>>> I am getting "Unsupported version control system "svn" when trying to
>>>> access
>>>> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
>>>> SVN 1.4 on apache 2.2.3 via mod_python.
>>>>
>>>> I have compiled subversion and the python bindings as such:
>>>>
>>>> ./configure --with-apr=/usr/local/apache2
>>>> --with-apr-util=/usr/local/apache2
>>>> --with-ssl --with-swig
>>>>
>>>> --with-neon=/us
>>>> make
>>>> make swig-py
>>>> make install
>>>> make install-swig-py
>>>>
>>>> The above steps complete successfully
>>>>
>>>> Finally I copied the libsvn and svn folder that were installed to
>>>> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
>>>>
>>>> I can start python and do import svn without errors.
>>>>
>>>> However trac does not seem to think so.
>>>>
>>>> Internal Error
>>>>
>>>> Ticket changes event provider (TicketModule) failed:
>>>>
>>>> TracError: Unsupported version control system "svn"
>>>>
>>>> You may want to see the other kind of events from the Timeline
>>>>
>>>> I can only see Milestones and WikiChanges, Ticket and Repository fails with
>>>> the same error.
>>>>
>>>> When I do browse source I see the same error "Unsupported version control
>>>> system svn"
>>>>
>>>> Is there a step I am missing?
>>>>
>>>> Thank you
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>> >>
>>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


theajp01 at gmail

Dec 7, 2006, 11:04 PM

Post #7 of 8 (6062 views)
Permalink
Re: Issue with svn bindings [In reply to]

Hey people,

So it appeared I had the same problem. But after I compiled neon myself
and svn (again) i still had the same problem. in python i could import
svn but not svn.repos. It said it missed a lib. So then I noticed that
python's site-packages were installed in /usr/lib and py-swig libs and
svn libs were all installed in /usr/local/lib so I coppied *svn* to
/usr/lib and restarted apache and it worked :)

greetz ajp

Christian Billen wrote:
> Fantastic, following your instructions worked beautifully.
>
> I built neon with this config
> ./configure --with-ssl -with-zlib --enable-shared --enable-static
> make
> make install
>
> And after that subversion built without a problem and all is working
>
> Thank you!
> C
>
> On 11/3/06 1:53 PM, "Garrett McGrath" <gmcgrath815[at]gmail.com> wrote:
>
> > It means your svn Python bindings are broken in some way or another, the
> > problem is this never manifests quiet the same on each machine. It could also
> > mean that Neon (a SVN dependancy) isn't built correctly. My recommendation.
> > Find your neon install ( i can almost guarantee it's inside the src folder for
> > your svn install) and rename the folder. Go into that folder and build new
> > using the shared and static enables, also make sure that neon is built against
> > ssl. This will prevent svn from building neon when it gets built. Then
> > rebuild your svn by first doing a make clean and make clean-swig-py. run
> > ./configure (with any flags you want) do a make && make swig-py. then do a
> > make install && make install-swig-py. That should help get you on your way.
> >
> > As an asside ensure that the versions of apr and apr-util that svn is building
> > against are correct and are infact the apache 2.2.3 ones (version 1.2.7 not
> > 0.9.3 which is what svn comes with) I can almost guarantee that svn is
> > building those as well if you've unpacked the dependancies (so rename them too
> > and track down apr-config and apu-config and make sure they are the right
> > versions. apache 2.2.3 built those as apr-1-config and apu-1-config on my
> > system so be careful.)
> >
> > I've actually written a bit about this on the svn mailing list because it took
> > me so long to fix, you can check there for more details (sorry I don't have a
> > link off hand.)
> >
> >
> > On 11/3/06, Christian Billen <cbillen[at]warmlyyours.com> wrote:
> >> Ah, looks like we're on to something:
> >>
> >> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> >> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2
> >> Type "help", "copyright", "credits" or "license" for more information.
> >>>>> >>> import svn.repos
> >> Traceback (most recent call last):
> >> File "<stdin>", line 1, in ?
> >> File "svn/repos.py", line 19, in ?
> >> from libsvn.repos import *
> >> File "libsvn/repos.py", line 5, in ?
> >> import _repos
> >> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
> >> SSL_shutdown
> >>>>> >>>
> >>
> >> What it means I am not sure yet but I'm sure you guys do :)
> >>
> >> C
> >>
> >>
> >>
> >> On 11/3/06 1:29 PM, "Garrett McGrath" < gmcgrath815[at]gmail.com
> >> <mailto:gmcgrath815[at]gmail.com> > wrote:
> >>
> >>> in python do this command:
> >>> import svn.repos
> >>>
> >>> What do you get out?
> >>>
> >>>
> >>> On 11/3/06, Christian Billen < cbillen[at]warmlyyours.com
> >>> <mailto:cbillen[at]warmlyyours.com> > wrote:
> >>>>
> >>>> Good afternoon,
> >>>>
> >>>> I am getting "Unsupported version control system "svn" when trying to
> >>>> access
> >>>> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
> >>>> SVN 1.4 on apache 2.2.3 via mod_python.
> >>>>
> >>>> I have compiled subversion and the python bindings as such:
> >>>>
> >>>> ./configure --with-apr=/usr/local/apache2
> >>>> --with-apr-util=/usr/local/apache2
> >>>> --with-ssl --with-swig
> >>>>
> >>>> --with-neon=/us
> >>>> make
> >>>> make swig-py
> >>>> make install
> >>>> make install-swig-py
> >>>>
> >>>> The above steps complete successfully
> >>>>
> >>>> Finally I copied the libsvn and svn folder that were installed to
> >>>> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
> >>>>
> >>>> I can start python and do import svn without errors.
> >>>>
> >>>> However trac does not seem to think so.
> >>>>
> >>>> Internal Error
> >>>>
> >>>> Ticket changes event provider (TicketModule) failed:
> >>>>
> >>>> TracError: Unsupported version control system "svn"
> >>>>
> >>>> You may want to see the other kind of events from the Timeline
> >>>>
> >>>> I can only see Milestones and WikiChanges, Ticket and Repository fails with
> >>>> the same error.
> >>>>
> >>>> When I do browse source I see the same error "Unsupported version control
> >>>> system svn"
> >>>>
> >>>> Is there a step I am missing?
> >>>>
> >>>> Thank you
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
> >>
> >> >>
> >>
>
>
>
> --B_3245410449_7240076
> Content-Type: text/html
> Content-Transfer-Encoding: quoted-printable
> X-Google-AttachSize: 5525
>
> <HTML>
> <HEAD>
> <TITLE>Re: [Trac] Re: Issue with svn bindings</TITLE>
> </HEAD>
> <BODY>
> <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Fantastic, following your instructions worked beautifully.<BR>
> <BR>
> I built neon with this config<BR>
> =2E/configure --with-ssl -with-zlib --enable-shared --enable-static<BR>
> make<BR>
> make install<BR>
> <BR>
> And after that subversion built without a problem and all is working<BR>
> <BR>
> Thank you!<BR>
> C<BR>
> <BR>
> On 11/3/06 1:53 PM, &quot;Garrett McGrath&quot; &lt;gmcgrath815[at]gmail.com&gt; wrote:<BR>
> <BR>
> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>It means your svn Python bindings are broken in some way or another, the problem is this never manifests quiet the same on each machine. &nbsp;It could also mean that Neon (a SVN dependancy) isn't built correctly. &nbsp;My recommendation. &nbsp;Find your neon install ( i can almost guarantee it's inside the src folder for your svn install) and rename the folder. &nbsp;Go into that folder and build new using the shared and static enables, also make sure that neon is built against ssl. &nbsp;This will prevent svn from building neon when it gets built. &nbsp;Then rebuild your svn by first doing a make clean and make clean-swig-py. &nbsp;run ./configure (with any flags you want) do a make &amp;&amp; make swig-py. &nbsp;then do a make install &amp;&amp; make install-swig-py. &nbsp;That should help get you on your way. <BR>
> &nbsp;<BR>
> As an asside ensure that the versions of apr and apr-util that svn is building against are correct and are infact the apache 2.2.3 ones (version 1.2.7 not 0.9.3 which is what svn comes with) I can almost guarantee that svn is building those as well if you've unpacked the dependancies (so rename them too and track down apr-config and apu-config and make sure they are the right versions. &nbsp;apache 2.2.3 built those as apr-1-config and apu-1-config on my system so be careful.)<BR>
> &nbsp;<BR>
> I've actually written a bit about this on the svn mailing list because it took me so long to fix, you can check there for more details (sorry I don't have a link off hand.)<BR>
> <BR>
> &nbsp;<BR>
> On 11/3/06, <B>Christian Billen</B> &lt;cbillen[at]warmlyyours.com&gt; wrote: <BR>
> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Ah, looks like we're on to something:<BR>
> <BR>
> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) <BR>
> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2<BR>
> Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<BR>
> &gt;&gt;&gt; import svn.repos<BR>
> Traceback (most recent call last):<BR>
> &nbsp;&nbsp;File &quot;&lt;stdin&gt;&quot;, line 1, in ? <BR>
> &nbsp;&nbsp;File &quot;svn/repos.py&quot;, line 19, in ?<BR>
> &nbsp;&nbsp;&nbsp;&nbsp;from libsvn.repos import *<BR>
> &nbsp;&nbsp;File &quot;libsvn/repos.py&quot;, line 5, in ?<BR>
> &nbsp;&nbsp;&nbsp;&nbsp;import _repos<BR>
> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: SSL_shutdown <BR>
> &gt;&gt;&gt; <BR>
> <BR>
> What it means I am not sure yet but I'm sure you guys do :)<BR>
> <BR>
> C <BR>
> <BR>
> <BR>
> <BR>
> On 11/3/06 1:29 PM, &quot;Garrett McGrath&quot; &lt; gmcgrath815[at]gmail.com <a href=3D"mailto:gmcgrath815[at]gmail.com">&lt;mailto:gmcgrath815[at]gmail.com&gt;</a> &gt; wrote:<BR>
> <BR>
> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>in python do this command:<BR>
> import svn.repos<BR>
> &nbsp;<BR>
> What do you get out?<BR>
> <BR>
> &nbsp;<BR>
> On 11/3/06, <B>Christian Billen</B> &lt; cbillen[at]warmlyyours.com <a href=3D"mailto:cbillen[at]warmlyyours.com">&lt;mailto:cbillen[at]warmlyyours.com&gt;</a> &gt; wrote: <BR>
> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR>
> Good afternoon,<BR>
> <BR>
> I am getting &quot;Unsupported version control system &quot;svn&quot; when trying to access <BR>
> the time line or browse source from Trac 0.10 stable. &nbsp;I have Ubuntu 6.10,<BR>
> SVN 1.4 on apache 2.2.3 via mod_python.<BR>
> <BR>
> I have compiled subversion and the python bindings as such:<BR>
> <BR>
> =2E/configure --with-apr=3D/usr/local/apache2 --with-apr-util=3D/usr/local/apache2 <BR>
> --with-ssl --with-swig<BR>
> <BR>
> --with-neon=3D/us<BR>
> make<BR>
> make swig-py<BR>
> make install<BR>
> make install-swig-py<BR>
> <BR>
> The above steps complete successfully<BR>
> <BR>
> Finally I copied the libsvn and svn folder that were installed to <BR>
> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages<BR>
> <BR>
> I can start python and do import svn without errors.<BR>
> <BR>
> However trac does not seem to think so.<BR>
> <BR>
> Internal Error<BR>
> <BR>
> Ticket changes event provider (TicketModule) failed: <BR>
> <BR>
> TracError: Unsupported version control system &quot;svn&quot;<BR>
> <BR>
> You may want to see the other kind of events from the Timeline<BR>
> <BR>
> I can only see Milestones and WikiChanges, Ticket and Repository fails with <BR>
> the same error.<BR>
> <BR>
> When I do browse source I see the same error &quot;Unsupported version control<BR>
> system svn&quot;<BR>
> <BR>
> Is there a step I am missing?<BR>
> <BR>
> Thank you<BR>
> <BR>
> <BR>
> <BR>
> <BR>
> <BR>
> </SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR>
> <BR>
> <BR>
> <BR>
> <BR>
> </SPAN></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR>
> </SPAN></FONT>
> </BODY>
> </HTML>=0A=0A
> --B_3245410449_7240076--


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


vpaziran at gmail

Feb 3, 2007, 7:27 PM

Post #8 of 8 (6102 views)
Permalink
Re: Issue with svn bindings [In reply to]

Another possible solution...

Are you getting: TracError: Unsupported version control system
"svn" ???
Or how about: ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0:
undefined symbol: gss_delete_sec_context ?
If you are getting the first error mentioned, go to the command prompt
and type: python -c 'from svn import fs'

Well, it took me several hours of pain to figure out a solution. So
I've decided to reply to every thread in the Trac mailing list so that
others will be sure to stumble upon a (possible) answer. I installed
Trac 0.10.3 on RHEL4.

Here's the site that cured my pain: http://www.liucougar.net/blog/
archives/53/
Basically, recompile subversion but edit the Makefile so that neon
will explicitly link against gssapi lib:

vi subversion-1.4.2/Makefile
old: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm -
lcrypt -lnsl -lpthread -ldl
new: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm -
lcrypt -lnsl -lpthread -ldl -lgssapi
then compile + install again.

You can always not compile neon, but don't you want to browse your
code online? ;-)

Btw, if you apply the above solution but get the new error:
ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No
such file or directory
Then just reboot your box. Something is cached and needs to be
restarted.

keywords: red hat enterprise linux 4, rhel4, rhel, trac, subversion,
rpm, source code,
more keywords:

see also:
http://trac.edgewall.org/ticket/3706?format=rss
http://trac.edgewall.org/ticket/3706
http://pacopablo.com/irclogs/2007/01/28




2007-02-02 18:29:45,878 Trac[main] ERROR: Unsupported version control
system "svn"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387,
in dispatch_request
dispatcher.dispatch(req)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191,
in dispatch
chosen_handler = self._pre_process_request(req, chosen_handler)
File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263,
in _pre_process_request
chosen_handler = f.pre_process_request(req, chosen_handler)
File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py",
line 73, in pre_process_request
self.get_repository(req.authname) # triggers a sync if applicable
File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py",
line 91, in get_repository
raise TracError('Unsupported version control system "%s"'
TracError: Unsupported version control system "svn"


Python 2.4.4 (#1, Feb 2 2007, 16:33:34)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import svn
>>> from svn import fs
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/svn-python/svn/fs.py", line 19, in ?
from libsvn.fs import *
File "/usr/local/lib/svn-python/libsvn/fs.py", line 5, in ?
import _fs
ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
gss_delete_sec_context
>>>

------------------------------------------------------------
Quick-and-dirty notes on installing Trac from source code...
------------------------------------------------------------
[installed on RHEL4 - Nahant]


wget http://mirror.x10.com/mirror/apache/httpd/httpd-2.0.59.tar.gz
./configure --enable-dav --enable-so --enable-maintainer-mode --
prefix=/usr/local/apache2 && make && make install


wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz
./configure --prefix=/usr && make && make install


# no need to get swig - subversion-1.4 have the wrappers in its own
code
#wget 'http://downloads.sourceforge.net/swig/swig-1.3.25.tar.gz?
modtime=1118577644&big_mirror=0'
#./configure --prefix=/usr/local && make && make install


wget http://subversion.tigris.org/downloads/subversion-1.4.2.tar.gz
wget http://subversion.tigris.org/downloads/subversion-
deps-1.4.2.tar.gz
sh autogen.sh
./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/
local && make && make install
make swig-py && make install-swig-py
ls /usr/local/lib/svn-python # you should see "svn" and "libsvn"
dirs here
echo /usr/local/lib/svn-python > /usr/lib/python2.4/site-packages/
subversion.pth


wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz
./configure && make && make install


wget http://peak.telecommunity.com/dist/ez_setup.py
python2.4 ez_setup.py


wget http://docutils.sourceforge.net/docutils-snapshot.tgz
python2.4 setup.py build
python2.4 setup.py install


wget http://www.iki.fi/mtr/genscript/enscript-1.6.4.tar.gz
./configure --prefix=/usr/local && make && make install


wget http://mirror.olnevhost.net/pub/apache/httpd/modpython/
mod_python-3.2.10.tgz
./configure --with-apxs=/usr/local/apache2/bin/apxs && make && make
install


wget http://www.sqlite.org/sqlite-3.3.11.tar.gz
./configure --prefix=/usr/local && make && make install


wget http://initd.org/pub/software/pysqlite/releases/2.3/2.3.3/
pysqlite-2.3.3.tar.gz
python2.4 setup.py build
python2.4 setup.py install


wget http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz
python2.4 setup.py build
python2.4 setup.py install




On Dec 7 2006, 11:04 pm, "ajp" <theaj...@gmail.com> wrote:
> Hey people,
>
> So it appeared I had the same problem. But after I compiled neon myself
> and svn (again) i still had the same problem. in python i could import
> svn but not svn.repos. It said it missed a lib. So then I noticed that
> python's site-packages were installed in /usr/lib and py-swig libs and
> svn libs were all installed in /usr/local/lib so I coppied *svn* to
> /usr/lib and restarted apache and it worked :)
>
> greetz ajp
>
> Christian Billen wrote:
> > Fantastic, following your instructions worked beautifully.
>
> > I built neon with this config
> > ./configure --with-ssl -with-zlib --enable-shared --enable-static
> > make
> > make install
>
> > And after that subversion built without a problem and all is working
>
> > Thank you!
> > C
>
> > On 11/3/06 1:53 PM, "Garrett McGrath" <gmcgrath...@gmail.com> wrote:
>
> > > It means your svn Python bindings are broken in some way or another, the
> > > problem is this never manifests quiet the same on each machine. It could also
> > > mean that Neon (a SVN dependancy) isn't built correctly. My recommendation.
> > > Find your neon install ( i can almost guarantee it's inside the src folder for
> > > your svn install) and rename the folder. Go into that folder and build new
> > > using the shared and static enables, also make sure that neon is built against
> > > ssl. This will prevent svn from building neon when it gets built. Then
> > > rebuild your svn by first doing a make clean and make clean-swig-py. run
> > > ./configure (with any flags you want) do a make && make swig-py. then do a
> > > make install && make install-swig-py. That should help get you on your way.
>
> > > As an asside ensure that the versions of apr and apr-util that svn is building
> > > against are correct and are infact the apache 2.2.3 ones (version1.2.7 not
> > > 0.9.3 which is what svn comes with) I can almost guarantee that svn is
> > > building those as well if you've unpacked the dependancies (so rename them too
> > > and track down apr-config and apu-config and make sure they are the right
> > > versions. apache 2.2.3 built those as apr-1-config and apu-1-config on my
> > >systemso be careful.)
>
> > > I've actually written a bit about this on the svn mailing list because it took
> > > me so long to fix, you can check there for more details (sorry I don't have a
> > > link off hand.)
>
> > > On 11/3/06, Christian Billen <cbil...@warmlyyours.com> wrote:
> > >> Ah, looks like we're on to something:
>
> > >> Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
> > >> [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2
> > >> Type "help", "copyright", "credits" or "license" for more information.
> > >>>>> >>> import svn.repos
> > >> Traceback (most recent call last):
> > >> File "<stdin>", line 1, in ?
> > >> File "svn/repos.py", line 19, in ?
> > >> from libsvn.repos import *
> > >> File "libsvn/repos.py", line 5, in ?
> > >> import _repos
> > >> ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol:
> > >> SSL_shutdown
>
> > >> What it means I am not sure yet but I'm sure you guys do :)
>
> > >> C
>
> > >> On 11/3/06 1:29 PM, "Garrett McGrath" < gmcgrath...@gmail.com
> > >> <mailto:gmcgrath...@gmail.com> > wrote:
>
> > >>> in python do this command:
> > >>> import svn.repos
>
> > >>> What do you get out?
>
> > >>> On 11/3/06, Christian Billen < cbil...@warmlyyours.com
> > >>> <mailto:cbil...@warmlyyours.com> > wrote:
>
> > >>>> Good afternoon,
>
> > >>>> I am getting "Unsupportedversioncontrolsystem"svn" when trying to
> > >>>> access
> > >>>> the time line or browse source from Trac 0.10 stable. I have Ubuntu 6.10,
> > >>>> SVN 1.4 on apache 2.2.3 via mod_python.
>
> > >>>> I have compiled subversion and the python bindings as such:
>
> > >>>> ./configure --with-apr=/usr/local/apache2
> > >>>> --with-apr-util=/usr/local/apache2
> > >>>> --with-ssl --with-swig
>
> > >>>> --with-neon=/us
> > >>>> make
> > >>>> make swig-py
> > >>>> make install
> > >>>> make install-swig-py
>
> > >>>> The above steps complete successfully
>
> > >>>> Finally I copied the libsvn and svn folder that were installed to
> > >>>> /usr/local/lib/svn-python to /usr/local/python2.4/site-packages
>
> > >>>> I can start python and do import svn without errors.
>
> > >>>> However trac does not seem to think so.
>
> > >>>> Internal Error
>
> > >>>> Ticket changes event provider (TicketModule) failed:
>
> > >>>> TracError:Unsupportedversioncontrolsystem"svn"
>
> > >>>> You may want to see the other kind of events from the Timeline
>
> > >>>> I can only see Milestones and WikiChanges, Ticket and Repository fails with
> > >>>> the same error.
>
> > >>>> When I do browse source I see the same error "Unsupportedversioncontrol
> > >>>>systemsvn"
>
> > >>>> Is there a step I am missing?
>
> > >>>> Thank you
>
> > --B_3245410449_7240076
> > Content-Type: text/html
> > Content-Transfer-Encoding: quoted-printable
> > X-Google-AttachSize: 5525
>
> > <HTML>
> > <HEAD>
> > <TITLE>Re: [Trac] Re: Issue with svn bindings</TITLE>
> > </HEAD>
> > <BODY>
> > <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Fantastic, following your instructions worked beautifully.<BR>
> > <BR>
> > I built neon with this config<BR>
> > =2E/configure --with-ssl -with-zlib --enable-shared --enable-static<BR>
> > make<BR>
> > make install<BR>
> > <BR>
> > And after that subversion built without a problem and all is working<BR>
> > <BR>
> > Thank you!<BR>
> > C<BR>
> > <BR>
> > On 11/3/06 1:53 PM, &quot;Garrett McGrath&quot; &lt;gmcgrath...@gmail.com&gt; wrote:<BR>
> > <BR>
> > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>It means your svn Python bindings are broken in some way or another, the problem is this never manifests quiet the same on each machine. &nbsp;It could also mean that Neon (a SVN dependancy) isn't built correctly. &nbsp;My recommendation. &nbsp;Find your neon install ( i can almost guarantee it's inside the src folder for your svn install) and rename the folder. &nbsp;Go into that folder and build new using the shared and static enables, also make sure that neon is built against ssl. &nbsp;This will prevent svn from building neon when it gets built. &nbsp;Then rebuild your svn by first doing a make clean and make clean-swig-py. &nbsp;run ./configure (with any flags you want) do a make &amp;&amp; make swig-py. &nbsp;then do a make install &amp;&amp; make install-swig-py. &nbsp;That should help get you on your way. <BR>
> > &nbsp;<BR>
> > As an asside ensure that the versions of apr and apr-util that svn is building against are correct and are infact the apache 2.2.3 ones (version1.2.7 not 0.9.3 which is what svn comes with) I can almost guarantee that svn is building those as well if you've unpacked the dependancies (so rename them too and track down apr-config and apu-config and make sure they are the right versions. &nbsp;apache 2.2.3 built those as apr-1-config and apu-1-config on mysystemso be careful.)<BR>
> > &nbsp;<BR>
> > I've actually written a bit about this on the svn mailing list because it took me so long to fix, you can check there for more details (sorry I don't have a link off hand.)<BR>
> > <BR>
> > &nbsp;<BR>
> > On 11/3/06, <B>Christian Billen</B> &lt;cbil...@warmlyyours.com&gt; wrote: <BR>
> > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>Ah, looks like we're on to something:<BR>
> > <BR>
> > Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02) <BR>
> > [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )] on linux2<BR>
> > Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<BR>
> > &gt;&gt;&gt; import svn.repos<BR>
> > Traceback (most recent call last):<BR>
> > &nbsp;&nbsp;File &quot;&lt;stdin&gt;&quot;, line 1, in ? <BR>
> > &nbsp;&nbsp;File &quot;svn/repos.py&quot;, line 19, in ?<BR>
> > &nbsp;&nbsp;&nbsp;&nbsp;from libsvn.repos import *<BR>
> > &nbsp;&nbsp;File &quot;libsvn/repos.py&quot;, line 5, in ?<BR>
> > &nbsp;&nbsp;&nbsp;&nbsp;import _repos<BR>
> > ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: SSL_shutdown <BR>
> > &gt;&gt;&gt; <BR>
> > <BR>
> > What it means I am not sure yet but I'm sure you guys do :)<BR>
> > <BR>
> > C <BR>
> > <BR>
> > <BR>
> > <BR>
> > On 11/3/06 1:29 PM, &quot;Garrett McGrath&quot; &lt; gmcgrath...@gmail.com <a href=3D"mailto:gmcgrath...@gmail.com">&lt;mailto:gmcgrath...@gmail.com&gt;</a> &gt; wrote:<BR>
> > <BR>
> > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>in python do this command:<BR>
> > import svn.repos<BR>
> > &nbsp;<BR>
> > What do you get out?<BR>
> > <BR>
> > &nbsp;<BR>
> > On 11/3/06, <B>Christian Billen</B> &lt; cbil...@warmlyyours.com <a href=3D"mailto:cbil...@warmlyyours.com">&lt;mailto:cbil...@warmlyyours.com&gt;</a> &gt; wrote: <BR>
> > </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'><BR>
> > Good afternoon,<BR>
> > <BR>
> > I am getting &quot;Unsupportedversioncontrolsystem&quot;svn&quot; when trying to access <BR>
> > the time line or browse source from Trac 0.10 stable. &nbsp;I have Ubuntu 6.10,<BR>
> > SVN 1.4 on apache 2.2.3 via mod_python.<BR>
> > <BR>
> > I have compiled subversion and the python bindings as such:<BR>
> > <BR>
> > =2E/configure --with-apr=3D/usr/local/apache2 --with-apr-util=3D/usr/local/apache2 <BR>
> > --with-ssl --with-swig<BR>
> > <BR>
> > --with-neon=3D/us<BR>
> > make<BR>
> > make swig-py<BR>
> > make install<BR>
> > make install-swig-py<BR>
> > <BR>
> > The above steps complete successfully<BR>
> > <BR>
> > Finally I copied the libsvn and svn folder that were installed to <BR>
> > /usr/local/lib/svn-python to /usr/local/python2.4/site-packages<BR>
> > <BR>
> > I can start python and do import svn without errors.<BR>
> > <BR>
> > However trac does not seem to think so.<BR>
> > <BR>
> > Internal Error<BR>
> > <BR>
> > Ticket changes event provider (TicketModule) failed: <BR>
> > <BR>
> > TracError:
>
> ...
>
> read more »


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.