Skip to content

error #21

@florencevinson

Description

@florencevinson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions