zhuminjie / OpenSeesPy

OpenSeesPy versions, doc, and pip
Other
167 stars 66 forks source link

import error for python 3.10 on windows #102

Open msevnctkn opened 1 year ago

msevnctkn commented 1 year ago

hi everyone,

i have installed openseespy using pip. However does not work. pw

BijanSeif commented 1 year ago

Hi

As I know, Currently latest version of Openseespy is compatible with python v3.9

runlevel0 commented 5 months ago

I occasionally bump into issues like this, too.

In the (openseespy documentation)[https://openseespydoc.readthedocs.io/en/latest/] there is the specific Python version mentioned wich is required for the current version of openseespy for Windows. At the time of writing, this is Python 3.11: image

The reason is, I suppose, that the build process is quite complicated and probably done in a (semi-)manual fashion. For Windows, it is not automated via GitHub Actions, because of missing Fortran support. So any windows build of the package is kindly provided by the maintainer @zhuminjie.

The workaround to the issue is to find the last openseespy version that is built for a specific Python version. The last version compatible with Python 3.10 is 3.5.1.3, so I imagine this could help:

python -m pip install openseespy==3.5.1.3