OpenSeesPy icon indicating copy to clipboard operation
OpenSeesPy copied to clipboard

import error for python 3.10 on windows

Open msevnctkn opened this issue 2 years ago • 2 comments

hi everyone,

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

msevnctkn avatar Jan 05 '23 10:01 msevnctkn

Hi

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

BijanSeif avatar Jan 05 '23 11:01 BijanSeif

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

runlevel0 avatar Apr 03 '24 09:04 runlevel0