Re: [firedrake] petsc4py install issues
That question doesn't make sense, because a Git branch is no more than a named commit (every commit knows its entire history, by virtue of pointing to the parent commit[s]). However, there's bound to be some Git command that asks 'does commit X appear in the history of commit Y?'. More practically, you could look at the Firedrake branches page on Github: https://github.com/firedrakeproject/firedrake/branches. This shows that the master branch built successfully on Travis 2 days ago, and this implies there was no petsc/petsc4py mismatch at that moment. Armed with this information, it's easy to narrow down the relevant merge. In what way is the problem not fixed? Have you cleaned petsc/petsc4py? (sudo make allclean / sudo make fullclean) On 24 August 2014 20:05, Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:
Thanks. Is it possible to work out which branch c73cfb54 is on, just by looking at the BitBucket page? I was having trouble tracking it back because the branch commit appears on a different page from the merge. --cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Andrew McRae [a.mcrae12@imperial.ac.uk] *Sent:* 24 August 2014 19:55
*To:* firedrake *Subject:* Re: [firedrake] petsc4py install issues
22d5acb seems like a more obvious choice? (the revision before Matt Knepley merged his pull request, according to https://bitbucket.org/petsc/petsc/commits/branch/master )
On 24 August 2014 19:50, Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:
(by didn't work, I mean that it didn't fix the problem for me).
--cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [ firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [ colin.cotter@imperial.ac.uk] *Sent:* 24 August 2014 19:49
*To:* firedrake *Subject:* Re: [firedrake] petsc4py install issues
OK, the first revision I tried didn't work (df3898e <https://bitbucket.org/petsc/petsc/commits/df3898ee999f8e28aa22e84b9bfe0d47e2081c03?at=master>), now trying (8a23364 <https://bitbucket.org/petsc/petsc/commits/8a23364d02173c6cd1856e280835b29b1923215b?at=master> ).
--cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [ firedrake-bounces@imperial.ac.uk] on behalf of Cotter, Colin J [ colin.cotter@imperial.ac.uk] *Sent:* 24 August 2014 19:40 *To:* firedrake *Subject:* Re: [firedrake] petsc4py install issues
OK, I think I've done that and it's building.
I'm not feeling the separation of concerns here...
--cjc ------------------------------ *From:* firedrake-bounces@imperial.ac.uk [ firedrake-bounces@imperial.ac.uk] on behalf of Andrew McRae [ a.mcrae12@imperial.ac.uk] *Sent:* 24 August 2014 19:24 *To:* firedrake *Subject:* Re: [firedrake] petsc4py install issues
Try reverting to a PETSc commit predating the commit that Florian isolated.
On 24 August 2014 19:18, Cotter, Colin J <colin.cotter@imperial.ac.uk> wrote:
Oh I see, it's an incompatibility between master Petsc and master petsc4py. I wouldn't have a clue how to fix that. Cjc On 24 Aug 2014 19:00, "David Ham" <David.Ham@imperial.ac.uk> wrote:
We don't have our own PETSc versions. We're tracking master. The PETSc crowd muck up fairly frequently. It sounds like you should be able to fix Petsc4py pretty easily. They usually accept patches for this sort of thing pretty fast.
David
On Sunday, August 24, 2014, Cotter, Colin J < colin.cotter@imperial.ac.uk> wrote:
Aren't the Firedrake petsc and petsc4py versions supposed to be compatible with each other? On 24 Aug 2014 16:58, "Florian Rathgeber" < f.rathgeber10@imperial.ac.uk> wrote:
The usual: interface change in PETSc (DMDASetDim renamed to DMDASetDimension) that hasn't been updated in petsc4py yet. The PETSc revision introducing that change is c73cfb54.
On 24/08/14 16:27, Cotter, Colin J wrote: > Dear Firedrakers, > I just updated my petsc and petsc4py using the PyOP2 install > instructions, to be precise I did: > >> sudo PETSC_CONFIGURE_OPTIONS="--download-ctetgen --download-triangle > --download-chaco" pip install -U --no-deps > git+https://bitbucket.org/petsc/petsc.git#egg=petsc >> unset PETSC_DIR >> unset PETSC_ARCH >> sudo pip install -U --no-deps git+ https://bitbucket.org/petsc/petsc4py.git > > I then updated and built PyOP2, firedrake too. > > Now, upon importing Firedrake, I get: > > In [1]: from firedrake import * > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > /home/cjc1/mercurial/shapefem/<ipython-input-1-379626444471> in <module>() > ----> 1 from firedrake import * > > /home/cjc1/firedrake/firedrake/firedrake/__init__.py in <module>() > 1 # Ensure petsc is initialised by us before anything else gets in > there. > > ----> 2 import petsc > 3 del petsc > 4 > 5 from ufl import * > > /home/cjc1/firedrake/firedrake/firedrake/petsc.py in <module>() > 2 import petsc4py > 3 import sys > ----> 4 petsc4py.init(sys.argv) > 5 from petsc4py import PETSc # NOQA get flake8 to ignore unused > import. > > /usr/local/lib/python2.7/dist-packages/petsc4py/__init__.pyc in > init(args, arch, comm) > 40 """ > 41 import petsc4py.lib > ---> 42 PETSc = petsc4py.lib.ImportPETSc(arch) > 43 args = petsc4py.lib.getInitArgs(args) > 44 PETSc._initialize(args, comm) > > /usr/local/lib/python2.7/dist-packages/petsc4py/lib/__init__.pyc in > ImportPETSc(arch) > 27 """ > 28 path, arch = getPathArchPETSc(arch) > ---> 29 return Import('petsc4py', 'PETSc', path, arch) > 30 > 31 def getPathArchPETSc(arch=None): > > /usr/local/lib/python2.7/dist-packages/petsc4py/lib/__init__.pyc in > Import(pkg, name, path, arch) > 62 pathlist = [os.path.join(path, arch)] > 63 fo, fn, stuff = imp.find_module(name, pathlist) > ---> 64 module = imp.load_module(fullname, fo, fn, stuff) > 65 module.__arch__ = arch # save arch value > 66 setattr(sys.modules[pkg], name, module) > > ImportError: > /usr/local/lib/python2.7/dist-packages/petsc4py/lib/PETSc.so: undefined > symbol: DMDASetDim > > What's wrong here? > > all the best > --Colin
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
-- Dr David Ham Departments of Mathematics and Computing Imperial College London
http://www.imperial.ac.uk/people/david.ham
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake
In what way is the problem not fixed? Have you cleaned petsc/petsc4py? (sudo make allclean / >sudo make fullclean)
It's not fixed in that I still get the same error. I haven't cleaned petsc/petsc4py as I am using pip to install them. --cjc
participants (2)
- 
                
                Andrew McRae
- 
                
                Cotter, Colin J