ImportError: No module named 'kopano_presence'
-
Kopano Presence on Debian Stretch with nightly version 8.6.81.228-0+37.1 does not start. After upgrading to the most recent nightly (8.6.81.228-0+37.1) still no luck:
# systemctl start kopano-presence.service # systemctl status kopano-presence.service ● kopano-presence.service - Kopano Groupware Core Presence Daemon Loaded: loaded (/lib/systemd/system/kopano-presence.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2018-09-26 16:09:13 CEST; 7s ago Process: 7189 ExecStart=/usr/sbin/kopano-presence -F (code=exited, status=1/FAILURE) Main PID: 7189 (code=exited, status=1/FAILURE) Sep 26 16:09:13 unxgrp001 systemd[1]: Started Kopano Groupware Core Presence Daemon. Sep 26 16:09:13 unxgrp001 kopano-presence[7189]: Traceback (most recent call last): Sep 26 16:09:13 unxgrp001 kopano-presence[7189]: File "/usr/sbin/kopano-presence", line 4, in <module> Sep 26 16:09:13 unxgrp001 kopano-presence[7189]: import kopano_presence Sep 26 16:09:13 unxgrp001 kopano-presence[7189]: ImportError: No module named 'kopano_presence' Sep 26 16:09:13 unxgrp001 systemd[1]: kopano-presence.service: Main process exited, code=exited, status=1/FAILURE Sep 26 16:09:13 unxgrp001 systemd[1]: kopano-presence.service: Unit entered failed state. Sep 26 16:09:13 unxgrp001 systemd[1]: kopano-presence.service: Failed with result 'exit-code'.
Is it just me or is anything broken here ?
On the stable/supported version are no such issues.
Regards
Peter -
/usr/lib/python2.7/site-packages/kopano_presence/ is part of copanocore-8.6.80 here
-
I can find some files under /usr/lib/python2.7/dist-packages/kopano_presence/ (but not in site-packages)
ls /usr/lib/python2.7/dist-packages/kopano_presence/ __init__.py __init__.pyc plugin_spreed.py plugin_spreed.pyc plugin_xmpp.py plugin_xmpp.pyc version.py version.pyc
and under python3.5
ls /usr/lib/python3.5/site-packages/kopano_presence/ __init__.py plugin_spreed.py plugin_xmpp.py __pycache__ version.py
but it just doesn’t work, no matter if i purge the package, reinstall it or whatever I’m trying to do.
Also when trying to copy the folder to site-packages (the directory does not exist, had to create it by myself), but to no avail. -
I can find some files under /usr/lib/python2.7/dist-packages/kopano_presence/ (but not in site-packages)
Also when trying to copy the folder to site-packages (the directory does not exist, had to create it by myself), but to no avail.
On the first line of /usr/sbin/kopano-presence you can see which Python is used. you can disregard the other Python. So I guess you copied in the Python2-directory.
Is dist-packages normal in Debian? If tere is no site-packages-directory the where are Python2 modules installd in Debian? And are they working? -
I didn’t copy anything manually until now.
But after copying kopano_presence from /usr/lib/python3.5/site-packages/kopano_presence/ to /usr/lib/python3/dist-packages/ it seems to work…● kopano-presence.service - Kopano Groupware Core Presence Daemon Loaded: loaded (/lib/systemd/system/kopano-presence.service; disabled; vendor preset: enabled) Active: active (running) since Fri 2018-09-28 09:42:20 CEST; 7s ago Main PID: 29047 (kopano-presence) Tasks: 3 (limit: 4915) CGroup: /system.slice/kopano-presence.service └─29047 /usr/bin/python3 /usr/sbin/kopano-presence -F Sep 28 09:42:20 unxgrp001 systemd[1]: Started Kopano Groupware Core Presence Daemon. Sep 28 09:42:20 unxgrp001 kopano-presence[29047]: * Running on http://127.0.0.1:1234/ (Press CTRL+C to quit)