mkb79 / audible-cli

A command line interface for audible package. With the cli you can download your Audible books, cover, chapter files.
GNU Affero General Public License v3.0
423 stars 45 forks source link

audible library list gives me an error #35

Closed lnee94 closed 2 years ago

lnee94 commented 2 years ago

note i tested this in a fresh kubuntu install vm and it still had the error

Operating System: Kubuntu 21.04 KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.80.0 Qt Version: 5.15.2 Kernel Version: 5.11.0-36-generic OS Type: 64-bit Graphics Platform: X11 Processors: 2 × Intel® Celeron® G4900 CPU @ 3.10GHz Memory: 7.6 GiB of RAM Graphics Processor: Mesa Intel® UHD Graphics 610

Python 3.9.5

pip list:

Package Version


aiofiles 0.7.0 alabaster 0.7.8 anyascii 0.3.0 anyio 3.3.3 apparmor 3.0.0 appdirs 1.4.4 appimage-builder 0.9.2 apt-xapian-index 0.49 audible 0.5.5 audible-cli 0.0.1 audioread 2.1.9 Babel 2.8.0 bashsmash 1.2 bcrypt 3.1.7 beautifulsoup4 4.9.3 blinker 1.4 Brotli 1.0.9 catfish 4.16.0 certifi 2020.6.20 cffi 1.14.6 chardet 4.0.0 Charon 1.0 chrome-gnome-shell 0.0.0 cliapp 1.20180812.1 click 7.1.2 click-plugins 1.1.1 cmdtest 0.32+git colorama 0.4.4 command-not-found 0.3 commonmark 0.9.1 contextlib2 21.6.0 coqpit 0.0.14 cryptography 3.3.2 cupshelpers 1.0 cwiid 0.6.91 cycler 0.10.0 Cython 0.29.24 daiquiri 3.0.0 dblatex 0.3.12 dbus-python 1.2.16 decorator 4.4.2 defer 1.0.6 Deprecated 1.2.12 devscripts 2.21.1ubuntu1 dill 0.3.4 distro 1.5.0 distro-info 1.0 dnspython 1.16.0 docker 5.0.2 docopt 0.6.2 docutils 0.16 ecdsa 0.16.1 emrichen 0.2.3 feedparser 5.2.1 filelock 3.0.12 Flask 2.0.1 fsspec 2021.8.1 future 0.18.2 galternatives 1.0.8 gattlib 0.20201113 gdown 3.13.1 getdevinfo 1.1.1 git-pull-request 6.0.1 gitsome 0.8.0 gpg 1.14.0-unknown gruut 1.2.3 gruut-ipa 0.9.3 gruut-lang-cs 1.2 gruut-lang-de 1.2 gruut-lang-es 1.2 gruut-lang-fr 1.2.1 gruut-lang-it 1.2 gruut-lang-nl 1.2 gruut-lang-pt 1.2 gruut-lang-ru 1.2 gruut-lang-sv 1.2 gssapi 1.6.1 gyp 0.1 h11 0.12.0 halo 0.0.31 html5lib 1.1 httpcore 0.13.7 httplib2 0.18.1 httpx 0.18.2 idna 2.10 ifaddr 0.1.7 imagesize 1.2.0 inflect 5.3.0 itsdangerous 2.0.1 jeepney 0.6.0 jieba 0.42.1 Jinja2 3.0.1 joblib 1.0.1 jsonlines 1.2.0 jsonpath-rw 1.4.0 keyring 22.2.0 kiwisolver 1.3.2 language-selector 0.1 launchpadlib 1.10.13 lazr.restfulclient 0.14.2 lazr.uri 1.0.5 LibAppArmor 3.0.0 librosa 0.8.0 libvirt-python 7.0.0 llvmlite 0.36.0 log-symbols 0.0.14 lxml 4.6.3 lz4 3.1.3+dfsg macaroonbakery 1.3.1 Mako 1.1.3 Markdown 3.3.4 MarkupSafe 2.0.1 matplotlib 3.4.3 mecab-python3 1.0.3 mercurial 5.6.1 mysqlclient 1.4.4 netifaces 0.10.9 networkx 2.4 notify2 0.3 num2words 0.5.10 numba 0.53.0 numpy 1.19.5 numpy-stl 2.8.0 numpydoc 1.1.0 oauthlib 3.1.0 olefile 0.46 packaging 20.9 pandas 1.3.3 paramiko 2.7.2 pbkdf2 1.3 pexpect 4.8.0 Pillow 8.1.2 pip 20.3.4 playitslowly 1.5.0 ply 3.11 pooch 1.5.1 prompt-toolkit 3.0.14 protobuf 3.12.4 psutil 5.8.0 py-cpuinfo 5.0.0 py3dns 3.2.1 pyaes 1.6.1 pyaml 21.8.3 pyasn1 0.4.8 PyBluez 0.23 pycairo 1.16.2 pycparser 2.20 pycryptodome 3.10.1 pycryptodomex 3.9.7 pycups 2.0.1 PyGithub 1.55 Pygments 2.7.1 PyGObject 3.38.0 pyinotify 0.9.6 PyJWT 2.1.0 pykerberos 1.1.14 pymacaroons 0.13.0 PyNaCl 1.4.0 pynndescent 0.5.4 PyOpenGL 3.1.5 pyOpenSSL 20.0.1 pyparsing 2.4.7 PyPDF2 1.26.0 pyperclip 1.8.2 pypinyin 0.42.0 PyQt-Qwt 1.2.2 PyQt5 5.15.4 PyQt5-sip 12.8.1 pyqtgraph 0.12.1 pyRFC3339 1.1 pysbd 0.3.4 pyserial 3.5b0 PySide2 5.15.2 PySocks 1.7.1 python-apt 2.1.7+ubuntu2 python-crfsuite 0.9.7 python-dateutil 2.8.1 python-debian 0.1.39 python-json-logger 2.0.1 python-lzo 1.12 python-magic 0.4.20 python-utils 2.2.0 pytube 11.0.1 pytz 2021.1 pyworld 0.3.0 pyxattr 0.7.2 pyxdg 0.27 PyYAML 5.3.1 pyzmq 22.3.0 qrcode 6.1 questionary 1.10.0 rapidfuzz 1.4.1 rencode 1.0.6 reportlab 3.5.66 requests 2.25.1 requests-cache 0.5.2 resampy 0.2.2 rfc3986 1.5.0 rich 10.2.2 roam 0.3.1 roman 2.0.0 rsa 4.7.2 ruamel.yaml 0.17.16 ruamel.yaml.clib 0.2.6 schema 0.7.4 scikit-learn 0.24.2 scipy 1.7.1 scour 0.38.2 SecretStorage 3.3.1 selenium 3.141.0 setproctitle 1.2.1 setuptools 52.0.0 Shapely 1.7.1 shiboken2 5.15.2 simplejson 3.17.2 six 1.15.0 sniffio 1.2.0 snowballstemmer 2.1.0 soundconverter 4.0.0 SoundFile 0.10.3.post1 soupsieve 2.2 Sphinx 3.5.4 spinners 0.0.24 spotdl 3.8.0 spotipy 2.19.0 style 1.1.0 systemd-python 234 tabulate 0.8.9 tensorboardX 2.4 termcolor 1.1.0 threadpoolctl 2.2.0 thrift 0.13.0 toml 0.10.2 torbrowser-launcher 0.3.3 torchaudio 0.9.0 torchfile 0.1.0 torchvision 0.10.0+cpu tornado 6.1 tqdm 4.62.2 TTS 0.3.1 ttystatus 0.38 typing-extensions 3.10.0.0 ubuntu-advantage-tools 27.2 ubuntu-drivers-common 0.0.0 ufw 0.36 umap-learn 0.5.1 unattended-upgrades 0.1 Unidecode 1.3.2 unidic-lite 1.0.8 unidiff 0.5.5 update 0.0.1 uritools 3.0.0 urllib3 1.26.2 wadllib 1.3.5 wcwidth 0.1.9 webencodings 0.5.1 websocket-client 1.2.1 websockets 10.0 Werkzeug 2.0.1 wheel 0.34.2 wrapt 1.12.1 wxPython 4.0.7 xdg 5 xkit 0.0.0 xonsh 0.9.25 xpra 3.0.13 youtube-dl 2021.4.7 yt-dlp 2021.9.2 ytmusicapi 0.17.2 zeroconf 0.26.1

