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

Installation existing PyYAML version being ignored #266

Open
MrBenGriffin opened this issue Jan 7, 2024 · 4 comments
Open

Installation existing PyYAML version being ignored #266

MrBenGriffin opened this issue Jan 7, 2024 · 4 comments

Comments

@MrBenGriffin
Copy link

Describe the bug
I am no good at understing auto installation stuff.
However, I see "Collecting PyYAML>=5.0.0 (from openpecha==0.11.9)" - and the build fails despite having installed PyYaml 6.0.1
This is attempting to install openpecha on MacOS (M1) Sonoma (14.2.1) with python 3.12

I would really like to be able to OCR some old scans. I don't know if you are aware of MLX (cf. https://github.com/ml-explore) but this speeds up numpy based stuff, and neural networks (moving it all onto the GPU) quite considerably.

Copy link

github-actions bot commented Jan 7, 2024

Welcome! 😁 This is your first Issue

@eroux
Copy link
Contributor

eroux commented Jan 7, 2024

Hi @MrBenGriffin thanks for opening this issue!

Could you copy/paste the error message you get when you try to install?

We are starting to develop an interface to OCR files locally but it is far from ready (I'm not sure you're expecting that from the OpenPecha toolkit?). We have a good automatic workflow to run Google OCR on images uploaded to BDRC though (upload to BDRC is relatively easy now), would that be of interest to you?

@shenzo1
Copy link

shenzo1 commented Apr 6, 2024

Hi @eroux,

That would be of interest to me as I have been doing that manually (download the image files and OCR with google docs). Is that something you can share?

@jimk-bdrc
Copy link

jimk-bdrc commented Jul 5, 2024

@MrBenGriffin I was having a similar problem, trying and traced it to this requirement in Toolkit/setup.py (the source download)

        "antx>=0.1.10, <2.0",      

The antx distribution on pyPI says its last posted release is 0.1.11, and this one requires PyYAML>=5.4.1, < 6.0 But on the antx Github site, the latest release is 0.1.14.0, which can usePyYAML>=6.0

I submitted Esukhia/antx#11 to get @Esukhia to post antx-v0.1.14 to pyPI, but until then, this is how I worked around it.

The idea is to provide PyYaml to openpecha through the fixed antx release
Assumption is you are in some venv:

Go to antx v0.14 release page
Download antx-0.1.14-py3-none-any.whl (say, to ~/Downloads)

pip uninstall antx
pip uninstall pyyaml
pip cache purge
pip install ~/Downloads/antx-0.1.14-py3-none-any.whl
pip install openpecha

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

4 participants