Question: Galaxy production server virtualenv
0
gravatar for jasperkoehorst
14 months ago by
Netherlands
jasperkoehorst10 wrote:

I might have found a solution: https://github.com/galaxyproject/galaxy-hub/pull/309

I am trying to set up galaxy according to the production server page:

https://galaxyproject.org/admin/config/performance/production-server/

It immeadiatly goes wrong at the second step:

nate@weyerbacher% wget http://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py nate@weyerbacher% /usr/bin/python2.7 virtualenv.py --no-site-packages galaxy_env

I get a long error list regarding the virtual env. But I also realised that this code tip is from 2011? Is this still correct?

New python executable in galaxy_env/bin/python2.7
Not overwriting existing python script galaxy_env/bin/python (you must use galaxy_env/bin/python2.7)
Installing setuptools............................................
  Complete output from command /home/galaxy/galaxy_env/bin/python2.7 -c "#!python
\"\"\"Bootstrap setuptoo...




" --always-copy -U setuptools:
  Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
Searching for setuptools
Reading http://pypi.python.org/simple/setuptools/
Best match: setuptools 36.5.0
Downloading https://pypi.python.org/packages/a4/c8/9a7a47f683d54d83f648d37c3e180317f80dc126a304c45dc6663246233a/setuptools-36.5.0.zip#md5=704f500dd55f4bd0be905444f3ba892c
Processing setuptools-36.5.0.zip
Running setuptools-36.5.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-0SwZTb/setuptools-36.5.0/egg-dist-tmp-gHdhr1
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'src_root'
  warnings.warn(msg)
Traceback (most recent call last):
  File "<string>", line 278, in <module>
  File "<string>", line 213, in main
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1712, in main
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1700, in with_ei_usage
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 1716, in <lambda>
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 211, in run
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 62, in run_setup
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 105, in run
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/sandbox.py", line 64, in <lambda>
  File "setup.py", line 188, in <module>
  File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 264, in __init__
  File "/usr/lib/python2.7/distutils/dist.py", line 287, in __init__
    self.finalize_options()
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/setuptools/dist.py", line 297, in finalize_options
  File "/home/galaxy/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1959, in load
ImportError: <module 'setuptools.dist'="" from="" '="" home="" galaxy="" setuptools-0.6c11-py2.7.egg="" setuptools="" dist.py'=""> has no 'check_specifier' attribute
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
  File "virtualenv.py", line 1649, in <module>
    main()
  File "virtualenv.py", line 558, in main
    prompt=options.prompt)
  File "virtualenv.py", line 654, in create_environment
    install_setuptools(py_executable, unzip=unzip_setuptools)
  File "virtualenv.py", line 384, in install_setuptools
    _install_req(py_executable, unzip)
  File "virtualenv.py", line 360, in _install_req
    cwd=cwd)
  File "virtualenv.py", line 624, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/galaxy/galaxy_env/bin/python2.7 -c "#!python
\"\"\"Bootstrap setuptoo...




" --always-copy -U setuptools failed with error code 1
production galaxy • 449 views
ADD COMMENTlink modified 14 months ago by Jennifer Hillman Jackson25k • written 14 months ago by jasperkoehorst10
0
gravatar for Jennifer Hillman Jackson
14 months ago by
United States
Jennifer Hillman Jackson25k wrote:

Hello,

Thanks for the pull request fix and for posting back here! Please continue with the testing/troubleshooting at GitHub for any fine tuning (if needed).

For others that may encounter the same problem going forward: Please track status using the link at the top of the original post question above. The change was incorporated into the Galaxy master branch and will probably be included in the next stable release.

Thanks! Jen, Galaxy team

ADD COMMENTlink written 14 months ago by Jennifer Hillman Jackson25k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 169 users visited in the last hour