Subversion Client Libraries Upgrade

Asked by George

Hi all--

I'm on OS X 10.5. I'm using ProjectLocker, which apparently just upgraded their version of svn. Now I can't do a push--whenever, I do, it fails with this message:

Run command: bzr push
bzr: ERROR: Please upgrade your Subversion client libraries to 1.5 or higher to be able to commit with Subversion mapping v4 (current version is (1, 4, 4, ''))

I've tried upgrading my svn several ways, including:
http://www.open.collab.net/downloads/subversion/

When I do svn help, I get:
Subversion command-line client, version 1.6.5.

However, I'm still getting the error message above, which indicates that I'm on 1.4.4. How do I upgrade? Unfortunately, I don't have any developer tools installed, so I can't build subvertpy or whatever I need to upgrade.

Thanks!

George

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Subversion Plugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
George (georgebannerman) said :
#1

Hm. The plot grows thicker. I finally managed to upgrade the SVN libraries (I had forgotten to set the path), and now I get this error:

bzr: ERROR: Please upgrade your Subversion client libraries to 1.5 or higher to be able to commit with Subversion mapping v4 (current version is (1, 6, 13, ''))

It was all working fine until another person in my organization started checking things in with her Windows version of Bazaar. She can still check in, but I can't.

What should I do?

George

Revision history for this message
Martin Pool (mbp) said :
#2

Can you paste the traceback from .bzr.log please?

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

You need to recompile your subvertpy against the newer version of subversion, just having the newer version installed is not sufficient.

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

I'll improve the error message in bzr-svn, which could be a bit clearer. It currently prints the version of svn that subvertpy is running against, not the one which it was linked against.

Revision history for this message
George (georgebannerman) said :
#5

Hi Martin and Jelmer--

Thanks!

Jelmer, I think I am running subvertpy 1.6.13, hence the "(current version is (1, 6, 13, ''))"--right?

Martin, here's the traceback...

Ben

================

Wed 2010-11-24 10:26:46 -0500
0.063 bazaar version: 2.2.0
0.063 bzr arguments: [u'qsubprocess', u'--georgecode', u'l4:pushe']
0.080 looking for plugins in /Users/george/.bazaar/plugins
0.080 looking for plugins in /Library/Python/2.5/site-packages/bzrlib/plugins
0.237 encoding stdout as osutils.get_user_encoding() 'UTF-8'
0.364 bazaar version: 2.2.0
0.364 bzr arguments: [u'push']
0.367 encoding stdout as osutils.get_user_encoding() 'UTF-8'
0.395 opening working tree '/Users/george/nano_projects/website/httpdocs'
0.464 failed to import pycurl: No module named pycurl
0.464 failed to instantiate transport <bzrlib.registry._LazyObjectGetter object at 678990, module='bzrlib.transport.http._pycurl' attribute='PyCurlTransport'> for 'https://<email address hidden>:<email address hidden>/nano/www/svn': DependencyNotPresent(Unable to import library "pycurl": No module named pycurl)
0.717 bzr-svn: using Subversion 1.6.13 ()
2.903 potential branching layouts: [('root', 40)]
2.903 Guessed repository layout: RootLayout(), guess layout to use: RootLayout()
3.183 LALA https://george%<email address hidden>/nano/www/svn + https://george%<email address hidden>/nano/www/svn/ -> .
3.490 LALA https://george%<email address hidden>/nano/www/svn + https://george%<email address hidden>/nano/www/svn/ -> .
4.062 LALA https://george%<email address hidden>/nano/www/svn + https://george%<email address hidden>/nano/www/svn/ -> .
4.351 pushing '<email address hidden>' (['<email address hidden>'])
4.374 Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 911, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/qbzr/lib/commands.py", line 767, in run
    return run_subprocess_command(cmd, georgecoded)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/qbzr/lib/subprocess.py", line 869, in run_subprocess_command
    return commands.run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 1111, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 689, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 704, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 1161, in run
    use_existing_dir=use_existing_dir)
  File "/Library/Python/2.5/site-packages/bzrlib/push.py", line 139, in _show_push_branch
    remember, create_prefix)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/remote.py", line 263, in push_branch
    overwrite=overwrite)
  File "/Library/Python/2.5/site-packages/bzrlib/branch.py", line 1077, in push
    *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/branch.py", line 1016, in push
    override_svn_revprops=_override_svn_revprops)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/branch.py", line 926, in _update_revisions
    push_merged, overwrite=overwrite)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/push.py", line 217, in push_branch
    overwrite=overwrite)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/push.py", line 239, in push
    override_svn_revprops=target_config.get_override_svn_revprops())
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/push.py", line 143, in push_revision_tree
    override_svn_revprops=override_svn_revprops)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/commit.py", line 486, in __init__
    raise BzrError("Please upgrade your Subversion client libraries to 1.5 or higher to be able to commit with Subversion mapping %s (current version is %r)" % (self.mapping.name, ra.version()))
