Memento icon indicating copy to clipboard operation
Memento copied to clipboard

`pip install -e .` fails with an `AttributeError`

Open archie-was-taken opened this issue 1 year ago • 2 comments

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.

archie-was-taken avatar Apr 23 '24 16:04 archie-was-taken

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

apirrone avatar Apr 24 '24 11:04 apirrone

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/

Mil0dV avatar May 21 '24 10:05 Mil0dV