On 03/02/16 18:53, Francis Poulin wrote:
Hello,
Thanks. I tried this and it seemed to finish on both my Mac and Ubuntu machines. Have not tested them but hopefully something good happened.
PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5 --download-exodusii"
I did the tests on both machines and both seemed to do about the same thing, as far as I can tell. However, on my mac, when I try opening python and doing the first line I get an error. As a result all the demos that I try running fail, but the make alltests did seem to run. I am a bit perplexed.
The test suite does some slightly ugly hackery to insert something into the PYTHONPATH which is why this may work.
(firedrake)am-laptop24:software fpoulin$ python Python 2.7.11 (default, Jan 22 2016, 08:28:37) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information.
from firedrake import * Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named firedrake
Hmm, this looks odd, the prompt suggests that the virtualenv is activated. What do the following things at the python prompt produce: import sys print sys.executable print sys.path
Also, on a not very important note, after I install firedrake and do the first update it asks me to do firedrake-install another time. When I do it ways gives me an error, see below. Maybe not necessary? I then do an update and that seems to work, as far as I can tell.
Francis
Homepage: http://www.python.org/ Original-Maintainer: Matthias Klose <doko@debian.org> Checking for presence of package python-dev...installed. Package: python-pip Status: install ok installed Priority: optional Section: python Installed-Size: 466 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Architecture: all Version: 1.5.4-1ubuntu3 Depends: ca-certificates, python-colorama, python-distlib, python-html5lib, python-pip-whl (= 1.5.4-1ubuntu3), python-pkg-resources, python-requests, python-setuptools (>= 0.6c1), python-six, python, python:any (<< 2.8), python:any (>= 2.7.5-5~) Recommends: build-essential, python-dev-all (>= 2.6), python-wheel Description: alternative Python package installer pip is a replacement for easy_install, and is intended to be an improved Python package installer. It integrates with virtualenv, doesn't do partial installs, can save package state for replaying, can install from non-egg sources, and can install from version control repositories. Homepage: http://www.pip-installer.org/ Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org> Checking for presence of package python-pip...installed. Creating firedrake virtualenv. Please use the *system* python to run this script Traceback (most recent call last): File "/home/fpoulin/software/firedrake/bin/firedrake-install", line 669, in <module> virtualenv.create_environment("firedrake", site_packages=False) File "/home/fpoulin/software/firedrake/local/lib/python2.7/site-packages/virtualenv.py", line 884, in create_environment site_packages=site_packages, clear=clear, symlink=symlink)) File "/home/fpoulin/software/firedrake/lib/python2.7/posixpath.py", line 367, in abspath if not isabs(path): File "/home/fpoulin/software/firedrake/lib/python2.7/posixpath.py", line 61, in isabs return s.startswith('/') AttributeError: 'NoneType' object has no attribute 'startswith' (firedrake)fpoulin@vortex:~/software$ firedrake/bin/firedrake-update
Hmmm, this is a new one on me. Can you provide the precise sequence of commands you used to produce this error and we'll see if we can replicate and debug here. Thanks, Lawrence