ehtec / pie-chart-ocr

A tool to extract tabular data from pie charts.
MIT License
2 stars 0 forks source link

Error installing piechartocr #1

Open hemaswapnika1 opened 4 months ago

hemaswapnika1 commented 4 months ago

Facing the below error while installing through pip: ERROR: Could not build wheels for piechartocr, which is required to install pyproject.toml-based projects

Facing the below error while installing through git clone: src/colorprocesser.cpp(4): fatal error C1083: Cannot open include file: 'color/color.hpp': No such file or directory error: command 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.39.33519\bin\HostX86\x64\cl.exe' failed with exit code 2

ehtec commented 4 months ago

I have not uploaded any windows builds which is why pip install fails

I believe you forgot to use --recursive in the git clone command, which is why the submodule called color was not cloned and is missing on your disk

PS: I have not updated this tool for some time, and it was made before the LLM era. It might be the case that some off-the-shelf model with image parsing capabilities works better for this job by now. If you find some LLM tool that can do this kind of chart parsing better, would appreciate if you let me know here or by email

hemaswapnika1 commented 4 months ago

I am using the same command provided by you: git clone --recursive https://github.com/ehtec/pie-chart-ocr.git Still I am getting the above mentioned error

ehtec commented 4 months ago

Is the color.hpp file in your folder color/src/color or not?

hemaswapnika1 commented 4 months ago

color folder is empty

ehtec commented 4 months ago

I don't know why, but your git clone is misbehaving. https://stackoverflow.com/questions/3796927/how-do-i-git-clone-a-repo-including-its-submodules

They submodule is https://github.com/dmilos/color/tree/46ce1bda2f1fc71060e01546ea400ed9fc9d0190, you can also copy it there manually

I don't have time to debug this further