I could not get anything like alias python='/usr/local/bin/python3'

after alias command but the rest of command displayed something similar to you.


From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk>
Sent: Monday, October 9, 2017 8:04:24 AM
To: firedrake@imperial.ac.uk
Subject: Re: [firedrake] where is firedrake...
 

> On 9 Oct 2017, at 13:50, Kara, Erdi <erdi.kara@ttu.edu> wrote:
>
> What if I try to reinstall pyhthon, firedrake and all these stuff. Does it create any difference?

This looks not to be a firedrake-specific problem, but rather a problem with creating the python3 venv in the first place.

So let us try and debug that first!

I wonder if you have any shell aliases set up:

What does:

$ alias

print?

If it says something like:

alias python='/usr/local/bin/python3'

Please do:

$ unalias python

and then let us try the sequence of commands that firedrake-install goes through to create the venv.

$ python3 -c "import sys; print(sys.path)"
$ python3 -m venv temp-venv
$ . temp-venv/bin/activate
$ temp-venv/bin/python3 -c "import sys; print(sys.path)"

On my ubuntu machine I see something like this:

$ python3 -c "import sys; print(sys.path)"
['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']
$ python3 -m venv temp-venv
$ . temp-venv/bin/activate
$ temp-venv/bin/python3 -c "import sys; print(sys.path)"
['', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/homes/lmitche1/temp-venv/lib/python3.5/site-packages']

Notice how the last entry in the path list changed from pointing at /usr/.../dist-packages, to /homes/lmitche1/temp-venv/.../site-packages.

To understand why your installation is failing, we need to figure out why this is not happening for you.

Cheers,

Lawrence
_______________________________________________
firedrake mailing list
firedrake@imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake