Closed peter1rhodes closed 2 years ago
@peter1rhodes Thanks. I think we did fix this for lmfit and Python 3.7, but we should add it here too. PR welcome!
I'll have a look and see what I can do. I'm using lmfit but it's lmfit's dependency on asteval that seems to cause the problem
@newville it appears that in the master branch, the issue should be sorted for pip? i.e. requirements.txt specifies that the dependency should be installed for python < 3.8, so perhaps the issue is either that this requirement has not correctly translated when it was built for conda, or it could simply be that the project needs releasing with the latest code? It appears that the current latest release, 0.9.26, was made before this fix?
@peter1rhodes Oh, thanks. Going through the commit history, it looks like this was already added just before releasing 0.9.26, but then updated to use setup.cfg, pyproject, setuptools_scm... So I'll push out a release. Hopefully, that will fix it.
@peter1rhodes I tagged and pushed v 0.9.27. Please let me know if you still have trouble...
@newville thank you! Are you able to upload it to conda-forge? I should be able to check it then
@newville I have put in a PR to update the conda-forge feedstock. If I've done something wrong, forgive me! This is all very new to me, so hopefully I've done the right things
When trying to install asteval 0.9.26 for python=3.7, which the package allows as a valid python version, there is the following error when importing asteval:
This can be reproduced by conda installing, e.g.:
conda create -n test python=3.7 conda-forge::asteval
and then in Python in that env trying:
import asteval
This appears to be related to a requirement for importlib_metadata being installed in Python versions <3.8, as referenced in other commits and issues, but the current released version does not work. Is there a workaround for this? Or does a newer version needs releasing?