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

import dicom2jpg not working #3

Closed
seanko29 opened this issue Nov 18, 2021 · 7 comments
Closed

import dicom2jpg not working #3

seanko29 opened this issue Nov 18, 2021 · 7 comments

Comments

@seanko29
Copy link

Hello.

First of all, I really appreciate you for making cool package.
However, it seems that dicom2jpg package is not working at all.
It says that dicom2jpg has no attribute as such found on image.
What I did was pip install dicom2jpg only.
Is there something that I should do more?

image

@ykuo2
Copy link
Owner

ykuo2 commented Nov 18, 2021 via email

@seanko29
Copy link
Author

Hi, it seems that you have an file named dicom2jpg.py in your /src folder, so python would import(run) that .py file first, instead of importing the dicom2jpg module. try install dicom2jpg via pip, and rename the dicom2jpg.py in your /src folder hope this helps. Donggeun Ko @.***> 於 2021年11月18日 週四 下午2:30寫道:

Hello. First of all, I really appreciate you for making cool package. However, it seems that dicom2jpg package is not working at all. It says that dicom2jpg has no attribute as such found on image. What I did was pip install dicom2jpg only. Is there something that I should do more? [image: image] https://user-images.githubusercontent.com/72428646/142364113-f02c8511-4e32-43b0-a5d7-329d0f5e4171.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#3>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI77ALJNVE476EBVOPVUALTUMSMRHANCNFSM5IIZWBXA .

Thanks for suck quick comment :).
I have one more question if you do not mind.
I solved the issue of the dicom2jpg.py in my src.
If I type in my command line python dcjp.py nothing happens (dcjp.py is dicom2jpg.py . I just renamed it)

image

In the file, it looks like this.

image

Thank you in advance!!

@seanko29
Copy link
Author

I think I will followup the question. It seems to work when I do not add target_root for dicom2png.
Does target_root only work for dicom2jpg.dicom2bmp?

@ykuo2
Copy link
Owner

ykuo2 commented Nov 18, 2021 via email

@ykuo2
Copy link
Owner

ykuo2 commented Nov 18, 2021 via email

@seanko29
Copy link
Author

Hello,

Everything works fine now ! 👍 .
I did not realize that dicom2jpg and dicom2png both works with target_root.
Is there any other parameters that I can utilize?

Thanks for the great help! Love the package 💯

@ykuo2
Copy link
Owner

ykuo2 commented Nov 18, 2021 via email

@ykuo2 ykuo2 closed this as completed Nov 9, 2022
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

2 participants