usnistgov / fipy

FiPy is a Finite Volume PDE solver written in Python
http://pages.nist.gov/fipy/en/latest
Other
505 stars 148 forks source link

future.standard_library breaking python 3.12 compatibility #997

Closed boatmorrow closed 3 months ago

boatmorrow commented 8 months ago

future.standard_library imports the imp module which is gone in python 3.12. So, future.standard_library is not really python 3.12 compatible.

issue tracker

This means fipy breaks in python 3.12 at the import of the entire future.standard_library. I'm thinking a work around could be, to be more selective about what parts of future are imported?

guyer commented 7 months ago

I'm impressed you got FiPy to install with Python 3.12 at all. I've fixed this particular issue on #1023. That won't be merged to master until I can expunge Python 2.7 (RealSoonNow (tm)) (versioneer.py cannot be compatible with Python 2.7 and Python 3.12).