zfergus / topopt

A Python Library for Topology Optimization
https://pytopopt.readthedocs.io/en/latest/
MIT License
94 stars 28 forks source link

Installation Error #2

Open meldiwin opened 3 years ago

meldiwin commented 3 years ago

File "setup.py", line 6, in import topopt File "/home/marwa/topopt/topopt/init.py", line 4, in from . import boundary_conditions File "/home/marwa/topopt/topopt/boundary_conditions.py", line 28 def init(self, nelx: int, nely: int): ^ SyntaxError: invalid syntax

zfergus commented 3 years ago

Could you please provide more information about which version of Python you are using? This line contains type hinting (https://docs.python.org/3/library/typing.html) which was added in Python 3.5. Therefore we only support Python >= 3.5

meldiwin commented 3 years ago

I tried python3 and later on there this error: src/C/umfpack.c:23:10: fatal error: umfpack.h: No such file or directory 23 | #include "umfpack.h" | ^~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1