I've been running unit tests on the latest galaxy-central 7294:663e03e40c86 
that have me this error:

[localhost] out: 
[localhost] out: ERROR: Failure: ImportError (cannot import name 
[localhost] out: 
[localhost] out: Traceback (most recent call last):
[localhost] out:   File 
 line 379, in loadTestsFromName
[localhost] out:     addr.filename, addr.module)
[localhost] out:   File 
 line 39, in importFromPath
[localhost] out:     return self.importFromDir(dir_path, fqname)
[localhost] out:   File 
 line 86, in importFromDir
[localhost] out:     mod = load_module(part_fqname, fh, filename, desc)
[localhost] out:   File 
 line 10, in <module>
[localhost] out:     from galaxy.tool_shed.migrate.common import *
[localhost] out:   File 
 line 9, in <module>
[localhost] out:     from galaxy.tool_shed import install_manager
[localhost] out: ImportError: cannot import name install_manager

[localhost] out: 

I fixed it by commenting out the circular import in tool_shed/

hg diff
diff -r 663e03e40c86 lib/galaxy/tool_shed/
--- a/lib/galaxy/tool_shed/   Wed Jun 20 03:39:05 2012 -0400
+++ b/lib/galaxy/tool_shed/   Wed Jun 20 16:37:06 2012 +0100
@@ -7,7 +7,7 @@
 from galaxy.util.json import from_json_string, to_json_string
 from galaxy.util.shed_util import *
 from galaxy.util.odict import odict
-from galaxy.tool_shed.migrate.common import *
+#from galaxy.tool_shed.migrate.common import *

Hope it would be useful to someone else.
Kind regards,
Anne Pajon, Ph.D.
Cancer Research UK - Cambridge Research Institute
Li Ka Shing Centre, Robinson Way, Cambridge CB2 0RE | +44 (0)1223 404 334

This e-mail (including any attachments) is intended for the above-named 
person(s). If you are not the intended recipient, notify the sender 
immediately, delete this email from your system and do not disclose or use for 
any purpose. 

We may monitor all incoming and outgoing emails in line with current 
legislation. We have taken steps to ensure that this email and attachments are 
free from any virus, but it remains your responsibility to ensure that viruses 
do not adversely affect you. 
Cancer Research UK
Registered in England and Wales
Company Registered Number: 4325234.
Registered Charity Number: 1089464 and Scotland SC041666
Registered Office Address: Angel Building, 407 St John Street, London EC1V 4AD.

Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

Reply via email to