Open davidscn opened 2 years ago
Given a clean jammy container
docker run --rm -it ubuntu:jammy
The following commands succeeded:
apt update
apt-get install software-properties-common
add-apt-repository ppa:fenics-packages/fenics
apt-get update
apt-get install fenics
apt install wget
wget https://github.com/precice/precice/releases/download/v2.5.0/libprecice2_2.5.0_jammy.deb
apt install ./libprecice2_2.5.0_jammy.deb
apt install git pip
git clone https://github.com/precice/fenics-adapter.git
cd fenics-adapter
pip install .
python3 -c "import fenicsprecice"
cd ..
git clone --depth=1 https://github.com/precice/tutorials.git
cd tutorials/partitioned-heat-conduction/fenics
./run.sh -d & ./run.sh -n
I also tried out the commands stated above by @fsimonis in a clean Ubuntu 22.04 container and the adapter seems to work. The adapter also works if fenicsprecice
is installed directly via pip
.
I (unintentionally) reproduced the problem on my Ubuntu 20.04 system. After a lot of very messy back and forth I think I got things working now. The solution is similar to the suggestion in this post. There might be some residuals of ffc
in /home/username/.local/lib/python3.8/site-packages
. Removing them via rm -r ufl ffc
should do the trick.
:boom: :skull: :boom:
If you want to bring yourself into trouble: Run $ pip3 install --user fenics_ffc==2019.1.0.post0
. This should reproduce the error above.
:boom: :skull: :boom:
If the pip packages are such a nightmare, couldn't we define conflicts in the setup.py of the fenics adapter?
Would be great to improve the situation with technical means, but I don't have the time to work on this at the moment. But I will reopen this issue and attach the help wanted
label.
I followed the installation instructions while trying to install
fenicsprecice
and faced the following issueI'm using Ubuntu 22.04 and the provided fenics version
version (2:0.4.1.2~ppa1~jammy1)
.