bzr selftest error after clean install on Mac OS X 10.5 (Leopard)

Asked by Zearin

My primary machine is my laptop, a MacBook. Recently, after installing Bazaar 1.16 using the Mac OS X installer, I ran `bzr selftest' and got a bunch of errors.

Since I have updated Python on that machine, and played around with many Bazaar plugins, I decided to try it on my desktop where I haven't altered much of anything. The desktop is an iMac running the same version of OS X as the laptop.

After running the Bazaar 1.16.1 installer on my desktop, I opened a Terminal and tried the selftest, with the following results:

******

Tonys-iMac:~ tony$ bzr selftest --verbose
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute 'TransportTestProviderAdapter'

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 729, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 924, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 560, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 3359, in run
    result = selftest(**selftest_kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/tests/__init__.py", line 3146, in selftest
    suite = test_suite(keep_only, starting_with)
  File "/Library/Python/2.5/site-packages/bzrlib/tests/__init__.py", line 3584, in test_suite
    plugin_suite = plugin.load_plugin_tests(loader)
  File "/Library/Python/2.5/site-packages/bzrlib/plugin.py", line 383, in load_plugin_tests
    return loader.loadTestsFromModule(self.module)
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 129, in loadTestsFromModule
    return load_tests(basic_tests, module, self)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/upload/__init__.py", line 421, in load_tests
    ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 92, in loadTestsFromModuleNames
    result.addTests(self.loadTestsFromModuleName(name))
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 99, in loadTestsFromModuleName
    result.addTests(self.loadTestsFromModule(module))
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 129, in loadTestsFromModule
    return load_tests(basic_tests, module, self)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/upload/tests/__init__.py", line 27, in load_tests
    ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 92, in loadTestsFromModuleNames
    result.addTests(self.loadTestsFromModuleName(name))
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 97, in loadTestsFromModuleName
    module = _load_module_by_name(name)
  File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 166, in _load_module_by_name
    module = __import__(mod_name)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/upload/tests/test_upload.py", line 45, in <module>
    test_transport_implementations.TransportTestProviderAdapter):
AttributeError: 'module' object has no attribute 'TransportTestProviderAdapter'

bzr 1.16.1 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'selftest', '--verbose']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.16]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [1.16.1]
  loom /Library/Python/2.5/site-packages/bzrlib/plugins/loom [1.4dev]
  netrc_credential_store /Library/Python/2.5/site-packages/bzrlib/plugins/netrc_credential_store [1.16.1]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.11]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.5.1]
  search /Library/Python/2.5/site-packages/bzrlib/plugins/search [1.7dev]
  svn /Library/Python/2.5/site-packages/bzrlib/plugins/svn [0.6.2]
  upload /Library/Python/2.5/site-packages/bzrlib/plugins/upload [0.1.1]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

*****

I have two questions:

1. Anything I can do to fix this, or is this one for the devs? (I don't know Python, sorry!)
2. I don't know whether it's safe to use Bazaar on my repositories right now…is this error trivial? Or potentially dangerous?

Thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
John A Meinel (jameinel) said :
#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Zearin wrote:
> Public bug reported:
>
> My primary machine is my laptop, a MacBook. Recently, after installing
> Bazaar 1.16 using the Mac OS X installer, I ran `bzr selftest' and got a
> bunch of errors.
>
> Since I have updated Python on that machine, and played around with many
> Bazaar plugins, I decided to try it on my desktop where I haven't
> altered much of anything. The desktop is an iMac running the same
> version of OS X as the laptop.
>
> After running the Bazaar 1.16.1 installer on my desktop, I opened a
> Terminal and tried the selftest, with the following results:
>
>
> ******

...

> File "/Library/Python/2.5/site-packages/bzrlib/tests/TestUtil.py", line 166, in _load_module_by_name
> module = __import__(mod_name)
> File "/Library/Python/2.5/site-packages/bzrlib/plugins/upload/tests/test_upload.py", line 45, in <module>
> test_transport_implementations.TransportTestProviderAdapter):
> AttributeError: 'module' object has no attribute 'TransportTestProviderAdapter'
>
...

> upload /Library/Python/2.5/site-packages/bzrlib/plugins/upload [0.1.1]

> I have two questions:
>
> 1. Anything I can do to fix this, or is this one for the devs? (I don't know Python, sorry!)
> 2. I don't know whether it's safe to use Bazaar on my repositories right now…is this error trivial? Or potentially dangerous?
>
> Thanks.

It is a bug in one of the plugins (bzr-upload) the resolution is:

1) use 'bzr selftest --no-plugins'
2) Get the bzr-upload people to update their test suite.
 2b) And get a new package built.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpchqMACgkQJdeBCYSNAAOVkwCdEMpc9RbafmLMIGwdWg9yifD3
YZQAn2dnqWs1K2xSg4uMIN3tkjNLW8Jk
=V4yL
-----END PGP SIGNATURE-----

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

    > 2) Get the bzr-upload people to update their test suite.

Fixed on https://code.launchpad.net/~bzr-upload-devs/bzr-upload/trunk at revno 60 on 2009-07-10.

    > 2b) And get a new package built.

Shudder, yes, that needs to be done. On the other hand, I don't
know what package is used for the OSX installer since AFAIK
bzr-upload is packaged only for debian and Ubuntu...

Note that the bug is in the plugin test suite, so it's still safe
to use the plugin.

Revision history for this message
rookie_noob (trueasiaticrick) said :
#3

 apt-get install bzr
Reading package lists... Done
Building dependency tree
Reading state information... Done

....couldnt find any package containing bzr
thanks for the help guys!

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

Turning that bug into a question is not appropriate, this is a bug in the OSX installer, that may even have been fixed as of bzr-1.18.

Can you help with this problem?

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

To post a message you must log in.