linuxserver / docker-calibre-web

GNU General Public License v3.0
958 stars 133 forks source link

Python module advocate is not installed but is needed #210

Closed Zacbt519 closed 1 year ago

Zacbt519 commented 1 year ago

linuxserver.io

When attempting to download a cover for a book using the Fetch Metadata tool, it fails to download the cover, throwing an error reading that Python module advocate is not installed. Manually adding a cover still seems to work. I've been having this issue for a while now, but have been unable to resolve on my own, nor have I found anyone else having this issue with a similar configuration to my own.

Expected Behavior

Cover to be saved to book

Current Behavior

Cover is not saved, and "Python module advocate is not installed but is needed" error appears

Steps to Reproduce

  1. Select a book without a cover
  2. Click on fetch metadata
  3. Select the correct book from the list
  4. See error

Environment

OS: OS: Window 10 Python version: Calibre-Web version: 0.6.19 Docker container: Yes Special Hardware: None Browser: Edge 106.0.1370.42

Command used to create docker container (run/create/compose/screenshot)

version: "2.1" services: calibre: image: lscr.io/linuxserver/calibre container_name: calibre environment:

calibre-web: image: lscr.io/linuxserver/calibre-web container_name: calibre-web environment:

Docker logs

[2022-10-12 17:43:08,404] INFO {cps:143} "APScheduler" version does not fit the requirements. Should: available, Found: Not available, please consider installing required version [2022-10-12 17:43:08,404] INFO {cps:143} "advocate" version does not fit the requirements. Should: available, Found: Not available, please consider installing required version [2022-10-12 17:43:08,404] INFO {cps:152} Starting Calibre Web... [2022-10-12 17:43:09,905] INFO {cps.services.background_scheduler:30} APScheduler not found. Unable to schedule tasks.

[2022-10-12 19:42:38,319] ERROR {cps.server:1226} <gevent._socket3.socket at 0x7f647ebe1e20 object, fd=11, family=10, type=1, proto=0>: Invalid HTTP method: '\x10\x1a\x00\x04MQTT\x04\x02\x00<\x00\x0emqttx_ee63c4ef' [2022-10-12 19:42:48,590] ERROR {cps.server:1226} <gevent._socket3.socket at 0x7f647ebe1e20 object, fd=11, family=10, type=1, proto=0>: Invalid http version: "\x16\x03\x01\x00î\x01\x00\x00ê\x03\x03I\x06²ù¼\x99iÀYûøºe-\x83Ud]\x0e\x8d·b8´gÆÝ9dZ8f gÁ\x81i³öòË°©\x19NÖ½\x95g|püé<Z¡\x90T·é¥8'O;\x00&À+À/À,À0̨̩À\tÀ\x13À\n" [2022-10-12 21:53:17,046] WARN {cps.uploader:83} cannot parse metadata, using default: list index out of range [2022-10-12 21:53:21,510] INFO {scholarly:95} Getting https://scholar.google.com/scholar?hl=en&q=The%20Woman%20Who%20Smashed%20Codes%20A%20True%20Story%20of%20Love%252C%20Spies%252C%20and%20the%20Unlikely%20Heroine%20Who%20Outwitted%20Americas%20Enemies%20%2528Fagone%252C%20Jason%2529%20%2528z-lib.org%2529&as_vis=0&as_sdt=0,33 [2022-10-12 21:53:23,330] INFO {scholarly:105} Session proxy config is {} [2022-10-12 21:55:06,201] ERROR {cps.helper:810} python module advocate is not installed but is needed [2022-10-12 21:56:51,546] INFO {cps.admin:1468} Update status requested

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

aptalca commented 1 year ago

That's strange. We do pip install their requirements file (along with the optional one), which contains that module: https://github.com/janeczku/calibre-web/blob/0.6.19/requirements.txt#L20

I wonder if another dep is getting uninstalled during clean up of the system python3-pip package

aptalca commented 1 year ago

I just spun up a fresh instance and advocate is indeed installed and the About page does list it as installed. Is that the case for you?

In any case, I have here an experimental build. Can you give this a try? lspipepr/calibre-web:0.6.19-pkg-cbf0dd8f-pr-212

Zacbt519 commented 1 year ago

@aptalca Sorry for the late reply. Gave it a try this morning, and everything seems to be working now

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.