gacou54 / pyorthanc

Python library that wrap the Orthanc REST API and facilitate the manipulation of data in Orthanc
MIT License
49 stars 10 forks source link

import pydicom throwing "TypeError" #40

Closed uditgoswami closed 1 year ago

uditgoswami commented 1 year ago

I am trying to work with pyorthanc, but its throwing me a "TypeError" while doing the import.

Python version: 3.8.12 I am using Miniconda3 as my conda distro ([GCC 7.5.0] :: Anaconda, Inc. on linux)

Please let me know if there is something I am doing wrong here. Screenshot from 2023-09-14 17-40-58

gacou54 commented 1 year ago

Hi, thank you for making an issue! Indeed this is due to the list type-hint (should be typing.List for python3.8). There is already a fix here #39. I will release a new version with the fix in the next hour.

gacou54 commented 1 year ago

Fixed in the new release PyOrthanc 1.12.2.

Simply upgrade pyorthanc (I think it will be conda update pyorthanc with conda)