Open ghost opened 1 year ago
No it does not look right. I tried to replicate but it won't work.
Can you please git pull
? I've added one logging line to narrow down the resource that fails to initialize. And could you post the output?
So this is interesting.
Windows I can't make build
and it is pulling plynxteam/backend:latest
which is using python:3.7-slim
and gives the same error above.
Linux after making using python:3.8-slim
:
api | /usr/local/lib/python3.8/site-packages/paramiko/transport.py:208: CryptographyDeprecationWarning: Blowfish has been deprecated
api | "class": algorithms.Blowfish,
api | Traceback (most recent call last):
api | File "/usr/local/bin/plynx", line 33, in <module>
api | sys.exit(load_entry_point('plynx==1.11.0', 'console_scripts', 'plynx')())
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/bin/__init__.py", line 15, in main
api | args.func(kwargs)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/bin/cli.py", line 38, in api
api | from plynx.web.common import run_api # noqa: E402 # pylint: disable=import-outside-toplevel
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/web/__init__.py", line 8, in <module>
api | import plynx.web.node
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/web/node.py", line 31, in <module>
api | hub_manager = plynx.utils.plugin_manager.get_hub_manager()
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/utils/plugin_manager.py", line 126, in get_hub_manager
api | _HUB_MANAGER = _HubManager(_plugins)
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/utils/plugin_manager.py", line 78, in __init__
api | self.kind_to_hub_class: Dict[str, BaseHub] = {
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/utils/plugin_manager.py", line 79, in <dictcomp>
api | hub.kind: pydoc.locate(hub.cls)(**hub.args) # type: ignore
api | File "/usr/local/lib/python3.8/site-packages/plynx-1.11.0-py3.8.egg/plynx/plugins/hubs/static_list.py", line 63, in __init__
api | raise Exception(f"List of nodes `{list_nodes_path}` not found")
api | Exception: List of nodes `/app/nodes.json` not found
I added the following to the Dockerfile which seemed to have it up and running.
RUN echo '[]' > /app/nodes.json
Thanks for the feedback! Do I understand it correctly, it worked eventually on Linux but not Windows? Only when you changed base docker image to python:3.8-slim? I should be python:3.8-slim
by default.
Windows was pulling from docker registry (because I could not build it) which was using python:3.7-slim
. So I think there is incompatibility with 3.7. When I built the image it used 3.8 and worked fine.
We decided to move away from this project as I had many other issues from logging in after creating a user and the lack of documentation.
Thanks
This does not run. Cloned repo, copy template_config.yaml, and api will not start tested in multiple environments.