Closed danielmk closed 2 months ago
Hi Daniel,
Something is not working as it should. There appears to be an issue with the optional dependency Cupy. I thought it was setup so that the base install would ignore the GPU versions. I'll investigate this and give you an update once I resolve this issue.
I believe I have fixed the issue
Thank you for the fix. I can indeed import pyneurotrace now. Without having cupy installed. If I understand correctly, the pip install described in the readme installs pyneurotrace always in a way that it does not support the GPU implementation. I think that's generally good, since users should be able to explore the package without worrying about GPU. However, since the GPU implementation is a major part of the JOSS submission, I'd suggest that the readme should explain how to install with GPU support.
There is a flag for the pip install command that will include Cupy (pip install pyNeuroTrace[GPU]) which will try to install Cupy with other dependencies. This is currently noted in the documentation but not the ReadMe. It is a bit tricky because Cupy is dependent on several requirements that must be set up for it to work correctly.
I agree with your suggestion and I have updated the ReadMe to detail installing pyNeuroTrace with Cupy. I'll add some of what I've written into the documentation as well so that it had additional detail and links to Cupy documentation as well.
I've also noticed that numpy 2.0 breaks several functions and I will have to updated the requirements to use a numpy version <2.0 until I can investigate why they are breaking and update them accordingly.
pyneurotrace installs now without cupy so this is closed. If I run into problems installing with cupy I will open a separate issue.
This issue is part of the review at openjournals/joss-reviews#6877
This issue concerns the installation instructions.
I created a new environment with
conda create --name pyneurotrace python=3.9
and then in the new environment ranpip install pyneurotrace
as per the installation instructions. pip does not raise any errors. Then in Python I get the following error trying toimport pyneurotrace
:Did I miss something? I'm on windows 10.