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

import error in AF_cluster colab notebook #12

Open
palvinaveen opened this issue Jan 3, 2024 · 2 comments
Open

import error in AF_cluster colab notebook #12

palvinaveen opened this issue Jan 3, 2024 · 2 comments

Comments

@palvinaveen
Copy link

Hi,
while executing the colab notebook following error is coming
ImportError: cannot import name 'SCOPData' from 'Bio.Data' (/usr/local/lib/python3.10/dist-packages/Bio/Data/init.py)
could you help me out why it cannot import SCOPData in colab notebook.
ImportError: cannot import name 'SCOPData' from 'Bio Data

ImportError Traceback (most recent call last)
in <cell line: 17>()
15
16 from alphafold.model import model, config, data
---> 17 from alphafold.data import parsers, pipeline
18 from alphafold.common import protein
19

2 frames
/content/alphafold/alphafold/data/mmcif_parsing.py in
22 from absl import logging
23 from Bio import PDB
---> 24 from Bio.Data import SCOPData
25
26 # Type aliases:

ImportError: cannot import name 'SCOPData' from 'Bio.Data' (/usr/local/lib/python3.10/dist-packages/Bio/Data/init.py)

Thank you
Best
Naveen

@hiyata
Copy link

hiyata commented Jan 6, 2024

Hi @palvinaveen the package is depreciated, but I was able to solve this by uninstalling biopython and reinstalling an older version. I made two cells.

First:

!pip uninstall biopython

Next:

!pip install http://biopython.org/DIST/biopython-1.81.tar.gz

Restart the runtime when prompted and then the cell should run!

@AhmedHassanin-IPB
Copy link

I did the same with older version of biopython==1.78, and now is working.

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

3 participants