subdavis / kobo-book-downloader

A tool to download and remove DRM from your purchased Kobo.com ebooks and audiobooks.
https://pypi.org/project/kobodl/
The Unlicense
329 stars 31 forks source link

Kobodl on raspberry pi. #120

Open Madam-Mim opened 4 days ago

Madam-Mim commented 4 days ago

Before you open an issue Please make sure you've upgraded to the latest version of kobodl on pypi or docker. Also read through the troubleshooting guide. Try running with --debug enabled and see what comes up in the debug log. Latest version of kobodl installed with pipx. Do not erase this template, it's here to help you.

Describe the issue A clear and concise description of what the bug is. Attempting to use kobodl on a raspberry pi 4, running Debian 12 (32 bit).

To Reproduce Steps to reproduce the behavior:

  1. Go to '...' Kobodl apparently installs fine with "pipx install kobodl"
  2. Click on '....' Any command, for example kobodl --debug, or kobodl serve gives the following error.
  3. Scroll down to '....' See error Traceback (most recent call last): File "/home/jenny/.local/bin/kobodl", line 5, in from kobodl import cli File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/kobodl/init.py", line 5, in from kobodl.app import app File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/kobodl/app.py", line 4, in from flask import Flask, abort, redirect, render_template, request, send_from_directory File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/flask/init.py", line 7, in from .app import Flask as Flask File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/flask/app.py", line 28, in from . import cli File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/flask/cli.py", line 18, in from .helpers import get_debug_flag File "/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/flask/helpers.py", line 16, in from werkzeug.urls import url_quote ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/jenny/.local/pipx/venvs/kobodl/lib/python3.11/site-packages/werkzeug/urls.py)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

lubomir-brindza commented 4 days ago

Looks like broken dependencies from Flask; you could try running pipx inject kobodl werkzeug==2.2.2 as a temporary workaround

Madam-Mim commented 2 days ago

Many thanks, that did the trick. I thought it was a flask problem, but it seemed to be installed. Your suggestion worked as advertised!

subdavis commented 1 day ago

Thanks for the report. I'll see if I can get deps updated.