amusecode / amuse

Astrophysical Multipurpose Software Environment. This is the main repository for AMUSE
http://www.amusecode.org
Apache License 2.0
154 stars 98 forks source link

BHTree pip installation issues #990

Closed luk7715 closed 11 months ago

luk7715 commented 11 months ago

Describe the bug I tried to install amuse-bhtree with pip but it didn't work.

To Reproduce pip install amuse-bhtree

Expected behavior I expect amuse-bhtree to install and work.

Logs bhtree-bug.txt

Environment (please complete the following information): WSL2 and ubuntu

bhtree-bug.txt

GijsVermarien commented 11 months ago

Seems to also be an issue for the building of the release candidate for some reason? https://www.piwheels.org/logs/0000/1092/1090.txt

rieder commented 11 months ago

Yes. I suspect it is due to a newer version of setuptools_scm.

rieder commented 11 months ago

Could you try installing setuptools_scm==7.1.0 and then retrying amuse-bhtree?

luk7715 commented 11 months ago

Could you try installing setuptools_scm==7.1.0 and then retrying amuse-bhtree?

My version of setuptools_scm is 7.1.0, tried to uninstall and reinstall it but the pip install for amuse-bhtree is still failing

rieder commented 11 months ago

Which version of setuptools do you have?

rieder commented 11 months ago

I found the problem, it indeed has to do with setuptools_scm. I think building AMUSE will still use the newer version, which is annoying. I am preparing an updated release of amuse.

rieder commented 11 months ago

2023.10.0rc2 should fix the issue, uploading now.

rieder commented 11 months ago

Can you confirm that pip install --upgrade --pre amuse-framework amuse-bhtree fixes the problem?

luk7715 commented 11 months ago

Can you confirm that pip install --upgrade --pre amuse-framework amuse-bhtree fixes the problem?

That worked when I created a new environment.

However, when I tried the same command in my working environment with the other parts of AMUSE (Hermite, SeBa, Fi, etc.) installed and functional, BHTree still failed to build.

Here's the log bhtree-not-build.txt

rieder commented 11 months ago

The log is empty? I think it may be related to cached builds though (it's a bit complicated). You may have to uninstall the old amuse packages first, then install amuse-framework and then the other packages. I'm sure the original bug is fixed now, but in doing so I created a minor new bug (the version reported by the various community codes is incorrect) that I'm fixing now - will be done in the final 2023.10.0 release, hopefully today.

rieder commented 11 months ago

2023.10.0 now released, please upgrade the framework with pip install --upgrade amuse-framework