`pip install -e .` fails with an `AttributeError`
I ran pip install -e . within the directory of the cloned repo, and here is the output. Any ideas on how to fix it?
I'm using Python 3.12 on Fedora 39.
This seems to be an issue with pip on python 3.12
I see two possible solutions :
- use python 3.10
- try what is described here : https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean
Had the same issue. Steps to work around this for convenience:
sudo dnf install python3.10 python3.10-devel python3-virtualenv
virtualenv -p /usr/bin/python3.10 myenv
source myenv/bin/activate
pip install -e .
I think this (and other things) would be a lot easier with Poetry, I recommend switching.
Tesseract-ocr on fedora is:
sudo dnf install mingw64-tesseract
sudo dnf list tesseract-langpack-* # list the available language packs, eng was installed automatically for me
export TESSDATA_PREFIX=/usr/share/tesseract/tessdata/
To get the screenshot grabbing working you need to run xhost before memento:
xhost +
memento-bg
Lastly, it seems you also need to switch to X11 instead of Wayland, how is documented here: https://docs.fedoraproject.org/en-US/quick-docs/configuring-xorg-as-default-gnome-session/