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

error #21

Open
florencevinson opened this issue Oct 26, 2021 · 0 comments
Open

error #21

florencevinson opened this issue Oct 26, 2021 · 0 comments

Comments

@florencevinson
Copy link

before it worked and now I have an error

mycode :
import libchebipy as libchebi
mol_chebi_entity = libchebi.ChebiEntity("CHEBI:63859")
print (mol_chebi_entity)

error:
File ".\test_libchebi.py", line 3, in
mol_chebi_entity = libchebi.ChebiEntity("CHEBI:63859")
File "C:\Python38\lib\site-packages\libchebipy_chebi_entity.py", line 30, in init
if self.get_name() is None:
File "C:\Python38\lib\site-packages\libchebipy_chebi_entity.py", line 93, in get_name
name = parsers.get_name(self.__chebi_id)
File "C:\Python38\lib\site-packages\libchebipy_parsers.py", line 242, in get_name
__parse_compounds()
File "C:\Python38\lib\site-packages\libchebipy_parsers.py", line 320, in __parse_compounds
else int(tokens[9 if len(tokens) > 9 else 8])
ValueError: invalid literal for int() with base 10: 'MetaboLights'

before it worked and now

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

1 participant