← Back to team overview

syfi team mailing list archive

Re: SyFi and Instant with python problems

 

> Dear developers of SyFi
>
> In hope of using the FENICS suite i am currently under way of
> configuring all the tools needed by FENICS. Because i work at university
> we do not have root access and i install mainly under my local
> /home/directory. I run into the following problems or bugs or however
> you might call this (my skills in installing libraries and components on
> linux is still small especially in troubleshooting, so i did not know
> how to mail you a patch or bugfix or something).
> Because i have CLN and GINAC under local directories i modified my
> PKG-CONFIG_PATH variable accordingly and the configure script
> successfully resolved the dependencies. Running make is fine but at the
> very end, there will be a gcc-compile command issued for the generation
> of 'SyFi_wrap.cxx' and there i loose the include-directory for the
> CLN-repository. To fix this I added an '-I/home/priesen/num/cln/include'
> in line 40 of the 'python/setup.py' -script as (after running
> 'configure' and before (re-)running make):
>
>   include_dirs=['.', '../syfi', '/home/priesen/num/syfi/include',
> '/home/priesen/num/cln/include'] + ginac_dir
>
> then, 'make' and 'make install' was successfull.
> hopefully this is enough information to resolve this problem, else
> please tell me what you need from my side to track this problem in detail.

OK, your SyFi installation should then be ok, or ?

I think the problem is that the pkg-config files in GiNaC is not correct, do
you use and old version of GiNaC?

pkg-config ginac --cflags should list all required include dirs for GiNaC
(and CLN).

>
> The other problem i encounter is that i use python2.4 and i can not
> compile the 'Instant'-package. when byte-compiling the
> 'cache.py'-routine i get the following error:
>
> byte-compiling
> /home/priesen/num/instant/lib/python2.4/site-packages/instant/cache.py
> to cache.pyc
>    File
> "/home/priesen/num/instant/lib/python2.4/site-packages/instant/cache.py",
> line 40
>      finally:
>            ^
> SyntaxError: invalid syntax
>
>
> There is no problem im compiling instant with python2.5 but as SyFi i
> have configured SyFi with python2.4 (and everething else as swiginac,
> symbolic, etc..) i would like to compile instant with python2.4.
> i also tried to install the previous release of instant (0.9.4), this
> was successfull, however not compatible with the other modules.
> Hopefully you can advise me how to compile instant-0.9.5 with python2.4,
> or else please tell me what other information you need.
>

I'm sorry to say that instant-0.9.5 requires python 2.5 or newer. What
was the problem with instant-0.9.4 ?

Kent

>
> Sincerely,
>
>
> Patrick Riesen
>
>
>
>