Open boydcpeters opened 4 months ago
It could be because the compiled libraries on github have not been updated.
This isn't documented well, but if you run the hackinstall script it calls both the cpp build (cppbuld.sh) and the edibableinstall.sh. So if it works you should have the newest version of the native libary.
There is some description of how to set up the build here.
Let me know if you run into any issues. I haven't documented everything as well as I would have liked, but I am usually happy to give support here or on the Image.sc forum.
Thanks for the quick reply! Once I have some time again, I will try it out and if I run into issues I will let you know.
Hi, apologies for the delayed reply. Unfortenately, our data turned out to be too noisy to carry out any meaningful deconvolution, so I set this project aside while finishing my master's thesis.
That said, I appreciated your help, so I wanted to revisit it. After running hackinstall.sh
(which appears to perform a Python build followed by an editable install), I still encountered the same error as before.
When I print out lib
and dir(lib)
inside the richardson_lucy_dask
function, I get the following:
Library loaded: <CDLL 'clij2fft.dll', handle 7fffca3c0000 at 0x1e153d0a510>
Available methods in library: ['_FuncPtr', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattr__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_func_flags_', '_func_restype_', '_handle', '_name', 'convcorr3d_32f', 'deconv3d_32f', 'deconv3d_32f_tv']
I hope this information is helpful if you’re continuing to work on it. And would you like me to close the issue or keep it open?
Hello!
I am trying to get the live version of clij2-fft to work in Python on Windows. I have cloned the repository clij2-fft repository and have edited the paths in the
copylibsconda.sh
file so it copies the libraries to the correct anaconda environment. Afterwards, I ran theeditableinstall.sh
file. I am happy to confirm that the package was installed and that all the Windows libraries are correctly copied into my Anaconda library. However, when I try to run the interactive test:test_richardson_lucy_dask.py
I get the following error:However, the deconvolution does seem to run as can be seen with the printed output if
debug=True
in therichardson_lucy_dask()
function:Do you have any idea what could be going wrong?
I have also installed clij2-fft via PyPI in a different conda environment and when I run the
test_richardson_lucy_dask.py
file with some of the kwargs removed as they are not yet in the package on PyPi then the file does run. So I am able to get the dask version to work, but the live version has multi-GPU support and this is something I would like to try out.