paramak icon indicating copy to clipboard operation
paramak copied to clipboard

Installation fails on Apple Silicon (ARM64) MacBook Pro

Open chrisstuartparry opened this issue 2 years ago • 3 comments
trafficstars

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.

chrisstuartparry avatar Jul 27 '23 10:07 chrisstuartparry

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

shimwell avatar Jul 27 '23 13:07 shimwell

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.

chrisstuartparry avatar Jul 27 '23 14:07 chrisstuartparry

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

shimwell avatar Jul 27 '23 18:07 shimwell