Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710370 - app-text/calibre should depend on dev-python/zeroconf - calibre-server: ModuleNotFoundError: No module named 'zeroconf'
Summary: app-text/calibre should depend on dev-python/zeroconf - calibre-server: Modul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Stakenvicius (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-21 06:58 UTC by Amel Hodzic
Modified: 2020-02-23 19:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amel Hodzic 2020-02-21 06:58:42 UTC
Reproducible: Always
Comment 1 Amel Hodzic 2020-02-21 07:01:15 UTC
If the calibre server is enabled, attempting to start it results in failure for mdns if dev-python/zeroconf is not installed. Therefore, that should either be a dependency or an optional dependency for use with that feature enabled.

systemctl --user status -l calibre.service 
● calibre.service - Book Content Server
     Loaded: loaded (/home/ilmostro/.config/systemd/user/calibre.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2020-02-20 23:34:12 CST; 3s ago
   Main PID: 4289 (BonJour)
     CGroup: /user.slice/user-1000.slice/user@1000.service/calibre.service
             └─4289 python3.6 /usr/bin/calibre-server

Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]: Traceback (most recent call last):
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:   File "/usr/lib64/calibre/calibre/srv/pool.py", line 105, in run_plugin
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:     plugin.start(self.loop)
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:   File "/usr/lib64/calibre/calibre/srv/bonjour.py", line 38, in start
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:     self.services.append(publish(*s, use_ip_address=zipa, add_hostname=self.add_hostname))
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:   File "/usr/lib64/calibre/calibre/utils/mdns.py", line 187, in publish
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:     server = start_server()
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:   File "/usr/lib64/calibre/calibre/utils/mdns.py", line 114, in start_server
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]:     from zeroconf import Zeroconf
Feb 20 23:34:15 riparch.atayjq.lan calibre-server[4289]: ModuleNotFoundError: No module named 'zeroconf'
Comment 2 Amel Hodzic 2020-02-21 07:03:26 UTC
For what it's worth, the calibre server is configured as a systemd --user job with the following config entries:

nl ~/.config/systemd/user/calibre.service 
     1  [Unit]
     2  Description=Book Content Server
       
     3  [Service]
     4  ExecStart=/usr/bin/calibre-server
       
     5  [Install]
     6  WantedBy=default.target
Comment 3 Amel Hodzic 2020-02-21 07:06:27 UTC
Apologies for, initially, messing up the summary for this bug.  It should be fixed, eventually, to read "app-text/calibre  missing deps for dev-python/zeroconf"
Comment 4 Eli Schwartz 2020-02-21 15:55:03 UTC
If you look at my Arch Linux build recipe, zeroconf is explicitly enumerated as a python3-only dependency:

https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/calibre#n17
Comment 5 Larry the Git Cow gentoo-dev 2020-02-21 23:51:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80be7a699af23cec2468ca37105e7cf981cad15e

commit 80be7a699af23cec2468ca37105e7cf981cad15e
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2020-02-21 23:46:45 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2020-02-21 23:51:42 +0000

    app-text/calibre: Bump to version 4.11.1
    
    Also add dev-python/zeroconf dependency for bug 710370.
    
    Closes: https://bugs.gentoo.org/710370
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-text/calibre/Manifest              |   1 +
 app-text/calibre/calibre-4.11.1.ebuild | 274 +++++++++++++++++++++++++++++++++
 2 files changed, 275 insertions(+)
Comment 6 Amel Hodzic 2020-02-23 19:53:56 UTC
All right! Thanks for confirming, Eli.  I'm glad this was resolved so quickly.