codercahol / chlamy-ImPi

An image processing pipeline for time-series of Chlamydomonas reinhardtii fluorescence photos
Other
0 stars 0 forks source link

Installing dependencies - torch error #1

Closed murraycutforth closed 8 months ago

murraycutforth commented 9 months ago

Using poetry install wasn't quite enough to recreate a working environment. I got this error message when trying to import torch:

ValueError: libcublas.so.*[0-9] not found in the system path ['', '/usr/lib/python311.zip', '/usr/lib/python3.11', '/usr/lib/python3.11/lib-dynload', '/home/murray/.cache/pypoetry/virtualenvs/chlamy-impi-QRXMfk8L-py3.11/lib/python3.11/site-packages', '/home/murray/Projects/chlamy-ImPi']

It looks like this is a known issue with poetry and torch 2.0.1: https://github.com/python-poetry/poetry/issues/8002

Just running pip install torch in the poetry shell seemed to work, as it's now downloading a bunch of big cuda dependencies.

codercahol commented 9 months ago

did you just get around this by installing pytorch locally, outside of the poetry env?

codercahol commented 9 months ago

now seeing that you copy-pasted the necessary code into a single file and got rid of the. dependencies that you couldn't install. I am going to try to merge them back into the existing code I have in the cleanup branch.

codercahol commented 8 months ago

no more torch dependency