Traceback (most recent call last): File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 61, in map_httpcore_exceptions yield File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 283, in handle_async_request ) = await self._pool.handle_async_request( File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_async/connection_pool.py", line 234, in handle_async_request response = await connection.handle_async_request( File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_async/connection.py", line 148, in handle_async_request return await self.connection.handle_async_request( File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 128, in handle_async_request ) = await self._receive_response(timeout) File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 189, in _receive_response event = await self._receive_event(timeout) File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_async/http11.py", line 225, in _receive_event data = await self.socket.read(self.READ_NUM_BYTES, timeout) File "/home/lnee/.local/lib/python3.9/site-packages/httpcore/_backends/anyio.py", line 63, in read raise ReadTimeout from None httpcore.ReadTimeout

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/home/lnee/.local/lib/python3.9/site-packages/audible/client.py", line 251, in _request resp = await self.session.request(method, url, **kwargs) File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_client.py", line 1481, in request response = await self.send( File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_client.py", line 1568, in send response = await self._send_handling_auth( File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_client.py", line 1604, in _send_handling_auth response = await self._send_handling_redirects( File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_client.py", line 1640, in _send_handling_redirects response = await self._send_single_request(request, timeout) File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_client.py", line 1681, in _send_single_request ) = await transport.handle_async_request( File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 278, in handle_async_request ( File "/usr/lib/python3.9/contextlib.py", line 135, in exit self.gen.throw(type, value, traceback) File "/home/lnee/.local/lib/python3.9/site-packages/httpx/_transports/default.py", line 78, in map_httpcore_exceptions raise mapped_exc(message) from exc httpx.ReadTimeout

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/lnee/.local/bin/audible", line 8, in sys.exit(main()) File "/home/lnee/.local/lib/python3.9/site-packages/audible_cli/cli.py", line 54, in main sys.exit(cli(*args, kwargs)) File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call return self.main(args, kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke return callback(args, kwargs) File "/usr/lib/python3/dist-packages/click/decorators.py", line 73, in new_func return ctx.invoke(f, obj, *args, *kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke return callback(args, kwargs) File "/home/lnee/.local/lib/python3.9/site-packages/audible_cli/cmds/cmd_library.py", line 148, in list_library loop.run_until_complete(_list_library(session.auth, params)) File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/home/lnee/.local/lib/python3.9/site-packages/audible_cli/cmds/cmd_library.py", line 39, in _list_library library = await _get_library(auth, **params) File "/home/lnee/.local/lib/python3.9/site-packages/audible_cli/cmds/cmd_library.py", line 21, in _get_library library = await Library.aget_from_api( File "/home/lnee/.local/lib/python3.9/site-packages/audible_cli/models.py", line 377, in aget_from_api resp = await api_client.get( File "/home/lnee/.local/lib/python3.9/site-packages/audible/client.py", line 270, in _request raise NotResponding audible.exceptions.NotResponding: API request timed out, please be patient.

mkb79 commented 2 years ago

It seams you get a Timeout error. How many books you have in your library? Please specify a Timeout parameter like so: audible library list -t 30

lnee94 commented 2 years ago

ok that works for audible library list im testing it on other things