pb installing dolfin python interface

37 views
Skip to first unread message

fatna oukaili

unread,
Apr 7, 2022, 5:28:38 AM4/7/22
to fenics-support
Hi, 
I'm trying to install fenics following the steps below. But I am facing an issue while installing dolfin python interface (the red line command: cd dolfin/python && pip3 install . && cd ../..). I get the following error message "× Encountered error while trying to install package.
╰─> fenics-dolfin". I would like to specify that I do not own the sudo rights in my computer, so installing it from source is the only possibility, and that I am using a local python3 version that I installed and which is different from the default path "user/bin/python". So before starting the installation, I sourced first the python3 path using the command line export path, then proceeded to install the stable version. 

Thank you for your help, 
Best regards, 
Fatna,

Installation steps for the stable version
To install the Python components of FEniCS:
pip3 install fenics-ffc --upgrade

FENICS_VERSION=$(python3 -c"import ffc; print(ffc.__version__)")
git clone --branch=$FENICS_VERSION https://bitbucket.org/fenics-project/dolfin
git clone --branch=$FENICS_VERSION https://bitbucket.org/fenics-project/mshr
mkdir dolfin/build && cd dolfin/build && cmake .. && make install && cd ../..
mkdir mshr/build   && cd mshr/build   && cmake DCMAKE_INSTALL_PREFIX="my_user_location" .. && make install && cd ../..
cd dolfin/python && pip3 install . && cd ../..
cd mshr/python   && pip3 install . && cd ../..


ed...@openmail.cc

unread,
Apr 7, 2022, 1:51:05 PM4/7/22
to fatna oukaili, fenics-support
Hello,

I don't know what flavour of GNU/Linux you may use, but have you tried
this: https://aur.archlinux.org/packages/python-dolfin ? Even if it is a
recipe for pacman (and makepkg) systems, you could find it useful.
Cheers!

On 2022-04-07 09:28, fatna oukaili wrote:
> Hi,
> I'm trying to install fenics following the steps below. But I am facing
> an
> issue while installing dolfin python interface (the red line command:
> *cd
> dolfin/python && pip3 install . && cd ../..*). I get the following
> error
> message "×* Encountered error while trying to install package.*
> *╰─> fenics-dolfin*". I would like to specify that I do not own the
> sudo
> rights in my computer, so installing it from source is the only
> possibility, and that I am using a local python3 version that I
> installed
> and which is different from the default path "user/bin/python". So
> before
> starting the installation, I sourced first the python3 path using the
> command line export path, then proceeded to install the stable version.
>
> Thank you for your help,
> Best regards,
> Fatna,
>
> *Installation steps for the s*

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to ab...@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!

David Nolte

unread,
Apr 8, 2022, 10:17:19 AM4/8/22
to fenics-...@googlegroups.com
To add on the previous reply, you can get some inspiration from these
(maybe a bit dated) scripts I used to compile fenics on centos and archlinux

https://github.com/dajuno/fenics-archlinux-build
https://github.com/dajuno/fenics-centos-build

Good luck
Reply all
Reply to author
Forward
0 new messages