← Back to team overview

ffc team mailing list archive

Re: FFC + Cygwin

 

On Wed, Jan 31, 2007 at 11:11:40PM +0100, Garth N. Wells wrote:
> 
> 
> Anders Logg wrote:
> > On Wed, Jan 31, 2007 at 07:13:22PM +0100, Garth N. Wells wrote:
> >> When running ffc under Cygwin, I get the following error:
> >>
> >> Traceback (most recent call last):
> >>   File "/usr/bin/ffc", line 20, in ?
> >>     from ffc.common.debug import *
> >>   File "/usr/lib/python2.4/site-packages/ffc/__init__.py", line 2, in ?
> >>     from ffc.compiler.compiler import *
> >>   File "/usr/lib/python2.4/site-packages/ffc/compiler/compiler.py", line 37, in ?
> >>     from ffc.format import ufcformat
> >>   File "/usr/lib/python2.4/site-packages/ffc/format/ufcformat.py", line 14, in ?
> >>     from ufc import *
> >> ImportError: No module named ufc
> >>
> >> I have installed ufc.
> > 
> > Do you get the same error if you just write a simple Python script
> > test.py containing only the line
> > 
> > from ufc import *
> > 
> > and then run it by python test.py?
> >
> 
> The problem is that Cywgin does not have
> 
>    /usr/local/lib/python2.X/site-packages
> 
> in the path.
> 
> Is there a reason why ufc installs under /usr/local/lib/python2.x, while 
> other FEniCS packages install under /usr/lib/python2.x?

I don't know, let's ask the other guys.

Can we change the default location for the installation of UFC to
/usr?

Garth, in the meantime, just change the variable PREFIX in the UFC
Makefile to /usr. The installation is just a single header file (and
some Python modules) so we have a very simple Makefile instead of a big
build system like scons, autotools etc.

/Anders


Follow ups

References