biothings / mygene.py

mygene is an easy-to-use Python wrapper to access MyGene.Info services.
Other
82 stars 13 forks source link

TypeError on importing mygene #21

Closed ag1805x closed 1 year ago

ag1805x commented 2 years ago

While calling for mygene in jupyter notebook, I am getting the following error:

import mygene
TypeError: Invalid first argument to `register()`. ForwardRef('CachedResponse') is not a class.

This is a new issue since I had previously the package on the same notebook until December 2021 successfully. It is only now when I tried to rerun, I encountered the error.

newgene commented 2 years ago

@ag1805x can you provide the full traceback error and other relevant information (package and Python version, OS etc)? Or give it a try directly in a Python console to see if you have the same error?

This error msg does not look like coming from the mygene package itself, but could be from its dependencies.

newgene commented 1 year ago

close this issue now as we cannot reproduce the described error.