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

AttributeError during package import #29

Open
jtwrt opened this issue Nov 2, 2023 · 0 comments
Open

AttributeError during package import #29

jtwrt opened this issue Nov 2, 2023 · 0 comments

Comments

@jtwrt
Copy link

jtwrt commented Nov 2, 2023

My enviroment:

Python 3.11.5
pyuniprot 0.0.10
numpy 1.26.1

The issue:

When importing the package, I encounter the following error:

>>> import pyuniprot
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/mypath/miniconda3/envs/treva/lib/python3.11/site-packages/pyuniprot/__init__.py", line 15, in <module>
    from . import manager
  File "/mypath/miniconda3/envs/treva/lib/python3.11/site-packages/pyuniprot/manager/__init__.py", line 7, in <module>
    from . import database
  File "/mypath/miniconda3/envs/treva/lib/python3.11/site-packages/pyuniprot/manager/database.py", line 41, in <module>
    sqltypes.Text: np.unicode,
                   ^^^^^^^^^^
  File "/mypath/miniconda3/envs/treva/lib/python3.11/site-packages/numpy/__init__.py", line 333, in __getattr__
    raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'unicode'. Did you mean: 'unicode_'?
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

1 participant