Closed omsai closed 1 year ago
The documentation suggests using the command here: https://pyabc.readthedocs.io/en/latest/visualization.html#visualization-server
Fault persists even after running pip install "pyabc[webserver_dash]"
I tried installing from GitHub but get the same error. It looks like the entire assets
directory is not being packaged.
Thanks for reporting @omsai - will have a look.
By the way, did you try the develop branch?
By the way, did you try the develop branch?
I had only tried the main
branch, not develop
. Here are the changes to the pyproject.toml
:
diff -u /tmp/abctest/pyproject.toml.orig /tmp/abctest/pyproject.toml
--- /tmp/abctest/pyproject.toml.orig 2023-11-06 08:08:02.396314808 -0500
+++ /tmp/abctest/pyproject.toml 2023-11-06 08:14:05.269804589 -0500
@@ -12,5 +12,8 @@
"dash", # for abc-server-dash
"dash-bootstrap-components", # for abc-server-dash
"lxml",
- "pyabc[pyarrow]",
+ "pyabc[pyarrow] @ git+https://github.com/ICB-DCM/pyABC.git@develop",
]
+
+[tool.hatch.metadata]
+allow-direct-references = true
No change using develop:
$ hatch env prune
$ hatch shell
Traceback (most recent call last):
File "/home/omsai/.local/share/hatch/env/virtual/calibrate/TIT3we0a/calibrate/bin/abc-server-dash", line 5, in <module>
from pyabc.visserver.server_dash import run_app
File "/home/omsai/.local/share/hatch/env/virtual/calibrate/TIT3we0a/calibrate/lib/python3.9/site-packages/pyabc/visserver/server_dash.py", line 31, in <module>
square_base64 = base64.b64encode(open(square_png, 'rb').read()).decode('ascii')
FileNotFoundError: [Errno 2] No such file or directory: '/home/omsai/.local/share/hatch/env/virtual/calibrate/TIT3we0a/calibrate/lib/python3.9/site-packages/pyabc/visserver/assets/square_v2.png'
No difference if I use the zip link in the dependency either: pyabc[pyarrow] @ https://github.com/ICB-DCM/pyABC/archive/refs/heads/develop.zip
Can't reproduce the error in pyabc 0.12.10 and 0.12.9. Just curious, do these versions work for you?
Should be fixed indevelop
now. Please try. Will create a new release with some more fixes soon.
I still get the same error.
Okay, we will work on it and come back to you. Meanwhile 0.12.10 or 0.12.9 should work, if not please let me know.
Neither of those versions 0.12.9 and 0.12.10 even provide the abc-server-dash
executable:
$ hatch shell
$ abc-
abc-export abc-redis-manager abc-server
abc-migrate abc-redis-worker
With the current version:
$ hatch shell
$ abc-
abc-export abc-redis-manager abc-server abc-server-flask
abc-migrate abc-redis-worker abc-server-dash
@omsai ah yes, you are right, there will be only abc-server
. We will see what causes the issue and prepare a new pyabc release with bugfixes.
@omsai problem should now (as of today) be fixed. please try to install from develop branch. thanks for your patience.
@stephanmg It works! I confirmed also with loading one of my databases. Thank you for all your work on this!
Okay cool, no problem, we will cut out new patch release later today.
Bug description Running
abc-server-dash
fails with this error:Expected behavior
abc-server-dash
should launch without errors.To reproduce
Environment