-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Level
MINOR
Component
PYTHON BINDING
| self.start_daemon() |
Environment
- COMPSs version
3.3.2 - Java / Python / C version
python - Operating System Linux Ubuntu LTS
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
$ pip list
Package Version
------------------ ----------
certifi 2023.11.17
charset-normalizer 3.3.2
docker 7.0.0
idna 3.6
packaging 23.2
pip 23.3.2
pycompss-cli 3.3.2
requests 2.31.0
setuptools 69.0.3
urllib3 2.1.0
wheel 0.42.0Description
For some strange reason the pycompss init command fails for me. I already have the compss-tutorial image 3.3. But when I launch it, it still stays open for a very long time.
So I decided to try a few things to see if I could get it to work, and at one point I think that made the code reach a function that calls start_daemon for Docker, but fails as that function does not exist on the docker/cli.py DockerCmd object (and the parent of DockerCmd is object, and I couldn't find any metaclass or something else that would define that function).
Minimal example to reproduce
- In an environment with
pycompss-cliinstalled - Run this:
$ pycompss init -n test docker -i compss/compss-tutorial:3.3
Environment created ID: test
Starting pycompss-master-test container in dir /home/bdepaula/Development/python/workspace/tutorial_apps
If this is your first time running PyCOMPSs it may take a while because it needs to download the docker image. Please be patient.For me, this stays running forever. I had already downloaded compss/compss-tutorial:3.3, so not sure what it is doing (htop and ps didn't help, might strace it later if I don't find any other solution). But it does create the env, in another terminal:
$ pycompss env list
ID | Type | Active
======= | ====== | ======
default | local | *
test | docker | Then if I change to test,
$ pycompss env change test
Environment `test` is now activeAnd try to start the monitor:
$ pycompss monitor start
Starting Monitor
Traceback (most recent call last):
File "/home/bdepaula/mambaforge/envs/pycompss/bin/pycompss", line 8, in <module>
sys.exit(main())
File "/home/bdepaula/mambaforge/envs/pycompss/lib/python3.10/site-packages/pycompss_cli/cli/pycompss.py", line 45, in main
ActionsDispatcher().run_action(arguments)
File "/home/bdepaula/mambaforge/envs/pycompss/lib/python3.10/site-packages/pycompss_cli/core/actions_dispatcher.py", line 53, in run_action
action_func()
File "/home/bdepaula/mambaforge/envs/pycompss/lib/python3.10/site-packages/pycompss_cli/core/docker/actions.py", line 141, in monitor
self.docker_cmd.docker_start_monitoring()
File "/home/bdepaula/mambaforge/envs/pycompss/lib/python3.10/site-packages/pycompss_cli/core/docker/cmd.py", line 230, in docker_start_monitoring
self.start_daemon()
AttributeError: 'DockerCmd' object has no attribute 'start_daemon'Exception
AttributeError: 'DockerCmd' object has no attribute 'start_daemon'
Expected behaviour
The daemon is launched, I think.