Skip to content
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

TypeError: cannot unpack non-iterable NoneType object #32

Open
ElvezTheElf opened this issue Aug 8, 2021 · 5 comments
Open

TypeError: cannot unpack non-iterable NoneType object #32

ElvezTheElf opened this issue Aug 8, 2021 · 5 comments

Comments

@ElvezTheElf
Copy link

C:\Users\User\Desktop\Ömer\bionluk\dicom2stl-main>python dicom2stl.py dicomFiles/test/ --output test.stl

Temp dir: C:\Users\User\AppData\Local\Temp\tmpb92h54r6
Isovalue = 0.0
Error in loadLargestSeries. No files found.
dicomdir = dicomFiles/test/
Traceback (most recent call last):
File "C:\Users\User\Desktop\Ömer\bionluk\dicom2stl-main\dicom2stl.py", line 160, in
img, modality = dicomutils.loadLargestSeries(fname[0])
TypeError: cannot unpack non-iterable NoneType object

Hello dave3d, above is the error message I get when I tried to use your script to turn an example dicom series intro stl.

I am not sure what that error means, but I also tried putting the files in a .zip file.

Thank you

@dave3d
Copy link
Owner

dave3d commented Aug 9, 2021

Do you have the latest code? I had that bug last week, but I think I fixed it. Can you share you dicom so that I can try it out?

Thanks,
Dave

@theScrabi
Copy link

having the same issue. Should I revert to an older version to get it working?

@dave3d
Copy link
Owner

dave3d commented Oct 6, 2022

I guess you can try that. Can you share with me a data set so I can try and debug it? The other person didn't get back to me.

@theScrabi
Copy link

Yea, I can share with you my logs as well as my dicom data, however the later one I would like to give you in private.

@lvonasek
Copy link

In my case this happened because my files didn't have extension dcm. That could be easily modified here:

for filename in fnmatch.filter(filenames, "*.dcm"):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants