-
Notifications
You must be signed in to change notification settings - Fork 1
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
RuntimeError: incompatible bytecode version when loading UMAP model from pickle #2
Comments
Hi, could you check your |
Hi, thanks for the suggestion! I checked my package versions, and they match exactly:
I set up two different Python environments. In one, I installed the requirements using pip, and in the other, I used conda. Both encountered the same issue. Could it be possible that the file |
I checked the file on OSF, and it should be the correct one ( |
Here is a link to the cloudpickle version, maybe that works: https://upload.uni-jena.de/data/66ea7c206f1044.70440131/umap_embedding_biostructures_cp.pkl As I understand it, the python version has to be the same (3.9.18 for me), but otherwise dependency versions don't matter for cloudpickle. The cloudpickle version is 3.0.0. By the way, have you checked the MD5 checksum for the pickle file? |
Thanks again for your prompt help! The MD5 cheksum was correct. Using Python 3.9.18 solved the issue. I would suggest adding a note in the README.md to specify the required Python version for future users. |
Thanks, glad that it finally worked. I will add that to the README. |
I encountered a RuntimeError while attempting to load a pre-trained UMAP model from a pickle file and apply a transformation to an array. The error message indicates an incompatible bytecode version. I am using Python 3.8 and the dependencies from the requirements.txt file. I encountered this issue on both Windows and Linux.
Error message:
The text was updated successfully, but these errors were encountered: