You are here

PyRosetta Build on Ubuntu 18.04

1 post / 0 new
PyRosetta Build on Ubuntu 18.04
#1

Hello everyone,

I want to draw your attention that I am failing to build PyRosetta on the new Ubuntu 18.04 (released last week).

My setup:

  • Ubuntu Linux 18.04 64bit (server)
  • Python 3.6.5
  • PyRosetta 4 python36 ubuntu release 177

 

I build as per the documented method (which works in older Linux versions):

  • tar -vjxf {PYROSETTA}.tar.bz2
  • sudo python3 {PYROSETTA}/setup/setup.py install

But I get the following error:

Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    import ez_setup
  File "/root/PyRosetta4.Release.python36.ubuntu.release-177/setup/ez_setup.py", line 24, in <module>
    from distutils import log
ImportError: cannot import name 'log'

 

I attempt to fix this error by reinstalling distutils  through sudo apt install python3-distutils at which point I get this error:

Traceback (most recent call last):
  File "setup.py", line 18, in <module>
    exec(init_file.read(), command_ns)
  File "<string>", line 8, in <module>
  File "/tmp/tmpuvw_51ko/setuptools-3.3/setuptools/__init__.py", line 12, in <module>
    from setuptools.extension import Extension
  File "/tmp/tmpuvw_51ko/setuptools-3.3/setuptools/extension.py", line 7, in <module>
    from setuptools.dist import _get_unpatched
  File "/tmp/tmpuvw_51ko/setuptools-3.3/setuptools/dist.py", line 16, in <module>
    import pkg_resources
  File "/tmp/tmpuvw_51ko/setuptools-3.3/pkg_resources.py", line 1479, in <module>
    register_loader_type(importlib_bootstrap.SourceFileLoader, DefaultProvider)
AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'
/root/PyRosetta4.Release.python36.ubuntu.release-177/setup/setuptools-3.3-py3.6.egg
Traceback (most recent call last):
  File "setup.py", line 5, in <module>
    ez_setup.use_setuptools("3.3")
  File "/root/PyRosetta4.Release.python36.ubuntu.release-177/setup/ez_setup.py", line 189, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "/root/PyRosetta4.Release.python36.ubuntu.release-177/setup/ez_setup.py", line 141, in _do_download
    _build_egg(egg, archive, to_dir)
  File "/root/PyRosetta4.Release.python36.ubuntu.release-177/setup/ez_setup.py", line 79, in _build_egg
    raise IOError('Could not build the egg.')
OSError: Could not build the egg.

 

I hope you guys can explain what is going on and how to overcome these errors.

 

 

 - - UPDATE - -

I spent the last 2 days looking into this and I tried to install PyRosetta4 python 3.6 release 175 176 177 on different linux server distros and they all failed (red hat, debian, ubuntu 16.04/17.10/18.04, and arch), I used the respective release for each distro: ubuntu release with ubuntu and debian, linux release with the others.

What did work perfectly was PyRosetta4 python 3.5 (everywhere), so could it be a problem between python 3.5 and 3.6? I don't know I am just relaying my observations.

Category: 
Post Situation: 
Mon, 2018-04-30 22:35
ac.research