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

[BUGFIX] Fix numpy error #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

td-sclemens
Copy link
Contributor

With the latest commit, numpy was updated to 2.0.0 in Pipfile.lock, which leads to this error for me:

dawis_debug  | Traceback (most recent call last):
dawis_debug  |   File "/app/module-debugger.py", line 1, in <module>
dawis_debug  |     from database.connection import Connection
dawis_debug  |   File "/app/database/__init__.py", line 1, in <module>
dawis_debug  |     from database.bigquery import BigQuery
dawis_debug  |   File "/app/database/bigquery.py", line 8, in <module>
dawis_debug  |     from google.cloud import bigquery
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/google/cloud/bigquery/__init__.py", line 35, in <module>
dawis_debug  |     from google.cloud.bigquery.client import Client
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/google/cloud/bigquery/client.py", line 61, in <module>
dawis_debug  |     from google.cloud.bigquery_storage_v1.services.big_query_read.client import (
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/google/cloud/bigquery_storage_v1/__init__.py", line 23, in <module>
dawis_debug  |     from google.cloud.bigquery_storage_v1 import client, types
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/google/cloud/bigquery_storage_v1/client.py", line 26, in <module>
dawis_debug  |     from google.cloud.bigquery_storage_v1 import reader
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/google/cloud/bigquery_storage_v1/reader.py", line 30, in <module>
dawis_debug  |     import pandas
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/__init__.py", line 22, in <module>
dawis_debug  |     from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/compat/__init__.py", line 18, in <module>
dawis_debug  |     from pandas.compat.numpy import (
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/compat/numpy/__init__.py", line 4, in <module>
dawis_debug  |     from pandas.util.version import Version
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/util/__init__.py", line 2, in <module>
dawis_debug  |     from pandas.util._decorators import (  # noqa:F401
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/util/_decorators.py", line 14, in <module>
dawis_debug  |     from pandas._libs.properties import cache_readonly
dawis_debug  |   File "/usr/local/lib/python3.9/site-packages/pandas/_libs/__init__.py", line 13, in <module>
dawis_debug  |     from pandas._libs.interval import Interval
dawis_debug  |   File "pandas/_libs/interval.pyx", line 1, in init pandas._libs.interval
dawis_debug  | ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I found here, that this has to do with the 2.0.0 version of numpy: numpy/numpy#26710

Thats why I locked the numpy version. If pandas is updated to a higher version later, we can probably remove the numpy lock again.

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

Successfully merging this pull request may close these issues.

1 participant