-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Surprise ImportError #399
Comments
What version of Cython are you running? Seems that the issue stems from a slightly older version of Cython being incompatible with Python 3.10.1, I found reference to it in the Cython repo issues. If there is an update to your version of Cython available, install that. Otherwise, there are some instructions in the linked issue around building the latest release of Cython from source. Alternatively, if possible, try using Python < 3.10.1 (maybe 3.9) |
I will attempt to install from source as downgrading Python is not an option at the moment. |
I just realised that what you're downloading when you install Surprise may be a pre-compiled wheel, which would have been compiled with an older version of Cython. Perhaps try this:
(from the README) It should compile Surprise with the new version of Cython you have installed. |
I hit the same issue.
Then I did:
End of the build log
After that I tried again:
I don't think I understand the problem and I can't really dig deeper into it right now, but maybe someone more knowledgeable can make something out of it. Recreating the venv with Python 3.9 (
|
We also had a problem with importing
So it seems the Line 2 in 46b9914
is too loose and it should be more like numpy>=1.22 (or at least it should exclude version range around 1.20 )
|
Description
I am working on a recommender systems project and Surprise has been used as the preferred package in my examples. However, I'm experiencing problems when I use Surprise. There results in an import error attributed to the cpython library. Below is the error encountered:
Steps/Code to Reproduce
python -c 'import surprise; print("surprise", surprise.__version__)'
Expected Results
1.1.1
Actual Results
Versions
Linux-5.15.12-200.fc35.x86_64-x86_64-with-glibc2.34
Python 3.10.1 (main, Dec 9 2021, 00:00:00) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)]
Getting the version for surprise failed when executed in the code for "Steps to reproduce"
The text was updated successfully, but these errors were encountered: