Re: [Cython] bug report

2016-07-20 Thread Stefan Behnel
swapnil jariwala schrieb am 15.07.2016 um 14:11: > trac.cython.org does not open for me, I've come across an error while > trying the tutorial, I've elaborated the same in below question > > http://stackoverflow.com/questions/38386722/how-to-resolve-error-error-compiling-cython-file-error > > any

[Cython] bug report

2016-07-16 Thread swapnil jariwala
Hello all, trac.cython.org does not open for me, I've come across an error while trying the tutorial, I've elaborated the same in below question http://stackoverflow.com/questions/38386722/how-to-resolve-error-error-compiling-cython-file-error any help would be highly appreciated. Thanks Swapnil

Re: [Cython] bug report on cython-mode.el: freezes when using which-function-mode

2016-04-24 Thread Jason Madden
> On Apr 24, 2016, at 03:15, Nathaniel Smith wrote: > > I don't know whether the same thing happens with released versions of > emacs. I see the same behaviour with the 24.5 release of emacs (stock python.el + elpy). Turning off which-function-mode seems to solve it (thanks for the tip, BTW).

[Cython] bug report on cython-mode.el: freezes when using which-function-mode

2016-04-24 Thread Nathaniel Smith
Hi all, Bug report here -- trying to edit some cython code in emacs just now, emacs was repeatedly freezing until I'd hit C-g repeatedly. Made things literally unusable -- I couldn't type characters into the buffer. M-x toggle-debug-on-quit gives the backtrace: Debugger entered--Lisp error: (quit

[Cython] Bug Report: can't assign zero length array to contiguous 2D memoryview

2013-11-06 Thread Josh Ayers
Assigning a NumPy array with a zero length dimension to a memoryview fails if the memoryview is declared contiguous in the zero-length dimension. I'm getting a run-time error that the buffer is not C-contiguous or Fortran contiguous. See examples below. Thanks, Josh Ayers cdef float [:, :] arr

[Cython] Bug report: some incorrect typed memoryview indexing operations cause crashes

2013-11-05 Thread James Sanders
If I try to compile the following with the current master version: def buggy(int N, double[:] x): x[0, N-1] I get a crash. This only seems to happen when too many indices are used, and at least one of them is an expression involving a variable (for example, things like x[0, N] and x[0, 2-1]

Re: [Cython] Bug report: compiler traceback instead of error message

2013-07-09 Thread Robert Bradshaw
Yes, we should be giving an error message here rather than crashing; thanks for the report. On Tue, Jul 9, 2013 at 7:36 AM, John Benediktsson wrote: > Hi, > > I had some trouble debugging a traceback that I got from Cython, which ended > up being a simple typo in a .pyx file. Below is a reduced

[Cython] Bug report: compiler traceback instead of error message

2013-07-09 Thread John Benediktsson
Hi, I had some trouble debugging a traceback that I got from Cython, which ended up being a simple typo in a .pyx file. Below is a reduced example of this problem. If you have a foo.pxd file (specifying a variable "bar"): $ cat foo.pxd cdef class Tree: cpdef build(self, int bar=

[Cython] bug report: compiler crash when assigning from function call returning ndarray

2012-11-19 Thread Lars Buitinck
Hi all, I just got a compiler crash (Cython 0.17, 0.17.1 and current master) when trying to compile a call to a function returning an np.ndarray: cimport numpy as np cdef np.ndarray[np.float64_t, ndim=2] trivial(X): return X def test(): # Uncommenting the following line, or removing th

Re: [Cython] Bug report: enumerate does not accept the "start" argument

2012-05-08 Thread Stefan Behnel
Russell Warren, 08.05.2012 08:25: > Python's built-in function 'enumerate' has a lesser-known 2nd argument that > allows the start value of the enumeration to be set. See the python docs > here: > http://docs.python.org/library/functions.html#enumerate > > Cython 0.16 doesn't like it, and only al

[Cython] Bug report: enumerate does not accept the "start" argument

2012-05-07 Thread Russell Warren
Python's built-in function 'enumerate' has a lesser-known 2nd argument that allows the start value of the enumeration to be set. See the python docs here: http://docs.python.org/library/functions.html#enumerate Cython 0.16 doesn't like it, and only allows one argument. Here is a simple file to r

[Cython] Bug report with 0.16 RC

2012-04-03 Thread Wes McKinney
I don't have a Trac account yet, but wanted to report this bug with the 0.16 RC. This function worked fine under 0.15.1: @cython.wraparound(False) @cython.boundscheck(False) def is_lexsorted(list list_of_arrays): cdef: int i Py_ssize_t n, nlevels int32_t k, cur, pre

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-20 Thread Lars Buitinck
2011/12/17 mark florisson : > Thanks, that was very helpful. The problem was that generator > functions apparently don't fill out a name in the symbol table. You > can try again from this branch: > https://github.com/markflorisson88/cython/commit/ed648d932f3922f77e140a6292d65f56f4899090 > which wil

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread mark florisson
On 17 December 2011 12:57, Lars Buitinck wrote: > 2011/12/17 mark florisson : >> Thanks for your report, could you paste/attach the code of your >> extension module? > > The code is online at https://github.com/larsmans/sortedcollection > > -- > Lars Buitinck > Scientific programmer, ILPS > Univer

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread Lars Buitinck
2011/12/17 mark florisson : > Thanks for your report, could you paste/attach the code of your > extension module? The code is online at https://github.com/larsmans/sortedcollection -- Lars Buitinck Scientific programmer, ILPS University of Amsterdam __

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread mark florisson
On 17 December 2011 12:40, Lars Buitinck wrote: > 2011/12/17 Lars Buitinck : >> I was trying to build a C++ extension with debugging support as >> described in http://docs.cython.org/src/userguide/debugging.html, but >> I got an error from the Cython compiler: > > Forgot to mention: I was using th

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread Lars Buitinck
2011/12/17 Lars Buitinck : > I was trying to build a C++ extension with debugging support as > described in http://docs.cython.org/src/userguide/debugging.html, but > I got an error from the Cython compiler: Forgot to mention: I was using the very latest Git version of Cython, a04c0f4eccc96ad47536

[Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread Lars Buitinck
Hello all, I was trying to build a C++ extension with debugging support as described in http://docs.cython.org/src/userguide/debugging.html, but I got an error from the Cython compiler: lars@schoothond:~/src/sortedcollections$ python setup.py build_ext --inplace --pyrex-gdb running build_ext cyt

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-24 Thread Stefan Behnel
Vitja Makarov, 24.03.2011 19:15: 2011/3/24 Stefan Behnel: Vitja Makarov, 23.03.2011 20:11: 2011/3/23 Stefan Behnel: Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'Pyr

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-24 Thread Vitja Makarov
2011/3/24 Stefan Behnel : > Vitja Makarov, 23.03.2011 20:11: >> >> 2011/3/23 Stefan Behnel: >>> >>> Vitja Makarov, 23.03.2011 17:25:   File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl     if 'pxd' in s.level: AttributeError: 'Pyrex

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 20:11: 2011/3/23 Stefan Behnel: Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'PyrexScanner' object has no attribute 'level' Yes it does: """

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Vitja Makarov
2011/3/23 Stefan Behnel : > Vitja Makarov, 23.03.2011 17:25: >> >>   File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", >> line 2307, in p_c_arg_decl >>     if 'pxd' in s.level: >> AttributeError: 'PyrexScanner' object has no attribute 'level' > > Yes it does: > > """ > # Cython/Plex/

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 17:25: def f(): return lambda x=0: x f()() Gives me this bogus code at function entry: Py_ssize_t kw_args = PyDict_Size(__pyx_kwds); PyObject* values[1] = {0}; values[0] = ((PyObject *)0); // <<< !!! Looks like the default value is considered an

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'PyrexScanner' object has no attribute 'level' Yes it does: """ # Cython/Plex/Scanners.pxd cdef class Scanner: [...]

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Vitja Makarov
2011/3/23 René Rex : > Hello > > The attached code creates a segfault with Cython 0.14.1. A workaround > is to use a real function instead of lambda. Using the normal python > interpreter the same code works flawlessly. > > Here are my build commands: > > cython --embed vectorizeBug.pyx > gcc -pthr

[Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread René Rex
Hello The attached code creates a segfault with Cython 0.14.1. A workaround is to use a real function instead of lambda. Using the normal python interpreter the same code works flawlessly. Here are my build commands: cython --embed vectorizeBug.pyx gcc -pthread -fno-strict-aliasing -DNDEBUG -g -