How to update from Python 2.7 to 3.7?

Hi!
I 'm very new with DICOM images processing and with Python
I have 3DSlicer version 4.10.2 installed and the Python version I see in Python Interactor is:

Python 2.7.13 (default, May 16 2019, 14:27:45) [MSC v.1900 64 bit (AMD64)] on win32

Is there a way to upgrade to Python 3.7?

The original reason for wanting to do this is because when trying to load DICOM files I get the following error:

DICOM Plugin failed: ‘module’ object has no attribute ‘TemporaryDirectory’

and from what I 've read, an upgrade to python 3.7 may solve the problem

Thank you

Slicer-4.11 uses Python 3. It also has a greatly improved DICOM browser. See examples in script repository to see how you can manage DICOM files.

1 Like

I have downloaded and installed Slicer-4.11, but still getting errors like the following and couldn’t load any DICOM file yet.

Thanks anyway!

That means that your DICOM files are corrupted. What software created them?

I only have the information from the file’s metadata, so I can see the following:
Source Application Entity Title: ECHOPAC
Manufacturer: GE Vingmed Ultrasound
Manufacturer’s Model Name: EchoPAC PC SW-Only

You may try running the image through DICOM patcher module to see if that can fix the format error.

Could you provide a sample image file (must not contain patient information; preferably an original scan of any object, not a patient)?

I run the DICOM patcher on the data and then, when I tried to import, I got the following errors and couldn’t import the data:

Unfortunately I’m not allowed to publish the files, even anonymized, and I don’t have access to the machine to get a new scan of an object.

It looks like your files are pretty badly formatted or maybe corrupted by some processing step. Since you can’t share them, a good path would be for you would be to study up on dicom. There are tons of books and web pages. Also try the analyze tab on the innolitics site to better understand what’s going on inside.

I will. Thank you for your answers!