apirrone / Memento

Memento is a Python app that records everything you do on your computer and lets you go back in time, search, and chat with a LLM (Large Language Model) to find back information about what you did.
MIT License
482 stars 37 forks source link

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

Open archie-was-taken opened 2 months ago

archie-was-taken commented 2 months ago

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.

apirrone commented 2 months ago

This seems to be an issue with pip on python 3.12

I see two possible solutions :

Mil0dV commented 1 month ago

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/