ImportError: No module named daemon
Closed this issue · 2 comments
I placed the zfs-snap-manager folder in /usr/lib.
I created /etc/zfssnapmanager.cfg like this:
[mypool/dir1]
mountpoint = /mnt/mypool/dir1
time = 08:00
snapshot = True
schema = 7d3w11m4y
[mypool/dir2]
mountpoint = /mnt/mypool/dir2
time = 08:00
snapshot = True
schema = 7d3w11m4y
I chmod +x manager.py.
When I run it, it comes back with this:
./manager.py
Traceback (most recent call last):
File "./manager.py", line 142, in
from daemon import runner
ImportError: No module named daemon
I'm running Debian Wheezy 7.4.
The error you're getting is because your system is probably missing the package python2-daemon
. After installing this, it should work. I have updated the readme docs to list all dependencies.
Also, your configuration file is mentioning mypool/dir1
. Please note that in this case, dir1
should be a ZFS dataset, and not a plain directory.
Let me know if you would have more issues, troubles or questions.
Cool. It's working now, thanks!