fusion-energy / paramak

Create parametric 3D fusion reactor CAD and neutronics models
https://fusion-energy.github.io/paramak
MIT License
67 stars 21 forks source link

Installation fails on Apple Silicon (ARM64) MacBook Pro #319

Open chrisstuartparry opened 1 year ago

chrisstuartparry commented 1 year ago

When following the instructions in the readthedocs, the following line fails:

mamba install -c fusion-energy -c cadquery -c conda-forge paramak=0.8.7

with the following output:

Could not solve for environment specs 
The following package could not be installed 
L paramak 0.8.7** does not exist (perhaps a typo or a missing channel).

I'm guessing this is because an ARM build doesn't exist yet? Will try developer install.

shimwell commented 1 year ago

Sorry I don’t think this was an option on conda when i did the last release. I can take a look for the next release. Do let me know if the developer install works for you

chrisstuartparry commented 1 year ago

I got it installed via pip install -e . in the relevant directory (~/repositories/paramak) on my machine. However, run_tests.sh fails. Firstly as pytest isn't installed when installing paramak this way, and secondly (after I installed pytest via mamba), because the directory examples_tests isn't found. It also says that there's an error in the usage of pytest as it "contains unrecognized arguments: --cov=paramak --cov-append --cov-report term --cov-report xml". Let me know if you want my entire output from this.

shimwell commented 1 year ago

oh yes I should update the developer install details to say

pip install -e .[tests]

instead of

pip install -e .

and I should add a line saying run the tests with this command

pytest tests

I can perhaps also delete that old run_tests.sh file

thanks for all the details