-
Notifications
You must be signed in to change notification settings - Fork 19
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
ImportError: cannot import name Daemon #1
Comments
There could be many possible reasons for this error
You may try one of these:
Hope this helps 😄 😄 |
I don't even remember what this was about. It's been too long. |
Oh my god 📆 This was very long almost 3 years ago. I did not see the date for the issue and your comment, 😺 i was just wandering around 🚶♂️ Github, saw this repo so commented on it 🖱️ ⌨️ |
Any workaround? |
Code as follows:
!/usr/bin/python
-- coding: utf-8 --
python daemon to connect PHP and Arduino
[email protected] 2013
from daemon import Daemon
import logging
import lockfile
import time
import sys
config
PIDFILE = '/var/run/ardaemon.pid'
LOGFILE = '/var/log/ardaemon.log'
run the thing
logging.basicConfig(filename=LOGFILE,level=logging.DEBUG)
class YourDaemon(Daemon):
def run(self):
while True:
logging.debug('this is a test')
time.sleep(5)
if name == "main":
daemon = YourDaemon(PIDFILE)
The text was updated successfully, but these errors were encountered: