Chaste / chaste-docker

Docker images for Chaste
https://hub.docker.com/r/chaste/
MIT License
9 stars 8 forks source link

Merge PyChaste installation steps into Chaste docker images #21

Open bdevans opened 2 months ago

bdevans commented 2 months ago
bdevans commented 2 months ago

@kwabenantim Please could you have a look at #22 to see why it's giving the following error? make: *** No rule to make target 'pychaste'. Stop.

kwabenantim commented 2 months ago

@bdevans It looks like it might be trying to build from the old PyChaste project repo. Sorry, I should have mentioned that it's currently on the 273-pychaste-merge branch on the main Chaste repo now. Should probably archive the old project once it's merged in.

bdevans commented 2 months ago

Thanks @kwabenantim. Building from th 273-pychaste-merge branch gets further but I have now run into this:

586.1 [100%] Built target pychaste
586.5 Processing ./build/pychaste/package
586.5   Installing build dependencies: started
587.4   Installing build dependencies: finished with status 'done'
587.4   Getting requirements to build wheel: started
587.5   Getting requirements to build wheel: finished with status 'done'
587.5   Preparing metadata (pyproject.toml): started
587.6   Preparing metadata (pyproject.toml): finished with status 'done'
587.6 Requirement already satisfied: matplotlib in /usr/lib/python3/dist-packages (from chaste==2024.1) (3.5.1)
587.6 Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from chaste==2024.1) (1.21.5)
587.6 Requirement already satisfied: petsc4py in /usr/lib/petscdir/petsc3.15/aarch64-linux-gnu-real/lib/python3/dist-packages (from chaste==2024.1) (3.15.1)
587.7 INFO: pip is looking at multiple versions of chaste to determine which version is compatible with other requirements. This could take a while.
587.7 ERROR: Could not find a version that satisfies the requirement vtk (from chaste) (from versions: none)
587.8 ERROR: No matching distribution found for vtk
bdevans commented 2 months ago

To reproduce, clone chaste-docker (git clone git@github.com:Chaste/chaste-docker.git) and run:

MULTI_ARCH_BUILD=false GIT_TAG="273-pychaste-merge" make develop
kwabenantim commented 2 months ago

I got it to install in an ubuntu:jammy container with

pip install --user --no-deps pychaste/package

This should be fine as the dependencies are already manually from apt (mostly)

apt install python3-petsc4py python3-vtk7 python3-xvfbwrapper python3-numpy python3-matplotlib
pip install --user jupyterlab