4 ms·
I just tried installing this from my very new Linux install (I didn't even have pip installed!) and got the following error: File "/home/XXX/.local/pipx/venv
by wvenable 3y ago
I just tried installing this from my very new Linux install (I didn't even have pip installed!) and got the following error:
File "/home/XXX/.local/pipx/venvs/reddit-user-to-sqlite/lib/python3.10/site-packages/reddit_user_to_sqlite/reddit_api.py", line 1, in <module>
from typing import Any, Literal, NotRequired, Optional, Sequence, TypedDict, final
ImportError: cannot import name 'NotRequired' from 'typing' (/usr/lib/python3.10/typing.py)
- rolobio 3y agoYou are on Python 3.10, you need 3.11.
- wvenable 3y agoAh that is the latest I have available on Ubuntu 22.04.2 LTS.
- xavdid 3y agoSorry about that! I'll try to allow older versions early next week!
- xavdid 3y agoOk, this is fixed! Released as 0.3.1
- wvenable 3y agoIt worked!
- powersurge360 3y agoYou may consider using asdf or some other Python version manager to get a newer (or older) Python https://github.com/asdf-vm/asdf https://github.com/asdf-vm/asdf
- xavdid 3y agoAh apologies, the other commenter looks to be correct that it needs 3.11. The typing imports honestly aren't important, so I might be able to pull them out of the runtime.
- skibbityboop 3y agoWorks well to just spin up a python:3.11 container via Docker or Podman and do the pipx + reddit-user-to-sqlite installations, then run the utility in there. You can mount some folder as part of starting the container or copy the reddit.db file out of the container before throwing it away. Avoids any changes to your real system at all.