Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.9+ compatibility #204

Closed
wouterpeere opened this issue May 2, 2022 · 7 comments
Closed

python 3.9+ compatibility #204

wouterpeere opened this issue May 2, 2022 · 7 comments
Labels
Milestone

Comments

@wouterpeere
Copy link
Contributor

No description provided.

@wouterpeere
Copy link
Contributor Author

It is (for me) not possible to install the latest version of pyfunction on a python version higher than 3.9 due to problems with the coolprop package.

@wouterpeere wouterpeere changed the title Pygfunction 2.0.0. Pygfunction 2.0.0 - python 3.9 + May 2, 2022
@j-c-cook
Copy link
Contributor

j-c-cook commented May 2, 2022

Pygfunction is tested on Python==3.7 and Python==3.8. The last time I looked into building on Python==3.9 I also had errors. Perhaps this issue should address the Python version in the Requirements section of the README (Document Python version requirements).

os: [ubuntu-latest, windows-latest]
python-version: ['3.7', '3.8']
)

Is there a package you are using that requires you to use Python 3.9, or could you use 3.7 or 3.8?

@MassimoCimmino MassimoCimmino changed the title Pygfunction 2.0.0 - python 3.9 + python 3.9+ compatibility May 2, 2022
@MassimoCimmino MassimoCimmino added this to the v2.2.0 milestone May 2, 2022
@MassimoCimmino
Copy link
Owner

Hello @wouterpeere.

CoolProp does seem to be the cause. I found that they are planning support for py39 in v6.4.2. There is a dev version on their sourceforge which you could use in the meantime if you need py39.

I added this issue to the v2.2 milestone. We can check if CoolProp v6.4.2 is out once we get closer to our release.

@wouterpeere
Copy link
Contributor Author

@j-c-cook @MassimoCimmino Thank you for your responses.

At the moment, I have no specific reason for working with a version higher than 3.8, although in the future (especially with the new, faster, python 3.11), I will be moving to a higher version.

Since I am responsible for GHEtool (https://github.com/wouterpeere/GHEtool), a tool for borefield sizing, I wanted to keep this up to date with the newer versions of python. However, GHEtool uses pygfunction for the calculation of the equivalent borehole resistance of a field, and since the latest version of pygfunction is, due to CoolProp, not available at python >=3.9, we are still using pygfunction v1.1.2 in order to assure compatibility. This is not a big problem, but it would be nice if CoolProp would release a new version so that we can rely on a newer version of pygfunction.

@MassimoCimmino MassimoCimmino modified the milestones: v2.2.0, v2.2.1 Jul 8, 2022
@MassimoCimmino
Copy link
Owner

I am removing this from the v2.2.0 milestone. We can release a version v2.2.x as soon as Coolprop releases a new version that support Python 3.9+.

@MassimoCimmino
Copy link
Owner

@all-contributors please add @mitchute for code, ideas.

@allcontributors
Copy link
Contributor

@MassimoCimmino

I've put up a pull request to add @mitchute! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants