<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt><br>
Hi, <br>
<br>
I got a problem with the following typedef <br>
<br>
ctypedef np.ndarray[np.double_t, ndim=1, negative_indices=False,
mode="c"] ndarray<br>
<br>
results in <br>
</tt>
<blockquote><tt>Traceback (most recent call last):</tt><br>
<tt> File "setup.py", line 24, in <module></tt><br>
<tt> ext_modules= [ ext1,],</tt><br>
<tt> File "C:\Python25\lib\distutils\core.py", line 151, in setup</tt><br>
<tt> dist.run_commands()</tt><br>
<tt> File "C:\Python25\lib\distutils\dist.py", line 974, in
run_commands</tt><br>
<tt> self.run_command(cmd)</tt><br>
<tt> File "C:\Python25\lib\distutils\dist.py", line 994, in
run_command</tt><br>
<tt> cmd_obj.run()</tt><br>
<tt> File "C:\Python25\lib\distutils\command\build_ext.py", line
290, in run</tt><br>
<tt> self.build_extensions()</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Distuti</tt><br>
<tt>ls\build_ext.py", line 81, in build_extensions</tt><br>
<tt> ext.sources = self.cython_sources(ext.sources, ext)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Distuti</tt><br>
<tt>ls\build_ext.py", line 196, in cython_sources</tt><br>
<tt> full_module_name=module_name)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 690, in compile</tt><br>
<tt> return compile_single(source, options, full_module_name)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 635, in compile_single</tt><br>
<tt> return run_pipeline(source, options, full_module_name)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 524, in run_pipeline</tt><br>
<tt> err, enddata = context.run_pipeline(pipeline, source)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 183, in run_pipeline</tt><br>
<tt> data = phase(data)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 482, in parse</tt><br>
<tt> tree = context.parse(source_desc, scope, pxd = 0,
full_module_name = full_mo</tt><br>
<tt>dule_name)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Main.py", line 414, in parse</tt><br>
<tt> tree = Parsing.p_module(s, pxd, full_module_name)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Parsing.py", line 2414, in p_module</tt><br>
<tt> body = p_statement_list(s, Ctx(level = level),
first_statement = 1)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Parsing.py", line 1480, in p_statement_list</tt><br>
<tt> stats.append(p_statement(s, ctx, first_statement =
first_statement))</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Parsing.py", line 1411, in p_statement</tt><br>
<tt> return p_ctypedef_statement(s, ctx)</tt><br>
<tt> File
"c:\python25\lib\site-packages\cython-0.10-py2.5-win32.egg\Cython\Compile</tt><br>
<tt>r\Parsing.py", line 2182, in p_ctypedef_statement</tt><br>
<tt> if base_type.name is None:</tt><br>
<tt>AttributeError: 'CBufferAccessTypeNode' object has no attribute
'name'</tt><br>
<tt><br>
</tt></blockquote>
<tt>Is this a bug ?<br>
<br>
Greetings, Uwe</tt><br>
<pre class="moz-signature" cols="72">--
Dr. rer. nat. Uwe Schmitt
F&E Mathematik
mineway GmbH
Science Park 2
D-66123 Saarbrücken
Telefon: +49 (0)681 8390 5334
Telefax: +49 (0)681 830 4376
<a class="moz-txt-link-abbreviated" href="mailto:uschmitt@mineway.de">uschmitt@mineway.de</a>
<a class="moz-txt-link-abbreviated" href="http://www.mineway.de">www.mineway.de</a>
Geschäftsführung: Dr.-Ing. Mathias Bauer
Amtsgericht Saarbrücken HRB 12339
</pre>
</body>
</html>