You'll need to configure your Python 2.6 to include mercurial.  You can do something like 

easy_install -U mercurial

but there are other approaches as well.


On Mar 23, 2012, at 10:33 AM, Joachim Jacob wrote:

Hi all,


In order to ease sharing the developed Galaxy tools in our group, we want to launch a private Toolshed.

However, upon running ./run_community.sh, I got following error.

Traceback (most recent call last):
 File "./scripts/paster.py", line 34, in <module>
   command.run()
 File "/home/galaxy/galaxy-dist/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 84, in run
   invoke(command, command_name, options, args[1:])
 File "/home/galaxy/galaxy-dist/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 123, in invoke
   exit_code = runner.run(args)
 File "/home/galaxy/galaxy-dist/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/command.py", line 218, in run
   result = self.command()
File "/home/galaxy/galaxy-dist/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 276, in command
   relative_to=base, global_conf=vars)
 File "/home/galaxy/galaxy-dist/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/serve.py", line 313, in loadapp
   **kw)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 204, in loadapp
   return loadobj(APP, uri, name=name, **kw)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 224, in loadobj
   global_conf=global_conf)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 248, in loadcontext
   global_conf=global_conf)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 278, in _loadconfig
   return loader.get_context(object_type, name, global_conf)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 413, in get_context
   section)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 458, in _context_from_explicit
   value = import_string(found_expr)
 File "/home/galaxy/galaxy-dist/eggs/PasteDeploy-1.3.3-py2.6.egg/paste/deploy/loadwsgi.py", line 18, in import_string
   return pkg_resources.EntryPoint.parse("x="+s).load(False)
 File "/home/galaxy/galaxy-dist/lib/pkg_resources.py", line 1954, in load
   entry = __import__(self.module_name, globals(),globals(), ['__name__'])
 File "/home/galaxy/galaxy-dist/lib/galaxy/webapps/community/buildapp.py", line 16, in <module>
   import galaxy.webapps.community.model
 File "/home/galaxy/galaxy-dist/lib/galaxy/webapps/community/model/__init__.py", line 12, in <module>
   from mercurial import hg, ui
ImportError: No module named mercurial
Removing PID file community_webapp.pid

What I understand, there is a conflict between Python2.6 (manually installed under /opt) and Python2.4 (system-wide version). In version 2.6, I do not have mercurial available apparently.

Any hint about a fix?


Kind regards,
Joachim

--
Joachim Jacob, PhD

Rijvisschestraat 120, 9052 Zwijnaarde
Tel: +32 9 244.66.34
Bioinformatics Training and Services (BITS)
http://www.bits.vib.be
@bitsatvib


___________________________________________________________
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:

http://lists.bx.psu.edu/