upb-lea / FEM_Magnetics_Toolbox

An Open-Source FEM Magnetics Toolbox for Power Electronic Magnetic Components
https://upb-lea.github.io/FEM_Magnetics_Toolbox/
GNU General Public License v3.0
66 stars 11 forks source link

Won't import on Python version 3.9 #96

Closed pleepleus closed 6 months ago

pleepleus commented 6 months ago

Describe the bug In version 3.9, I get the following exception when I attempt to import the library.

TypeError: unsupported operand type(s) for |: '_GenericAlias' and 'type'

The ``|``` syntax for type hints requires at least 3.10.

To Reproduce pip install in python < 3.10 and try to import

Expected behavior Should either import successfully or throw an installation error stating the need for Python 3.10 or greater.

Screenshots image

Desktop (please complete the following information):

gituser789 commented 6 months ago

thanks! As latest versions of Debian and Ubuntu use python version 3.11 and 3.12, and 3.10 was introduced more than 2 years ago, i think we can drop the support for older python versions.

Minimum requirement is now python 3.10.