jrkerns / pylinac

An image analysis library for medical physics
MIT License
145 stars 94 forks source link

Current master doesn't work Python 3.6 due to dataclasses #389

Closed randlet closed 3 years ago

randlet commented 3 years ago

Describe the bug

Importing Pylinac from current master branch produces

  File "/home/randlet/projects/packages/pylinac/pylinac/__init__.py", line 12, in <module>                                                                                                                         
    from pylinac.ct import CatPhan504, CatPhan600, CatPhan503, CatPhan604                                                                                                                                          
  File "/home/randlet/projects/packages/pylinac/pylinac/ct.py", line 13, in <module>                                                                                                                               
    import dataclasses                                                                                                                                                                                             
ModuleNotFoundError: No module named 'dataclasses'

There is a backport of dataclasses library for 3.6. PR incoming...