deamon.py: 'module' object has no attribute 'fork'
Hello,
in "deamon.py" (by the way: this should be spelled "daemon", not "deamon" in the whole package ;-) I have a problem when I try to run the whole package under Windows XP (even after a lot of adjustments for Windows):
C:\heatpumpMoni
Traceback (most recent call last):
File "heatpumpMonito
main()
File "heatpumpMonito
deamon.
File "C:\heatpumpMon
deamonize(
File "C:\heatpumpMon
pid = os.fork()
AttributeError: 'module' object has no attribute 'fork'
In "deamon.py" I had modified in line 24 from '/dev/null' (for Linux) to '>null' (for Windows) like this:
def deamonize(
In addition I adjusted all paths, i.e. away from Linux like things like /etc/, or /var/ to the subdirectories I have under "heatpumpMonitor".
If someone has an idea how (if at all I could use the daemonized stuff under Windows, please let me know.
Or maybe I could (after which adjustments?) let the scripts run in foreground (instead of daemonized)?
I assume that under Windows the whole concept of daemons, pids etc. does not work at all, but I have no clue how I would need to adjust the python scripts of this package.
Thanks for any help - kind regards,
alphaomega
PS:
The basic script "protocol.py" now works, because I have now correctly chosen: serialDevice=
(instead of: "/dev/ttyS0" or "/dev/ttyUSB0")
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Robert Penz
- Solved:
- Last query:
- Last reply: