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

numpy has no attribute float #5

Open
hgue opened this issue Jul 4, 2024 · 0 comments
Open

numpy has no attribute float #5

hgue opened this issue Jul 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hgue
Copy link

hgue commented Jul 4, 2024

Description of problem:

on application startup I get the following exception and the program won't start:

Traceback (most recent call last):
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/bin/doorstop-edit", line 5, in
from doorstop_edit.main import main
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/doorstop_edit/main.py", line 9, in
import doorstop
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/doorstop/init.py", line 8, in
from doorstop.core import (
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/doorstop/core/exporter.py", line 10, in
import openpyxl
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/openpyxl/init.py", line 4, in
from openpyxl.compat.numbers import NUMPY, PANDAS
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/openpyxl/compat/init.py", line 5, in
from .strings import (
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/openpyxl/compat/strings.py", line 10, in
from .numbers import NUMERIC_TYPES
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/openpyxl/compat/numbers.py", line 49, in
numpy.float,
^^^^^^^^^^^
File "/mnt/data/dev/src/gitlab.com/web/backend/backend-fastapi/backend/.venv/lib/python3.11/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'float'.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

Version dump:

v0.1.1

Additional information:

likely a dependency not updated (openpyxl)

@hgue hgue added the bug Something isn't working label Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant