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

Querybook fails to start up - Numpy update #1463

Open
kousiksundara opened this issue Jun 18, 2024 · 0 comments
Open

Querybook fails to start up - Numpy update #1463

kousiksundara opened this issue Jun 18, 2024 · 0 comments

Comments

@kousiksundara
Copy link

kousiksundara commented Jun 18, 2024

Numpy released a new version a couple days ago: https://github.com/numpy/numpy/releases/tag/v2.0.0
As part of it, it has made breaking changes Alias np.float_ has been removed. Use np.float64 instead.

Building the dockerfile and running causes the following error:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
ERROR [alembic.util.messaging] Can't locate revision identified by '8996bf11227d'
FAILED: Can't locate revision identified by '8996bf11227d'
Traceback (most recent call last):
  File "/app/querybook/server/scripts/init_es.py", line 1, in <module>
    from logic.elasticsearch import create_indices_if_not_exist
  File "/app/querybook/server/logic/elasticsearch.py", line 13, in <module>
    from lib.elasticsearch.search_utils import (
  File "/app/querybook/server/lib/elasticsearch/search_utils.py", line 3, in <module>
    from elasticsearch import Elasticsearch, RequestsHttpConnection
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/__init__.py", line 36, in <module>
    from .client import Elasticsearch
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/client/__init__.py", line 23, in <module>
    from ..transport import Transport, TransportError
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/transport.py", line 31, in <module>
    from .serializer import DEFAULT_SERIALIZERS, Deserializer, JSONSerializer
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/serializer.py", line 50, in <module>
    np.float_,
  File "/app/.local/lib/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
/app
Running: python3 querybook/server/runweb.py --debug --webpack 10001
Traceback (most recent call last):
  File "/app/querybook/server/runweb.py", line 22, in <module>
    from app.server import flask_app
  File "/app/querybook/server/app/server.py", line 14, in <module>
    import datasources
  File "/app/querybook/server/datasources/__init__.py", line 1, in <module>
    from . import admin
  File "/app/querybook/server/datasources/admin.py", line 13, in <module>
    from lib.metastore.all_loaders import ALL_METASTORE_LOADERS
  File "/app/querybook/server/lib/metastore/__init__.py", line 4, in <module>
    from lib.metastore.base_metastore_loader import BaseMetastoreLoader
  File "/app/querybook/server/lib/metastore/base_metastore_loader.py", line 21, in <module>
    from logic.elasticsearch import delete_es_table_by_id, update_table_by_id
  File "/app/querybook/server/logic/elasticsearch.py", line 13, in <module>
    from lib.elasticsearch.search_utils import (
  File "/app/querybook/server/lib/elasticsearch/search_utils.py", line 3, in <module>
    from elasticsearch import Elasticsearch, RequestsHttpConnection
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/__init__.py", line 36, in <module>
    from .client import Elasticsearch
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/client/__init__.py", line 23, in <module>
    from ..transport import Transport, TransportError
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/transport.py", line 31, in <module>
    from .serializer import DEFAULT_SERIALIZERS, Deserializer, JSONSerializer
  File "/app/.local/lib/python3.9/site-packages/elasticsearch/serializer.py", line 50, in <module>
    np.float_,
  File "/app/.local/lib/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

I believe numpy gets autoupdated: https://github.com/pinterest/querybook/blob/master/requirements/base.txt#L45

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