Skip to content

Numpy error in prod image #115

Description

@NishaSharma14
INFO:     Will watch for changes in these directories: ['/code']
WARNING:  "workers" flag is ignored when reloading is enabled.
INFO:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
INFO:     Started reloader process [1] using WatchFiles

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.4.6 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "<string>", line 1, in <module>
  File "/opt/conda/lib/python3.11/multiprocessing/spawn.py", line 122, in spawn_main
    exitcode = _main(fd, parent_sentinel)
  File "/opt/conda/lib/python3.11/multiprocessing/spawn.py", line 135, in _main
    return self._bootstrap(parent_sentinel)
  File "/opt/conda/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/opt/conda/lib/python3.11/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
    target(sockets=sockets)
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 74, in run
    return asyncio_run(self.serve(sockets=sockets), loop_factory=self.config.get_loop_factory())
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/_compat.py", line 30, in asyncio_run
    return runner.run(main)
  File "/opt/conda/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 78, in serve
    await self._serve(sockets)
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/server.py", line 85, in _serve
    config.load()
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/config.py", line 493, in load
    self.loaded_app = self.load_app()
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/config.py", line 427, in load_app
    return import_from_string(self.app)
  File "/opt/conda/lib/python3.11/site-packages/uvicorn/importer.py", line 19, in import_from_string
    module = importlib.import_module(module_str)
  File "/opt/conda/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/code/app/main.py", line 6, in <module>
    from .routers import registration
  File "/code/app/routers/registration.py", line 2, in <module>
    from app.core.config import LWREG_CONFIG
  File "/code/app/core/config.py", line 4, in <module>
    import lwreg
  File "/lwreg/lwreg/__init__.py", line 9, in <module>
    from .utils import initdb, register, query, retrieve, bulk_register, \
  File "/lwreg/lwreg/utils.py", line 8, in <module>
    from rdkit import Chem
  File "/opt/conda/lib/python3.11/site-packages/rdkit/Chem/__init__.py", line 18, in <module>
    from rdkit import DataStructs
  File "/opt/conda/lib/python3.11/site-packages/rdkit/DataStructs/__init__.py", line 13, in <module>
    from rdkit.DataStructs import cDataStructs
AttributeError: _ARRAY_API not found

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions