Cannot install firedrake
Hello, I'm trying to install firedrake on ubuntu machine and I get the following error. could you please help me resolve it. Thank you. Sincerely, Mohammad Sarraf Joshaghani Phone: +1-281-781-5331
Is there a reason you are using the --no-package-manager option? You are missing some python3-dev package; if you leave out that option, on Ubuntu, it will install (it runs "sudo apt-get install") the few ubuntu packages it needs for you Cheers Stephan On 05/04/18 12:40, Mohammad Sarraf Joshaghani wrote:
Hello,
I'm trying to install firedrake on ubuntu machine and I get the following error. could you please help me resolve it. Thank you.
Sincerely,
Mohammad Sarraf Joshaghani Phone: +1-281-781-5331
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
He does not have root access on his machine, so he has to install all dependencies on his own. I helped him install Firedrake last year, before the move to Python3. We’re trying to “upgrade” him to the latest Firedrake. On Wed, Apr 4, 2018 at 10:17 PM Stephan Kramer <s.kramer@imperial.ac.uk> wrote:
Is there a reason you are using the --no-package-manager option? You are missing some python3-dev package; if you leave out that option, on Ubuntu, it will install (it runs "sudo apt-get install") the few ubuntu packages it needs for you
Cheers Stephan
On 05/04/18 12:40, Mohammad Sarraf Joshaghani wrote:
Hello,
I'm trying to install firedrake on ubuntu machine and I get the following error. could you please help me resolve it. Thank you.
Sincerely,
Mohammad Sarraf Joshaghani Phone: +1-281-781-5331
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
OK so you need python header files. If you can’t install python3-dev (or ask a sysadmin to install it) then you probably need to build your own python from source. When you have done this, you need to add python’s include directory to the CPATH environment variable so that the c compiler finds Python.h An alternative might be to install a VM so you have root and can let the install script do its thing. Regards, David Dr David Ham Department of Mathematics Imperial College London On 5 Apr 2018, at 05:42, Justin Chang <jychang48@gmail.com<mailto:jychang48@gmail.com>> wrote: He does not have root access on his machine, so he has to install all dependencies on his own. I helped him install Firedrake last year, before the move to Python3. We’re trying to “upgrade” him to the latest Firedrake. On Wed, Apr 4, 2018 at 10:17 PM Stephan Kramer <s.kramer@imperial.ac.uk<mailto:s.kramer@imperial.ac.uk>> wrote: Is there a reason you are using the --no-package-manager option? You are missing some python3-dev package; if you leave out that option, on Ubuntu, it will install (it runs "sudo apt-get install") the few ubuntu packages it needs for you Cheers Stephan On 05/04/18 12:40, Mohammad Sarraf Joshaghani wrote:
Hello,
I'm trying to install firedrake on ubuntu machine and I get the following error. could you please help me resolve it. Thank you.
Sincerely,
Mohammad Sarraf Joshaghani Phone: +1-281-781-5331
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk<mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk<mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk<mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake
Thanks guys, getting the python3-dev updated made the installation work. Now I have another issue. On a different machine here, i successfully installed firedrake but when I try to test the firedrake installation i get this error: (firedrake) [msarrafj@caml-lin Software]$ python -c "import firedrake" Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/cougarnet.uh.edu/msarrafj/Software/firedrake/src/firedrake/firedrake/__init__.py", line 32, in <module> from pyop2 import op2 # noqa: F401 File "/home/cougarnet.uh.edu/msarrafj/Software/firedrake/src/PyOP2/pyop2/__init__.py", line 4, in <module> from pyop2.op2 import * # noqa File "/home/cougarnet.uh.edu/msarrafj/Software/firedrake/src/PyOP2/pyop2/op2.py", line 42, in <module> from pyop2.base import i # noqa: F401 File "/home/cougarnet.uh.edu/msarrafj/Software/firedrake/src/PyOP2/pyop2/base.py", line 57, in <module> from pyop2.sparsity import build_sparsity ImportError: /home/cougarnet.uh.edu/msarrafj/Software/firedrake/src/PyOP2/pyop2/sparsity.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PetscMallocA Attached is the associated firedrake-install.log if it helps Thank you, Sarraf
On Apr 5, 2018, at 2:22 AM, Ham, David A <david.ham@imperial.ac.uk> wrote:
OK so you need python header files. If you can’t install python3-dev (or ask a sysadmin to install it) then you probably need to build your own python from source. When you have done this, you need to add python’s include directory to the CPATH environment variable so that the c compiler finds Python.h
An alternative might be to install a VM so you have root and can let the install script do its thing.
Regards,
David
Dr David Ham Department of Mathematics Imperial College London
On 5 Apr 2018, at 05:42, Justin Chang <jychang48@gmail.com <mailto:jychang48@gmail.com>> wrote:
He does not have root access on his machine, so he has to install all dependencies on his own. I helped him install Firedrake last year, before the move to Python3. We’re trying to “upgrade” him to the latest Firedrake.
On Wed, Apr 4, 2018 at 10:17 PM Stephan Kramer <s.kramer@imperial.ac.uk <mailto:s.kramer@imperial.ac.uk>> wrote: Is there a reason you are using the --no-package-manager option? You are missing some python3-dev package; if you leave out that option, on Ubuntu, it will install (it runs "sudo apt-get install") the few ubuntu packages it needs for you
Cheers Stephan
On 05/04/18 12:40, Mohammad Sarraf Joshaghani wrote:
Hello,
I'm trying to install firedrake on ubuntu machine and I get the following error. could you please help me resolve it. Thank you.
Sincerely,
Mohammad Sarraf Joshaghani Phone: +1-281-781-5331
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk <mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake <https://mailman.ic.ac.uk/mailman/listinfo/firedrake>
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk <mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake <https://mailman.ic.ac.uk/mailman/listinfo/firedrake> _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk <mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake <https://mailman.ic.ac.uk/mailman/listinfo/firedrake>
firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
participants (4)
-
Ham, David A
-
Justin Chang
-
Mohammad Sarraf Joshaghani
-
Stephan Kramer