rbash88 / pyffmpeg

Automatically exported from code.google.com/p/pyffmpeg
0 stars 0 forks source link

setup.py fails with cython 0.14 #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. install cython 0.14 and other prerequisites
2. exec setup.py build

What is the expected output? What do you see instead?
python setup.py build
running build
running build_ext
cythoning pyffmpeg.pyx to pyffmpeg.c
Traceback (most recent call last):
...
KeyError: 'T'

What version of the product are you using? On what operating system?
pyffmpeg 2.0 with cython 0.14

Please provide any additional information below.
According to the cython mailing list the KeyError may occur if the deprecated 
__new__ method is used.
(Source: http://codespeak.net/pipermail/cython-dev/2010-December/010418.html)

Replacing all "def __new__(...)" with "def __cinit(...)" in pyffmpeg.pyx fixes 
the problem (see the attached patch file made for pyffmpeg 2.0)

Original issue reported on code.google.com by craff...@gmail.com on 24 Jan 2011 at 9:53

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks, for contributing with this patch.. however, this is normally already 
fixed in the 2.1 branch.

Original comment by bertrand...@gmail.com on 24 Jan 2011 at 10:24

GoogleCodeExporter commented 8 years ago
I just got this error when building pyffmpeg-2.1beta, downloaded from 
http://code.google.com/p/pyffmpeg/downloads/list, using cython 0.14. This 
pyffmpeg is shown as having been uploaded in Jan 2011.  So it may not be fixed 
in the 2.1 branch.

Original comment by warren.h...@gmail.com on 10 Sep 2011 at 10:28

GoogleCodeExporter commented 8 years ago
This seems to have not been solved --

running build
running build_ext
cythoning pyffmpeg.pyx to pyffmpeg.c
warning: pyffmpeg.pyx:530:2: Unreachable code
warning: pyffmpeg.pyx:49:0: 'python_string' is deprecated, use 'cpython'
warning: pyffmpeg.pyx:50:0: 'python_mem' is deprecated, use 'cpython'

Error compiling Cython file:

Original comment by mally...@gmail.com on 12 Dec 2012 at 6:51