peterdsharpe / AeroSandbox

Aircraft design optimization made fast through modern automatic differentiation. Composable analysis tools for aerodynamics, propulsion, structures, trajectory design, and much more.
https://peterdsharpe.github.io/AeroSandbox/
MIT License
687 stars 111 forks source link

Compatibility with python 3.12 #116

Closed leomariga closed 4 months ago

leomariga commented 5 months ago

Hey, nice project =)

I noticed that the numpy version for this project is not compatible with newer python versions (3.12)

The current numpy version for this project (1.24.4) tries to access the distutils folder from python, but it was discontinued in 3.12:

"It was deprecated in Python 3.10 by PEP 632 “Deprecate distutils module”. For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils." What is new? (python 3.12)

When I try to install through poetry I get the following error:

cmd_atIFSAzpFV

It would be nice to have support to newer versions =)

leomariga commented 5 months ago

Update: I installed with numpy 1.26.3 and the installation was a success.

The downside: the issue #113 is still a problem tho. Since I do not use the optimizer this is not a problem for me.

peterdsharpe commented 4 months ago

@leomariga Update on this issue: 3.12 is now supported as part of ASB v4.2.2, live on PyPI!

pip install --upgrade aerosandbox[full]