BzrError: Please upgrade your Subversion client libraries to 1.5 or higher to be able to commit with Subversion mapping v4 (current version is (1, 6, 13, ''))

Revision history for this message
George (georgebannerman) said :
#6

I've completely rebuilt my Bazaar, and it still doesn't work. At least I get a different error, though. It's:

Run command: bzr push --create-prefix --use-existing-dir
Using saved push location: https://<email address hidden>:<email address hidden>/nano/www/svn
bzr: ERROR: Transport operation not possible: http does not support mkdir()

Of course, the error is confusing, as I'm in fact trying to connect with https. (The create-prefix and the use-existing-dir are on, just in the off chance it would work with them on. It didn't. I also tried it with them off.

Stack trace below.

Thanks!

Thu 2010-11-25 04:02:04 -0500
0.067 bazaar version: 2.2.1
0.067 bzr arguments: [u'qsubprocess', u'--georgecode', u'l4:push15:--create-prefix18:--use-existing-dire']
0.087 looking for plugins in /Users/george/.bazaar/plugins
0.087 looking for plugins in /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins
0.151 encoding stdout as osutils.get_user_encoding() 'UTF8'
0.243 bazaar version: 2.2.1
0.243 bzr arguments: [u'push', u'--create-prefix', u'--use-existing-dir']
0.246 encoding stdout as osutils.get_user_encoding() 'UTF8'
0.323 opening working tree '/Users/george/nano_projects/website/httpdocs'
0.400 failed to import pycurl: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycurl.so, 2): Library not loaded: /opt/local/lib/libcurl.4.dylib
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycurl.so
  Reason: Incompatible library version: pycurl.so requires version 7.0.0 or later, but libcurl.4.dylib provides version 5.0.0
0.400 failed to instantiate transport <bzrlib.registry._LazyObjectGetter object at 11e7c38, module='bzrlib.transport.http._pycurl' attribute='PyCurlTransport'> for 'https://<email address hidden>:<email address hidden>/nano/www/svn': DependencyNotPresent(Unable to import library "pycurl": dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycurl.so, 2): Library not loaded: /opt/local/lib/libcurl.4.dylib
  Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycurl.so
  Reason: Incompatible library version: pycurl.so requires version 7.0.0 or later, but libcurl.4.dylib provides version 5.0.0)
1.856 opening working tree '/Users/george/nano_projects/website/httpdocs'
1.876 Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/qbzr/lib/commands.py", line 767, in run
    return run_subprocess_command(cmd, georgecoded)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/plugins/qbzr/lib/subprocess.py", line 870, in run_subprocess_command
    return commands.run_bzr(argv)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/builtins.py", line 1161, in run
    use_existing_dir=use_existing_dir)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/push.py", line 90, in _show_push_branch
    create_prefix=create_prefix, use_existing_dir=use_existing_dir)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/branch.py", line 1393, in create_clone_on_transport
    create_prefix=create_prefix, use_existing_dir=use_existing_dir)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 288, in clone_on_transport
    make_working_trees=make_working_trees, shared_repo=want_shared)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 2072, in initialize_on_transport_ex
    make_working_trees=make_working_trees, shared_repo=shared_repo)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 3379, in initialize_on_transport_ex
    vfs_only=True)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 2084, in initialize_on_transport_ex
    redirected)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/transport/__init__.py", line 1657, in do_catching_redirections
    return action(transport)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/bzrdir.py", line 2077, in make_directory
    transport.mkdir('.')
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/bzrlib/transport/http/__init__.py", line 369, in mkdir
    raise errors.TransportNotPossible('http does not support mkdir()')
TransportNotPossible: Transport operation not possible: http does not support mkdir()

1.876 Transferred: 4kB (3.6kB/s r:3kB w:1kB)
1.876 return code 3

Revision history for this message
Vincent Ladeuil (vila) said :
#7

There is an installer for OSX 10.5 at https://edge.launchpad.net/bzr/+download

Could retry with that so we can both speak about the same versions of the same plugins ?

Feel free to chose between the stable 2.2.1 one and the beta 2.2b3, as long as you mention which one you're using.

'http does not support mkdir()' indicates that bzr didn't find an appropriate server there which means that only read-only operations can be performed (since the http server is therefore used a so-called 'dumb' server).

If there *is* an svn server configured there, then running the same command with an additional '-Dhttp' parameter will output the http requests/answers in '.bzr.log' ('bzr version' will tell you where it's located). From that we may better understand what is happening.

Also, when tracebacks are involved, it's often easier to track the issue in a bug instead of an answer (as you did with bug #681285 which drove me here ;)

Can you help with this problem?

Provide an answer of your own, or ask George for more information if necessary.

To post a message you must log in.