datasets icon indicating copy to clipboard operation
datasets copied to clipboard

Cannot find reference 'GeneApi' in '__init__.py'

Open zivlang opened this issue 2 years ago • 2 comments

Hello. After installing the python package "ncbi-datasets-pylib" I tried using one of the example codes. One of the lines in the code is from ncbi.datasets.openapi import GeneApi as DatasetsGeneApi, GenApi in this line gets the error message: "Cannot find reference 'GeneApi' in 'init.py'". Is this API under construction as of now?

zivlang avatar Nov 18 '21 08:11 zivlang

Hi Zivlang,

Thanks for trying the NCBI Datasets python package and thanks for your feedback.

One of the lines in the code is from ncbi.datasets.openapi import GeneApi as DatasetsGeneApi

This is a documentation error. The correct code is: from ncbi.datasets.openapi.api.gene_api import GeneApi

Thanks for the report. We will update the documentation as soon as possible.

Best, Eric

Eric Cox, PhD [Contractor] (he/him/his) NCBI Datasets Sequence Enhancements, Tools and Delivery (SeqPlus) NIH/NLM/NCBI [email protected]

ericcox1 avatar Nov 18 '21 23:11 ericcox1

Great. Thanks.

בתאריך יום ו׳, 19 בנוב׳ 2021, 01:48, מאת Eric Cox @.***

:

Hi Zivlang,

Thanks for trying the NCBI Datasets python package and thanks for your feedback.

One of the lines in the code is from ncbi.datasets.openapi import GeneApi as DatasetsGeneApi

This is a documentation error. The correct code is: from ncbi.datasets.openapi.api.gene_api import GeneApi

Thanks for the report. We will update the documentation as soon as possible.

Best, Eric

Eric Cox, PhD [Contractor] (he/him/his) NCBI Datasets Sequence Enhancements, Tools and Delivery (SeqPlus) NIH/NLM/NCBI @.***

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ncbi/datasets/issues/74#issuecomment-973470065, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALBF75YCDHAQ7JHZEV4HRIDUMWGGHANCNFSM5II6SHXA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

zivlang avatar Nov 19 '21 06:11 zivlang