← Back to team overview

dolfin team mailing list archive

Re: error with instant

 

Can you post the contents of
> inline_ext/compile.log
?

-- 
Martin



2008/8/20 Shawn Walker <walker@xxxxxxxxxxxxxxx>:
> No, that did not work either.  Here is what I did:
>
> ------------------------
> $ python
> Python 2.5.2 (r252:60911, Aug  7 2008, 15:50:01)
> [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from instant import inline
>>>> add_func = inline("double add(double a, double b){ return a+b; }")
> --- Instant: compiling ---
> --- Instant: compiling ---
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/walker/build/lib/python2.5/site-packages/instant.py", line
> 792, in inline
>     ext.create_extension(**args_dict)
>   File "/home/walker/build/lib/python2.5/site-packages/instant.py", line
> 370, in create_extension
>     raise RuntimeError("The extension module did not compile, check
> %s/compile.log" % self.module)
> RuntimeError: The extension module did not compile, check
> inline_ext/compile.log
>>>>
> ------------------------
>
> - Shawn
>
> On Wed, 20 Aug 2008, Kent-Andre Mardal wrote:
>
>>
>> Can you be more spesific ?
>>
>> Do eg. the follow work
>>
>>
>> from instant import inline
>>
>> add_func = inline("double add(double a, double b){ return a+b; }")
>>
>> print "The sum of 3 and 4.5 is ", add_func(3, 4.5)
>>
>>
>>
>> On ti., 2008-08-19 at 15:59 -0400, Shawn Walker wrote:
>>> Hello, I can't seem to run any of the tests with `instant'.  I get errors
>>> that look like this:
>>>
>>> undefined symbol: Py_InitModule4
>>>
>>> I read somewhere that if you have multiple Python versions installed, this
>>> could cause the problem.  I have 2.4 and 2.5 installed, but I am using
>>> 2.5.  I had to do this because the default Python was 2.4 for all the
>>> computers.  Does anyone know what to do here?
>>>
>>> - Shawn
>>> _______________________________________________
>>> DOLFIN-dev mailing list
>>> DOLFIN-dev@xxxxxxxxxx
>>> http://www.fenics.org/mailman/listinfo/dolfin-dev
>>
>>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
>


Follow ups

References