explosion / explosion/spacy-layout
ValueError: Incompatible ufunc type between scipy and numpy in sph_legendre_p
Open
- Dominant language
- Python
- Stars
- 911
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting the following error when processing a PDF document using `spacy-layout`:
```
ValueError: All ufuncs must have type `numpy.ufunc`. Received (, , )
```
The issue happens when running this code:
```python
doc = layout('/kaggle/input/tables-different-cases-cropped/aramco_page_1.pdf')
```
It seems like `scipy` is having trouble with the `sph_legendre_p` function, possibly due to a version mismatch with `numpy`.
Libraries versions:
- Python Version: 3.11.13
- scipy version: 1.15.3
- numpy version: 1.26.4
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.