weave.inline errors

19 views
Skip to first unread message

Anil Raj

unread,
Oct 12, 2009, 10:53:34 AM10/12/09
to apam-pyt...@googlegroups.com
Hi all,
If anyone's used the weave module (in scipy to 'embed' c++ code in
python) before, any ideas on what the error below could mean? (tried
searching on the scipy-dev mail list but no luck :( )

File "boost.py", line 207, in getpcwv
data = weave.inline(expr,['X','Y','Tplist','w'])
File "/share/apps/python26/lib/python2.6/site-packages/scipy/weave/inline_tools.py",
line 338, in inline
results = attempt_function_call(code,local_dict,global_dict)
File "/share/apps/python26/lib/python2.6/site-packages/scipy/weave/inline_tools.py",
line 399, in attempt_function_call
raise ValueError, 'function with correct signature not found'
ValueError: function with correct signature not found

Any thoughts/tips would be great!

Thanks!
Anil

francois monard

unread,
Oct 12, 2009, 12:39:41 PM10/12/09
to apam-pyt...@googlegroups.com
hi, I successfully use weave.inline with the following command :

weave.inline(code, vars, type_converters=converters.blitz, compiler = 'gcc') 

you could try these options to see if specifying them helps...
--
------------------------------------------------------------
Francois Monard
------------------------------------------------------------

Ian Langmore

unread,
Oct 12, 2009, 2:09:32 PM10/12/09
to apam-pyt...@googlegroups.com
Are you using weave with Ubuntu?  In that the compiler needs to be set to gcc, and I needed to set g++-4.2 (instead of 4.3) as the default system g++ compiler.  I can't really interpret your error message there though. 

Weave is super fast, cython is another option that is maybe less prone to errors...

-Ian
-- 
- Ian
Reply all
Reply to author
Forward
0 new messages