Plugin doesn't load with Subversion 1.5.0 and bzr-svn 0.4.11

Asked by Rich Sage

Hi,

I'm trying unsuccessfully to install the bzr-svn plugin. Subversion 1.5.0 builds fine (with swig 1.3.36), and as far as I can tell, builds the Python bindings also. If I build the bzr-svn plugin, then bzr refuses to load it. From the suggestion in https://answers.launchpad.net/bzr-svn/+question/10037, the output I get is:

# cd /usr/local/lib/python2.5/site-packages
# python bzrlib/plugins/svn/__init__.py
No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "bzrlib/plugins/svn/__init__.py", line 28, in <module>
    from bzrlib.plugins.svn import format
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
    check_subversion_version()
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
    ra_version = version()
UnboundLocalError: local variable 'version' referenced before assignment

If I do: python -c "import ra" as suggested elsewhere, I get the following

# python -c "import ra"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: ./ra.so: undefined symbol: svn_ra_get_repos_root

Any ideas as to a possible solution?

Thanks,

-rich

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jelmer Vernooij (jelmer) said :
#1

Hi Rich,

Am Freitag, den 27.06.2008, 13:47 +0000 schrieb Rich Sage:
> New question #37562 on Bazaar Subversion Plugin:
> https://answers.launchpad.net/bzr-svn/+question/37562

> I'm trying unsuccessfully to install the bzr-svn plugin. Subversion 1.5.0 builds fine (with swig 1.3.36), and as far as I can tell, builds the Python bindings also. If I build the bzr-svn plugin, then bzr refuses to load it. From the suggestion in https://answers.launchpad.net/bzr-svn/+question/10037, the output I get is:
SWIG should no longer be necessary, as bzr-svn now comes with its own
bindings.

>
> # cd /usr/local/lib/python2.5/site-packages
> # python bzrlib/plugins/svn/__init__.py
> No handlers could be found for logger "bzr"
> Traceback (most recent call last):
> File "bzrlib/plugins/svn/__init__.py", line 28, in <module>
> from bzrlib.plugins.svn import format
> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
> check_subversion_version()
> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
> ra_version = version()
> UnboundLocalError: local variable 'version' referenced before assignment
>
> If I do: python -c "import ra" as suggested elsewhere, I get the following
>
> # python -c "import ra"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> ImportError: ./ra.so: undefined symbol: svn_ra_get_repos_root
How did you install bzr-svn ?

What does the following output:

python -c "import bzrlib.plugins.svn.ra"

?

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Rich Sage (rich-sage) said :
#2

Hi Jelmer,

Thanks for your reply.

On Fri, Jun 27, 2008 at 3:42 PM, Jelmer Vernooij <email address hidden> wrote:
> How did you install bzr-svn ?

# bzr branch lp:bzr-svn
# cd bzr-svn
# python setup.py install

I also tried separately with the build_ext --inplace option to see if that would have an effect, copying over the .so files generated manually.

> What does the following output:
> python -c "import bzrlib.plugins.svn.ra"

# python -c "import bzrlib.plugins.svn.ra"

No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
    check_subversion_version()
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
    ra_version = version()
UnboundLocalError: local variable 'version' referenced before assignment

> Cheers,
> Jelmer

Thanks,

Rich.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#3

Am Samstag, den 28.06.2008, 11:06 +0000 schrieb Rich Sage:
> Question #37562 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/37562
>
> Status: Answered => Open
>
> Rich Sage is still having a problem:
> Hi Jelmer,
>
> Thanks for your reply.
>
> On Fri, Jun 27, 2008 at 3:42 PM, Jelmer Vernooij <email address hidden> wrote:
> > How did you install bzr-svn ?
>
> # bzr branch lp:bzr-svn
> # cd bzr-svn
> # python setup.py install
>
> I also tried separately with the build_ext --inplace option to see if
> that would have an effect, copying over the .so files generated
> manually.
>
> > What does the following output:
> > python -c "import bzrlib.plugins.svn.ra"
>
> # python -c "import bzrlib.plugins.svn.ra"
>
> No handlers could be found for logger "bzr"
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
> check_subversion_version()
> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
> ra_version = version()
> UnboundLocalError: local variable 'version' referenced before assignment
Any chance you can try again with the latest version of bzr-svn?

The error you got when importing ra seems to suggest a missing library
when linking. What platform are you building on?

Cheers,

Jelmer
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Rich Sage (rich-sage) said :
#4

On Sat, Jun 28, 2008 at 2:12 PM, Jelmer Vernooij <email address hidden> wrote:

>> No handlers could be found for logger "bzr"
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
>> check_subversion_version()
>> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
>> ra_version = version()
>> UnboundLocalError: local variable 'version' referenced before assignment
>> # python -c "import bzrlib.plugins.svn.ra"

> Any chance you can try again with the latest version of bzr-svn?
>
> The error you got when importing ra seems to suggest a missing library
> when linking. What platform are you building on?

Just tried using the latest branch (revno 1369), I get exactly the same as above.

Fedora Core 2, with Subversion 1.5.0 (built with apr 0.9.4 if that makes a difference!).

Hope this helps somewhat.

Thanks,

Rich

Revision history for this message
Jelmer Vernooij (jelmer) said :
#5

Am Samstag, den 28.06.2008, 14:45 +0000 schrieb Rich Sage:
> Question #37562 on Bazaar Subversion Plugin changed:
> https://answers.launchpad.net/bzr-svn/+question/37562
>
> Status: Answered => Open
>
> Rich Sage is still having a problem:
> On Sat, Jun 28, 2008 at 2:12 PM, Jelmer Vernooij
> <email address hidden> wrote:
>
> >> No handlers could be found for logger "bzr"
> >> Traceback (most recent call last):
> >> File "<string>", line 1, in <module>
> >> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 100, in <module>
> >> check_subversion_version()
> >> File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
> >> ra_version = version()
> >> UnboundLocalError: local variable 'version' referenced before assignment
> >> # python -c "import bzrlib.plugins.svn.ra"
>
> > Any chance you can try again with the latest version of bzr-svn?
> >
> > The error you got when importing ra seems to suggest a missing library
> > when linking. What platform are you building on?
>
> Just tried using the latest branch (revno 1369), I get exactly the same
> as above.
The latest revnum should be 1370. The main branch is at
http://people.samba.org/bzr/jelmer/bzr-svn/0.4

> Fedora Core 2, with Subversion 1.5.0 (built with apr 0.9.4 if that makes
> a difference!).
>
> Hope this helps somewhat.

Cheers,

Jelmer

--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>

Revision history for this message
Rich Sage (rich-sage) said :
#6

I now get the following:

# python -c "import bzrlib.plugins.svn.ra"
No handlers could be found for logger "bzr"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 101, in <module>
    check_subversion_version()
  File "/usr/local/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 75, in check_subversion_version
    raise BzrError('missing dependency')
NameError: global name 'BzrError' is not defined

I've rebuilt Subversion to make sure that's OK, and the build process completes for that.

Cheers,

Rich.

Revision history for this message
Launchpad Janitor (janitor) said :
#7

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Jelmer Vernooij (jelmer) said :
#8

this should no longer occur on >= 0.4.10