Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When compiling rosetta 3.1.4, the following errors were found. #138

Open
Tangbbmc opened this issue Aug 30, 2024 · 2 comments
Open

When compiling rosetta 3.1.4, the following errors were found. #138

Tangbbmc opened this issue Aug 30, 2024 · 2 comments

Comments

@Tangbbmc
Copy link

dell@dell-OptiPlex-Tower-Plus-7010:~/Documents/Software/rosetta.source.release-371/main/source$ python3 ./scons.py -j30 mode=release bin extras=mpi
scons: Reading SConscript files ...
Running versioning script ... Release package detected, using rosetta/main/.release.json to acquire version information...
Done. (0.0 seconds)
./update_options.sh: line 8: python: command not found
Traceback (most recent call last):
File "/home/dell/Documents/Software/rosetta.source.release-371/main/source/SConstruct", line 196, in main
SConscript("SConscript", "build")
File "/home/dell/Documents/Software/rosetta.source.release-371/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 667, in call
return method(*args, **kw)
File "/home/dell/Documents/Software/rosetta.source.release-371/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 604, in SConscript
return _SConscript(self.fs, *files, **subst_kw)
File "/home/dell/Documents/Software/rosetta.source.release-371/main/source/external/scons-local/scons-local-3.0.4/SCons/Script/SConscript.py", line 284, in _SConscript
exec(compile(file.read(), file.name, 'exec'),
File "/home/dell/Documents/Software/rosetta.source.release-371/main/source/SConscript", line 35, in
subprocess.check_call(["./update_options.sh"])
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['./update_options.sh']' returned non-zero exit status 127.
scons: done reading SConscript files.
scons: Building targets ...
scons: `bin' is up to date.
scons: done building targets.

@roccomoretti
Copy link
Member

./update_options.sh: line 8: python: command not found is the operative error message.

The Rosetta compilation expects a Python which is installed under the name python. With recent versions of Rosetta this can be either Python2 or Python3. You probably have Python installed, but it might not be under the python command (e.g. only available under python3).

One potential fix is to add an symlink alias between python and python3 somewhere in your path. If you're on Ubuntu, the package python-is-python3 should be able to do this for you.

Alternatively, you can install Conda. Conda is a package which manages personal installations of Python and environments, and keeps them separate from the system python. By default Conda installs an alias between python and whichever installed Python version you currently have active. -- This approach would be my personal recommendation, as many of the newer ML-based modeling tools are set up to install with Conda, and if you're doing any structural biology work, you'll likely need Conda sooner or later.

@Tangbbmc
Copy link
Author

Tangbbmc commented Aug 31, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants