explosion / spacy-layout

📚 Process PDFs, Word documents and more with spaCy
MIT License
176 stars 8 forks source link

Install has error #8

Open thaonguyen1153 opened 1 week ago

thaonguyen1153 commented 1 week ago

Hi, I try to install but it run into an error: error: subprocess-exited-with-error

at Using cached scipy-1.9.1.tar.gz (42.0 MB) Installing build dependencies ... done Getting requirements to build wheel ... error

with this error

File "C:\Programme\anaconda3\envs\docemb\Lib\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['meson', 'setup', '--native-file= ... \\.mesonpy-_f2g4b6r\\build']' returned non-zero exit status 1.

What could I do to resolve the error?

ines commented 1 week ago

Hi! It sounds like the dependency you're installing doesn't have a wheel available for your platform and fails to build it. Are you using Python 3.10+?

And do you have the same error when installing Docling directly?

pip install docling

If so, you could look into the installation docs for Docling and open an issue on their tracker if needed.

ieea commented 6 days ago

I also faced the same issue while installing spacy-layout but the Docling installed succesfully, please provide the resolution.

r-remus commented 6 days ago

I also couldn't install it successfully, neither in a Python 3.10 nor in a Python 3.12 virtual environment.

Edit: I could install docling without issues.

thaonguyen1153 commented 5 days ago

Hi! It sounds like the dependency you're installing doesn't have a wheel available for your platform and fails to build it. Are you using Python 3.10+?

And do you have the same error when installing Docling directly?

pip install docling

If so, you could look into the installation docs for Docling and open an issue on their tracker if needed.

I use python 3.11. I have other problem when installing docling.

However, I can finally run spacy-layout with pip install -r requirements.txt --only-binary=:all:. I can get to the test now.

lj440 commented 5 days ago

Hi, hope somehow You did manage the formentioned issue during installation. I wasn't sucessfull. Dockling is not a problem. Nor any of the other two pacages mentioned in the requierments.text. Hitting pip install spacy-layout I get the following message: image Somehow pyproject.toml does not run successfully.Is it something about the compilers being not properly attached to the system path? Sombody an idea? Thanks in advance. Greetings from Germany, Luke

lj440 commented 5 days ago

Back from work and this worked out: pip install spacy-layout --only-binary=:all: