galaxyproject / ephemeris

Library for managing Galaxy plugins - tools, index data, and workflows.
https://ephemeris.readthedocs.org/
Other
27 stars 38 forks source link

loading of API key from yaml tool file does not work #56

Closed martenson closed 6 years ago

martenson commented 6 years ago

found by @selten

I have API key set here but the installation errors. If I use . the --api_key argument, it works.

$ shed-install -t install.yaml
Traceback (most recent call last):
  File "/Users/marten/devel/ephemeris/.venv/bin/shed-install", line 11, in <module>
    sys.exit(script_main())
  File "/Users/marten/devel/ephemeris/.venv/lib/python2.7/site-packages/ephemeris/shed_install.py", line 763, in script_main
    itm = get_install_tool_manager(options)
  File "/Users/marten/devel/ephemeris/.venv/lib/python2.7/site-packages/ephemeris/shed_install.py", line 600, in get_install_tool_manager
    gi = get_galaxy_connection(options)
  File "/Users/marten/devel/ephemeris/.venv/lib/python2.7/site-packages/ephemeris/__init__.py", line 26, in get_galaxy_connection
    return gi or False
UnboundLocalError: local variable 'gi' referenced before assignment