Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411169 - Error compiling Cython file
Summary: Error compiling Cython file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal critical
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-07 17:27 UTC by Ilya Andriyanov
Modified: 2012-04-07 17:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Andriyanov 2012-04-07 17:27:05 UTC
To work with "ffmpeg" I need pyffmpeg. When assembling the package we get the following error. Help!

Reproducible: Always

Steps to Reproduce:
1. wget http://pyffmpeg.googlecode.com/files/pyffmpeg-2.0.tar.gz
2. tar xvzf pyff*
3. cd ./pyffmp* && python setyp.py install
Actual Results:  
pyffmpeg-2.0 # python setup.py build
running build
running build_ext
cythoning pyffmpeg.pyx to pyffmpeg.c

Error compiling Cython file:
------------------------------------------------------------
...

    cdef AVFormatContext *FormatCtx
 #   self.prepacket=<AVPacket *>None
#   self.packet=&self.packetbufa

    def __new__(self):
   ^
------------------------------------------------------------

pyffmpeg.pyx:807:4: __new__ method of extension type will change semantics in a future version of Pyrex and Cython. Use __cinit__ instead.

Error compiling Cython file:
------------------------------------------------------------
...
    cdef object default_audio_track
    cdef object default_video_track
    cdef int with_readahead
    cdef unsigned long long int seek_before_security_interval

    def __new__(self,with_readahead=True,seek_before=4000):
   ^
------------------------------------------------------------

pyffmpeg.pyx:1838:4: __new__ method of extension type will change semantics in a future version of Pyrex and Cython. Use __cinit__ instead.
building 'pyffmpeg' extension
C compiler: x86_64-pc-linux-gnu-gcc -pthread -fPIC

creating build
creating build/temp.linux-x86_64-2.7
compile options: '-I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'
x86_64-pc-linux-gnu-gcc: pyffmpeg.c
pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: Command "x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c pyffmpeg.c -o build/temp.linux-x86_64-2.7/pyffmpeg.o" failed with exit status 1



pyffmpeg-2.0 # python setup.py build
running build
running build_ext
cythoning pyffmpeg.pyx to pyffmpeg.c

Error compiling Cython file:
------------------------------------------------------------
...

    cdef AVFormatContext *FormatCtx
 #   self.prepacket=<AVPacket *>None
#   self.packet=&self.packetbufa

    def __new__(self):
   ^
------------------------------------------------------------

pyffmpeg.pyx:807:4: __new__ method of extension type will change semantics in a future version of Pyrex and Cython. Use __cinit__ instead.

Error compiling Cython file:
------------------------------------------------------------
...
    cdef object default_audio_track
    cdef object default_video_track
    cdef int with_readahead
    cdef unsigned long long int seek_before_security_interval

    def __new__(self,with_readahead=True,seek_before=4000):
   ^
------------------------------------------------------------

pyffmpeg.pyx:1838:4: __new__ method of extension type will change semantics in a future version of Pyrex and Cython. Use __cinit__ instead.
building 'pyffmpeg' extension
C compiler: x86_64-pc-linux-gnu-gcc -pthread -fPIC

creating build
creating build/temp.linux-x86_64-2.7
compile options: '-I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'
x86_64-pc-linux-gnu-gcc: pyffmpeg.c
pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
pyffmpeg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: Command "x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include -I/usr/lib64/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c pyffmpeg.c -o build/temp.linux-x86_64-2.7/pyffmpeg.o" failed with exit status 1
Comment 1 Ilya Andriyanov 2012-04-07 17:30:35 UTC
Sorry. Im fix it! 

Close commit.