tlambert03 / pycudadecon

Python wrapper for cudaDecon - GPU accelerated 3D deconvolution for microscopy
http://www.talleylambert.com/pycudadecon/
MIT License
59 stars 12 forks source link

circular import error with pucudadecon #32

Closed OptoManishK closed 3 years ago

OptoManishK commented 3 years ago

Hi, I am just getting started with this package to do deconvolution.

For the very first line of the example code I ran into this error: ImportError: cannot import name 'decon' from partially initialized module 'pycudadecon' (most likely due to a circular import)

I am on a windows 10 PC and used following to install pycudadecon in a new environment:

conda create --name test python
conda activate test
conda install -c conda-forge cudadecon cudatoolkit=11.2

Any pointers to what might be going wrong?

tlambert03 commented 3 years ago

hmm.. that seems like something that would be an error on my end, but I can't reproduce it. I just ran the code you listed above (but I changed cudadecon to pycudadecon, I assume that was a typo?) and it worked for me, when I tried from pycudadecon import decon... can you perhaps provide a bit more info on how you're importing it?

OptoManishK commented 3 years ago

oops ..... i copied that typo from Documentation section of readme.md file image

I corrected it and everything runs without errors. Thank you and please update that typo.

I'm excited to try this.

tlambert03 commented 3 years ago

Oops! Thanks!

tlambert03 commented 3 years ago

updated thanks... Also, just in case you missed it, that "Documentation" word there is a link to the documentation: https://www.talleylambert.com/pycudadecon/index.html ... (not the complete documentation section :) )