You are here

Install Error in Google Colab

3 posts / 0 new
Last post
Install Error in Google Colab


PyRosetta is being tested one by one in Google Collaboration. "01.02-PyRosetta-Google-Drive-Usage-Example.ipynb"

When I checked the file above while running it on Google Collabor, I got an error as below.

The previous 01.01 went well without errors, but the error comes out as below.
(version is PyRosetta4.MinSizeRel.python37.linux.release-332.tar. )

Please look down and give me your opinion.

- OS type :  Windows
- OS version : 10
- OS arch (32 or 64bit) : 64bit

- Python version : 3.7
- Python arch (32 or 64bit) if different from OS



# Notebook setup

import sys

if 'google.colab' in sys.modules:

    !pip install pyrosettacolabsetup

    import pyrosettacolabsetup


    print ("Notebook is set for PyRosetta use in Colab.  Have fun!")


Looking in indexes:,
Collecting pyrosettacolabsetup
  Downloading pyrosettacolabsetup-1.0.6-py3-none-any.whl (4.7 kB)
Installing collected packages: pyrosettacolabsetup
Successfully installed pyrosettacolabsetup-1.0.6
AttributeError                            Traceback (most recent call last)
<ipython-input-2-dcbe4bc00f39> in <module>
      4     get_ipython().system('pip install pyrosettacolabsetup')
      5     import pyrosettacolabsetup
----> 6     pyrosettacolabsetup.setup()
      7     print ("Notebook is set for PyRosetta use in Colab.  Have fun!")

AttributeError: module 'pyrosettacolabsetup' has no attribute 'setup'
Post Situation: 
Sun, 2022-10-16 21:09

The correct way is:

!pip install pyrosettacolabsetup
import pyrosettacolabsetup; pyrosettacolabsetup.install_pyrosetta()


Mon, 2022-10-17 06:27

Thanks for your comment!

I solved problem. ;)

Mon, 2022-10-17 21:48