bkram / inotify-spamlearn Goto Github PK
View Code? Open in Web Editor NEWCompanion to Kopano Core kopano-spamd, process spam written to /var/lib/kopano/spamd/spam
License: GNU General Public License v3.0
Companion to Kopano Core kopano-spamd, process spam written to /var/lib/kopano/spamd/spam
License: GNU General Public License v3.0
Hello,
i installed via pip the python module inotify
pip install inotify
Collecting inotify
Using cached https://files.pythonhosted.org/packages/c7/fc/9728f1f708ecd5981007abe133d44fdcddf40915f8d13e12a140b77376ae/inotify-0.2.10-py2-none-any.whl
Requirement already satisfied: nose in /usr/local/lib/python2.7/dist-packages (from inotify) (1.3.7)
Installing collected packages: inotify
Successfully installed inotify-0.2.10
and tried to start inotify-spamlearn which gaves me no output.
But, if it try to check the status i see this:
sudo systemctl status inotify-spamlearn
โ inotify-spamlearn.service - Inotify Spamlearn
Loaded: loaded (/etc/systemd/system/inotify-spamlearn.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-12-29 13:57:46 CET; 6s ago
Process: 7172 ExecStart=/usr/local/sbin/inotify-spamlearn.py (code=exited, status=1/FAILURE)
Main PID: 7172 (code=exited, status=1/FAILURE)
Dec 29 13:57:46 euve264608 inotify-spamlearn.py[7172]: Traceback (most recent call last):
Dec 29 13:57:46 euve264608 inotify-spamlearn.py[7172]: File "/usr/local/sbin/inotify-spamlearn.py", line 11, in <module>
Dec 29 13:57:46 euve264608 inotify-spamlearn.py[7172]: import inotify.adapters
Dec 29 13:57:46 euve264608 inotify-spamlearn.py[7172]: ImportError: No module named 'inotify'
This is the line 11
import inotify.adapters
As you can see here, the module is installed:
pip list
Package Version
--------------- -------
configparser 3.5.0
inotify 0.2.10
logging 0.4.9.6
MAPI 8.7.80
nose 1.3.7
pip 18.1
PyICU 1.9.5
python-dateutil 2.5.3
pytz 2016.7
pyzor 1.0.0
setuptools 33.1.1
six 1.10.0
It seems to be that it cannot load the inotify module even though its installed.
Best Regards
Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.