Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    ImportError: No module named 'kopano_presence'

    Kopano Groupware Core
    2
    5
    620
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • petervbeck
      petervbeck last edited by

      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

      1 Reply Last reply Reply Quote 0
      • tjoen
        tjoen last edited by tjoen

        /usr/lib/python2.7/site-packages/kopano_presence/ is part of copanocore-8.6.80 here

        1 Reply Last reply Reply Quote 0
        • petervbeck
          petervbeck last edited by petervbeck

          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.

          tjoen 1 Reply Last reply Reply Quote 0
          • tjoen
            tjoen @petervbeck last edited by

            @petervbeck

            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?

            1 Reply Last reply Reply Quote 0
            • petervbeck
              petervbeck last edited by petervbeck

              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)
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post