Skip to content

README examples broken, can't figure out how to use the library #19

@anandijain

Description

@anandijain

Hello, thank you for this library.

I have pip installed this as the documentation says. However, the following example from the readme

from libchebipy._chebi_entity import ChebiEntity
chebi_entity = ChebiEntity(15903, download_dir="/path/to/directory")

gives TypeError: __init__() got an unexpected keyword argument 'download_dir'
so when I remove this kwarg, I get AttributeError: 'int' object has no attribute 'replace' because it expects a string, so then when I run chebi_entity = ChebiEntity("15903") I get ChebiException: ChEBI id 15903 invalid.

How do I actually use this library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions