Giter Club home page Giter Club logo

Comments (5)

fsimonis avatar fsimonis commented on August 12, 2024 1

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

from fenics-adapter.

BenjaminRodenberg avatar BenjaminRodenberg commented on August 12, 2024 1

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.

💥 💀 💥
If you want to bring yourself into trouble: Run $ pip3 install --user fenics_ffc==2019.1.0.post0. This should reproduce the error above.
💥 💀 💥

from fenics-adapter.

IshaanDesai avatar IshaanDesai commented on August 12, 2024

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.

from fenics-adapter.

fsimonis avatar fsimonis commented on August 12, 2024

If the pip packages are such a nightmare, couldn't we define conflicts in the setup.py of the fenics adapter?

from fenics-adapter.

BenjaminRodenberg avatar BenjaminRodenberg commented on August 12, 2024

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.

from fenics-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.