You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed gnomad_python_api according to the instructions (i.e., git clone followed by pip install from requirements.txt). However, the first example I copied from the README yields the following error:
$ python gnomad_api_cli.py -filter_by=gene_name -search_by="BRCA1" -dataset="gnomad_r2_1" -sv_dataset="gnomad_sv_r2_1"
Traceback (most recent call last):
File "/Users/wnoble/software/gnomad_python_api/gnomad_api_cli.py", line 10, in <module>
from pandas.io.json import json_normalize as json_normalize
ImportError: cannot import name 'json_normalize' from 'pandas.io.json' (/opt/homebrew/Caskroom/miniconda/base/envs/gnomad/lib/python3.10/site-packages/pandas/io/json/__init__.py)
I suspect there may be a version mismatch problem w.r.t. pandas. Here is what I get from conda list:
Just change : from pandas.io.json import json_normalize as json_normalize
Into from pandas import json_normalize
This API is outdated and requires a proper update.
I just installed gnomad_python_api according to the instructions (i.e., git clone followed by pip install from requirements.txt). However, the first example I copied from the README yields the following error:
I suspect there may be a version mismatch problem w.r.t. pandas. Here is what I get from
conda list
:What version of pandas do you use? I am using python 3.10.
The text was updated successfully, but these errors were encountered: