Hello all,

While trying to install the Glimmer3 wrapper from the Tool Shed
I noticed some very wrong looking paths, including this warning
at the terminal where run.sh was open,

Warning: local() encountered an error (return code 1) while executing
export PYTHONPATH' >

>From my configuration file,

$ grep tool_dependency_dir universe_wsgi.ini
tool_dependency_dir = "../galaxy-dist-shed-tools"

Installation of the dependencies failed. I removed the quotes in the
tool_dependency_dir setting, restarted Galaxy, uninstalled Glimmer3
and the Biopython dependency, and then re-installed Glimmer3.

This time the paths in the terminal looked sensible, although there was
still a warning:

Warning: local() encountered an error (return code 255) while
executing 'export

I think that is related to the currently broken dependency issue I
mentioned here:

I would expect Galaxy to strip the quotes (after all, they are commonly
used to escape filenames with spaces). Perhaps it is but doing so
inconsistently? It appears Python's path checking is a bit odd here:

$ python
Python 2.7.2 (default, Aug  6 2013, 16:54:30)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> p = '../galaxy-dist-shed-tools'
>>> q = '"../galaxy-dist-shed-tools"'
>>> os.path.isfile(p)
>>> os.path.isfile(q)
>>> os.path.join(os.path.curdir, p)
>>> os.path.join(os.path.curdir, q)
>>> os.path.isdir(os.path.join(os.path.curdir, p))
>>> os.path.isdir(os.path.join(os.path.curdir, q))
>>> os.path.abspath(p)
>>> os.path.abspath(q)
>>> os.path.isdir(os.path.abspath(p))
>>> os.path.isdir(os.path.abspath(q))
>>> quit()

This feels like a bug in the Python os module to me?

Anyway, a quick hack to fix this would be to strip the quotes
when loading file or path names from the configuration file -
or abort with a clear error telling the user to remove them?

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:

To search Galaxy mailing lists use the unified search at:

Reply via email to