Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umonitor --listen --daemonize fails with AttributeError: module 'daemon' has no attribute 'DaemonContext' #13

Open
igavrysh opened this issue Mar 29, 2024 · 2 comments

Comments

@igavrysh
Copy link

Output for umonitor daemonize in my case:

➜  autostart umonitor --listen --daemonize  
Traceback (most recent call last):
  File "/usr/local/bin/umonitor", line 33, in <module>
    sys.exit(load_entry_point('umonitor==20181018', 'console_scripts', 'umonitor')())
  File "/usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg/umonitor/__init__.py", line 23, in main
    umon.run()
  File "/usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg/umonitor/umonitor.py", line 47, in run
    with daemon.DaemonContext() as my_daemon:
AttributeError: module 'daemon' has no attribute 'DaemonContext'
@igavrysh
Copy link
Author

daemon installation / check log while installing application with sudo python3 setup.py install

Installed /usr/local/lib/python3.10/dist-packages/umonitor-20181018-py3.10-linux-x86_64.egg
Processing dependencies for umonitor==20181018
Searching for daemon==1.2
Best match: daemon 1.2
Processing daemon-1.2-py3.10.egg
daemon 1.2 is already the active version in easy-install.pth

Using /usr/local/lib/python3.10/dist-packages/daemon-1.2-py3.10.egg
Finished processing dependencies for umonitor==20181018

@igavrysh
Copy link
Author

resolved the issue for myself by checking this post: https://stackoverflow.com/a/68010664/4874863
e.g. ran

sudo pip uninstall daemon
sudo pip install python-daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant