require_api_version errors are confusing
Bug #319955 reported by
Jelmer Vernooij
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
affects bzr
require_
API is not up to date, e.g.:
bzr: ERROR: The API for "<module 'bzrlib' from
'/usr/lib/
compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1,
12, 0)".
In this particular case, it's bzr-svn that's calling the function but
that's very hard to tell.
--
Jelmer Vernooij <email address hidden> - http://
Jabber: <email address hidden>
Changed in bzr: | |
status: | New → Confirmed |
tags: | added: check-for-breezy |
tags: | removed: check-for-breezy |
To post a comment you must log in.
For instance, with bzr 1.12dev (bzr.dev revno:3951), a plugin that requires API version 1.10 produces this backtrace with '-Derror':
cdb@gamma ~/code/ bzr/work/ bzrlib $ bzr st -Derror errors. IncompatibleAPI : The API for "<module 'bzrlib' from '/home/ cdb/bin/ bzr.dev/ bzrlib/ __init_ _.pyc'> " is not compatible with "(1, 10, 0)". It supports versions "(1, 11, 0)" to "(1, 12, 0)".
bzr: ERROR: bzrlib.
Traceback (most recent call last): cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 893, in run_bzr_ catch_errors cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 839, in run_bzr cdb/.bazaar/ plugins/ loom/commands. py", line 172, in run_argv_aliases _original_ command( ).run_argv_ aliases( argv, alias_argv) cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 539, in run_argv_aliases **all_cmd_ args) cdb/bin/ bzr.dev/ bzrlib/ commands. py", line 853, in ignore_pipe cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 215, in run file_list) cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 64, in tree_files tree_files( file_list, default_branch, canonicalize) cdb/bin/ bzr.dev/ bzrlib/ builtins. py", line 105, in internal_tree_files open_containing (default_ branch) [0], file_list cdb/bin/ bzr.dev/ bzrlib/ workingtree. py", line 331, in open_containing BzrDir. open_containing (path) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 844, in open_containing open_containing _from_transport (transport) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 865, in open_containing _from_transport open_from_ transport( a_transport) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 819, in open_from_transport cdb/bin/ bzr.dev/ bzrlib/ lazy_import. py", line 125, in __call__ cdb/bin/ bzr.dev/ bzrlib/ transport/ __init_ _.py", line 1680, in do_catching_ redirections cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 806, in find_format formats= _server_ formats) cdb/bin/ bzr.dev/ bzrlib/ bzrdir. py", line 1645, in find_format probe_transport (transport) cdb/.bazaar/ plugins/ svn/format. py", line 71, in probe_transport cdb/.bazaar/ plugins/ svn/format. py", line 61, in __init__ check_versions( ) cdb/.bazaar/ plugins/ svn/__init_ _.py", line 137, in lazy_check_versions api.require_ any_api( bzrlib, COMPATIBLE_ BZR_VERSIONS) cdb/bin/ bzr.dev/ bzrlib/ api.py" , line 104, in require_any_api api(object_ with_api, wanted_ api_list[ -1]) cdb/bin/ bzr.dev/ bzrlib/ api.py" , line 82, in require_api (object_ with_api, wanted_api, minimum, current) cdb/bin/ bzr.dev/ bzrlib/ __init_ _.pyc'> " is not compatible with "(1, 10, 0)". It supports versi...
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
self.
File "/home/
return self.run(
File "/home/
result = func(*args, **kwargs)
File "/home/
tree, relfile_list = tree_files(
File "/home/
return internal_
File "/home/
return WorkingTree.
File "/home/
control, relpath = bzrdir.
File "/home/
return BzrDir.
File "/home/
result = BzrDir.
File "/home/
redirected)
File "/home/
return obj(*args, **kwargs)
File "/home/
return action(transport)
File "/home/
transport, _server_
File "/home/
return format.
File "/home/
format = klass()
File "/home/
lazy_
File "/home/
bzrlib.
File "/home/
require_
File "/home/
raise IncompatibleAPI
IncompatibleAPI: The API for "<module 'bzrlib' from '/home/