belson17 / modred

Modred main repository
BSD 2-Clause "Simplified" License
78 stars 38 forks source link

Install error due to Python Version? #51

Closed seph-w closed 3 years ago

seph-w commented 3 years ago

Hi,

I'm having issues getting modred installed with Python 3.6.23 (pip version 21.0.1) .

Package Version


certifi 2020.12.5 numpy 1.19.5 pip 21.0.1 pypi 2.1 setuptools 52.0.0.post20210125 wheel 0.36.2 wincertstore 0.2

The pip install fails.

ImportError: modaldecomp requires python version 2.7.x

If I try the setup.py (from modred-2.0.4.post6) it fails with an error

TypeError: 'version' object is not iterable

Do I have anything wrong with my environment configuration?

Thanks

jhtu commented 3 years ago

This was a bug that we have fixed in the source code, but unfortunately we have not published the release yet. (We hope to soon!)

You can resolve this by downloading the source code from github and running python setup.py install from the code directory. I believe there is a pip command to install from a github URL too, if you want to do that instead. Something like this: pip install git+https://github.com/belson17/modred.

ziehermoritz commented 3 years ago

Hello,

I have the exact same error and wanted to ask if there is any solution to it?

the python setup.py install also fails unfortunately?

best regards!

jhtu commented 3 years ago

Did you try the setup.py from the github repo, not the PyPI package?

jhtu commented 3 years ago

I just released a new version of the code, so it should install fine from PyPI. The new version is 2.1.0 and has many new features. Sorry for the slow response. I hope you are still using the code, and if so, I am happy to try and help you resolve any issues you have.