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
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
> 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).
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
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
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]
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
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=
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
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
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
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
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
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
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
__
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
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
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
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
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
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:
"""
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/
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
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:
[...]
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
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 -
26 matches
Mail list logo