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

biothings - client version 0.4.0 incompatebility #160

Open
yoavkt opened this issue Jan 12, 2025 · 1 comment
Open

biothings - client version 0.4.0 incompatebility #160

yoavkt opened this issue Jan 12, 2025 · 1 comment
Assignees

Comments

@yoavkt
Copy link

yoavkt commented Jan 12, 2025

Freshly installing mygene.info I recived the following error:

Traceback (most recent call last):
  File "/home/runner/work/gene-benchmark/gene-benchmark/scripts/tasks_retrieval/gene2gene_task_creation.py", line 25, in <module>
    from gene_benchmark.tasks import dump_task_definitions
  File "/home/runner/work/gene-benchmark/gene-benchmark/gene_benchmark/tasks.py", line 12, in <module>
    from gene_benchmark.descriptor import (
  File "/home/runner/work/gene-benchmark/gene-benchmark/gene_benchmark/descriptor.py", line 5, in <module>
    import mygene
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/mygene/__init__.py", line 6, in <module>
    from biothings_client import alwayslist, get_client
ImportError: cannot import name 'alwayslist' from 'biothings_client' (/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/biothings_client/__init__.py)

The fresh installation uses biothings_client version 0.4.0, released on 2025/01/10). once I downgraded the biothings_client to the previous version (v0.3.1 released on 2023/11/13) the error stopped.

@ctrl-schaff
Copy link
Contributor

Hey @yoavkt thanks for the report. I believe the repository you were utilizing is this one with a similar name. I just released an update to the biothings-client. This should fix the issues you are seeing, but if not let me know. I would also recommend in the future migrating to the biothings-client package as we will likely deprecate the mygene.py repository in the future. If anything comes up please let me know and I'll attempt to address it. Linking the parallel issue in that repository as well

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

2 participants