You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The server starts but shows some numpy errors. The server is usable afterwards.
(.venv) ➜ visyn_core git:(develop) make start
python visyn_core
INFO: Will watch for changes in these directories: ['/home/holger/w/datavisyn/visyn_core/visyn_core']
INFO: Uvicorn running on http://0.0.0.0:9000 (Press CTRL+C to quit)
INFO: Started reloader process [92344] using WatchFiles
INFO: 2024-08-13 17:45:51 | visyn_core.server.visyn_server | Starting visyn_server in production mode
INFO: 2024-08-13 17:45:51 | visyn_core.plugin.parser | Discovered 1 plugin(s): visyn_core
INFO: 2024-08-13 17:45:51 | visyn_core.plugin.parser | Plugin visyn_core registered 8 extension(s)
INFO: 2024-08-13 17:45:52 | visyn_core.dbmigration.manager | Initializing DBMigrationManager with no plugins
INFO: 2024-08-13 17:45:52 | visyn_core.security.manager | Initializing SecurityManager with DummyStore
INFO: 2024-08-13 17:45:52 | visyn_core.id_mapping.manager | Initializing MappingManager with 0 provider(s)
INFO: 2024-08-13 17:45:52 | visyn_core.server.visyn_server | Registering 0 legacy namespace(s) via WSGIMiddleware
INFO: 2024-08-13 17:45:52 | visyn_core.server.visyn_server | Registering 3 FastAPI router(s)
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.1 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 "/usr/lib/python3.10/multiprocessing/spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
File "/usr/lib/python3.10/multiprocessing/spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 69, in serve
await self._serve(sockets)
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/server.py", line 76, in _serve
config.load()
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/config.py", line 434, in load
self.loaded_app = import_from_string(self.app)
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/uvicorn/importer.py", line 19, in import_from_string
module = importlib.import_module(module_str)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/holger/w/datavisyn/visyn_core/visyn_core/dev_app.py", line 8, in <module>
app = create_visyn_server(
File "/home/holger/w/datavisyn/visyn_core/visyn_core/server/visyn_server.py", line 192, in create_visyn_server
p.plugin.init_app(app)
File "/home/holger/w/datavisyn/visyn_core/visyn_core/__init__.py", line 12, in init_app
from .rdkit import img_api
File "/home/holger/w/datavisyn/visyn_core/visyn_core/rdkit/img_api.py", line 2, in <module>
from rdkit.Chem import Mol # type: ignore
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/rdkit/Chem/__init__.py", line 15, in <module>
from rdkit import DataStructs, RDConfig, rdBase
File "/home/holger/w/datavisyn/visyn_core/.venv/lib/python3.10/site-packages/rdkit/DataStructs/__init__.py", line 13, in <module>
from rdkit.DataStructs import cDataStructs
AttributeError: _ARRAY_API not found
INFO: 2024-08-13 17:45:53 | uvicorn.error | Started server process [92347]
INFO: 2024-08-13 17:45:53 | uvicorn.error | Waiting for application startup.
INFO: 2024-08-13 17:45:53 | uvicorn.error | Application startup complete.
Expected Behavior
Show no errors on app startup.
Thanks for taking the time to fill out this bug report 🤗
Make sure there aren't any open/closed issues for this topic 😃
The text was updated successfully, but these errors were encountered:
Environment
Steps to reproduce the bug
rm -rf .venv && python3.10 -m venv .venv && source .venv/bin/activate && pip install --upgrade uv && make develop
make start
Observed Behavior
The server starts but shows some numpy errors. The server is usable afterwards.
Expected Behavior
Show no errors on app startup.
Thanks for taking the time to fill out this bug report 🤗
Make sure there aren't any open/closed issues for this topic 😃
The text was updated successfully, but these errors were encountered: