Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install -e . fails with an AttributeError #83

Open
archie-was-taken opened this issue Apr 23, 2024 · 2 comments
Open

pip install -e . fails with an AttributeError #83

archie-was-taken opened this issue Apr 23, 2024 · 2 comments

Comments

@archie-was-taken
Copy link

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
Copy link
Owner

This seems to be an issue with pip on python 3.12

I see two possible solutions :

@Mil0dV
Copy link

Mil0dV commented May 21, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants