medspacy icon indicating copy to clipboard operation
medspacy copied to clipboard

installing medspacy in a clean environment leads to a numpy binary compatibility error when importing

Open barney-ellis opened this issue 1 year ago • 4 comments

When I install medspacy in a clean environment (Python 3.11) and try importing it in a script, I get a binary incompatibility error. I believe this is because the spacy dependency is still pinned to <3.6, which is constrained to older version of thinc:

image

Pinning spacy to the latest version (3.8.2) fixes this issue for me. Has anyone else experienced this issue?

barney-ellis avatar Oct 17 '24 11:10 barney-ellis

We're looking into this, but it could be related to this: https://github.com/explosion/spaCy/issues/13669

burgersmoke avatar Oct 24 '24 19:10 burgersmoke

@barney-ellis can you tell us which version of numpy is installed in your environment?

burgersmoke avatar Oct 24 '24 19:10 burgersmoke

It looks like our continuous does fail with this error. So we might consider allowing newer version of spacy now:

https://github.com/medspacy/medspacy/actions/runs/11505912339/job/32028669661

burgersmoke avatar Oct 24 '24 19:10 burgersmoke

Thanks @burgersmoke, when I install medspacy using pip in a python 3.11.5 environment my numpy version is 2.1.2 and I get the above error. Pinning spacy to 3.8.2 my numpy version is 2.0.2 and I no longer get the error

barney-ellis avatar Oct 25 '24 07:10 barney-ellis

I believe this is resolved with our latest release 1.3.1. Close this issue.

jianlins avatar Nov 21 '24 22:11 jianlins