Hi,

>
> You need all the FEniCS component (FIAT, UFL, FFC, Instant, DOLFIN) at
> version
>
> - either 1.4.0, downloadable as tarball or checkoutable in git
>    repository as tag foo-1.4.0
> - or up-to-date master branch from respective git repositories

Ok, thanks. I downloaded everything again and started from scratch. That seemed to help.

However, now I'm getting the error below. I tried using COMMANDS instead of SUBPROCESS and also changed getstatusoutput to get_status_output, according to what I found on FEniCS help pages, but the error still remains.

Thanks,
Bart



(virtualPython)bver018 build-wm-p /projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant $ python poisson.py

Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
  File "/projects/uoa00295/test/poisson.py", line 6, in <module>
    V = FunctionSpace(mesh, 'Lagrange', 1)
File "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 468, in __init__
    FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
File "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 153, in __init__ ufc_element, ufc_dofmap = jit(self._ufl_element, mpi_comm=mesh.mpi_comm()) File "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
    return local_jit(*args, **kwargs)
File "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 128, in jit
    return form_compiler.jit(form, parameters=p)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py", line 72, in jit
    return jit_element(ufl_object, parameters)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py", line 177, in jit_element
    compiled_form, module, prefix = jit_form(form, parameters)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py", line 148, in jit_form
    cache_dir = cache_dir)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/backends/ufc/build.py", line 73, in build_ufc_module
    **kwargs)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/build.py", line 563, in build_module recompile(modulename, module_path, new_compilation_checksum, build_system) File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/build.py", line 144, in recompile
    ret, output = get_status_output(cmd)
File "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/output.py", line 163, in get_status_output
    status, output = subprocess.check_output(*args, **kwargs)
File "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
File "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
>
> Jan
>
>>
>> Thanks,
>> Bart
>>
>>
>>
>

--
Dr. Bart Verleye
Centre for eResearch
Level G, Room 409-G21
24 Symonds St.
Auckland 1010
New Zealand
+64 (0) 9 923 9740 ext 89740

On 16/12/14 23:53, Jan Blechta wrote:
On Tue, 16 Dec 2014 11:19:09 +1300
Bart Verleye <[email protected]> wrote:



On 15/12/14 22:19, Johannes Ring wrote:
On Mon, Dec 15, 2014 at 4:51 AM, Bart Verleye
<[email protected]> wrote:
Hi,

I have installed FFC, but when I try to import, I get following
error:

import ffc
Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "build/bdist.linux-x86_64/egg/ffc/__init__.py", line 21,
in <module> File
"build/bdist.linux-x86_64/egg/ffc/jitcompiler.py", line 33, in
<module> File "build/bdist.linux-x86_64/egg/ufc/__init__.py", line
7, in <module> ImportError: cannot import name cell

I get this error both with the 1.4.0 version, as with the version
I cloned from git. The latter should have resolved the issue
according to
http://fenicsproject.org/pipermail/fenics-support/2014-February/000372.html

Any help/hint on this?

Are you sure you are loading the correct ffc and not the old 1.4.0
version? How did you install it and did you have you set PYTHONPATH
correctly?

Johannes


  >>source virtualPython/bin/activate
  >>git clone https://bitbucket.org/fenics-project/ffc.git
  >>cd ffc
  >>python setup.py install

  >>python -c"import ufl; print ufl.__version__, ufl.__file__"

1.4.0
/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ufl/__init__.pyc

So it's still version 1.4.0, but from the git. Should I clone a
different version?

You need all the FEniCS component (FIAT, UFL, FFC, Instant, DOLFIN) at
version

- either 1.4.0, downloadable as tarball or checkoutable in git
   repository as tag foo-1.4.0
- or up-to-date master branch from respective git repositories

Jan


Thanks,
Bart





--
Dr. Bart Verleye
Centre for eResearch
Level G, Room 409-G21
24 Symonds St.
Auckland 1010
New Zealand
+64 (0) 9 923 9740 ext 89740
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to