imsparsh / pyffmpeg

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

beta doesn't build #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install dependencies
2. from newversion_beta, run python setup.py install --prefix=${MY_INSTALL_DIR}

What is the expected output? What do you see instead?

Instead of building and installing, I get this:
running install
running build
running build_ext
building 'pyffmpeg' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC

compile options: '-I/opt/ffmpeg/include -I/usr/include/ffmpeg -I./include 
-I/opt/lisa/os/lib/python2.5/site-packages/numpy/core/include 
-I/usr/include/python2.5 -c'
Traceback (most recent call last):
  File "setup.py", line 151, in <module>
    **meta_data
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.5/distutils/command/install.py", line 506, in run
    self.run_command('build')
  File "/usr/lib64/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib64/python2.5/distutils/command/build_ext.py", line 290, in run
    self.build_extensions()
  File "/u/lisa/local/export.soft.lisa.master/linux-x86_64-fc9.x86_64/lib64/python2.5/site-packages/Cython-0.12.1-py2.5-linux-x86_64.egg/Cython/Distutils/build_ext.py", line 83, in build_extensions
    self.build_extension(ext)
  File "/usr/lib64/python2.5/distutils/command/build_ext.py", line 506, in build_extension
    libraries=self.get_libraries(ext),
  File "/usr/lib64/python2.5/distutils/command/build_ext.py", line 712, in get_libraries
    return ext.libraries + [pythonlib]
TypeError: can only concatenate tuple (not "list") to tuple

What version of the product are you using? On what operating system?
pyffmpeg-read-only svn checked out july 12, 2010. Fedora release 9.

Please provide any additional information below.

Original issue reported on code.google.com by goodfell...@gmail.com on 12 Jul 2010 at 8:27

GoogleCodeExporter commented 9 years ago
Sorry, I shall update the beta source package,

The bugfix is easy, in setup.py replace
 + [pythonlib]
by 
 + (pythonlib,)

I will update the beta source package soon.

Original comment by bertrand...@gmail.com on 12 Jul 2010 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by bertrand...@gmail.com on 12 Jul 2010 at 10:49

GoogleCodeExporter commented 9 years ago
but the 
+ [pythonlib]
is part of distutils, not pyffmpeg. I think the bug must be in the formatting 
of the arguments that pyffmpeg passes to distutil's setup function.

Original comment by goodfell...@gmail.com on 13 Jul 2010 at 4:08

GoogleCodeExporter commented 9 years ago
You're right. I am sorry it has already been fixed in my source tree.

I just haven't uploaded the new package yet.
If you want you get the latest source tree by cloning my github
and by checking out the "beta" branch :

git clone "http://github.com/tranx/pyffmpeg.git/" || exit -1
cd pyffmpeg
git checkout origin/beta

Original comment by bertrand...@gmail.com on 13 Jul 2010 at 4:16

GoogleCodeExporter commented 9 years ago
I got an error or maybe just warning message for the last command:
$git checkout origin/beta
Note: moving to "origin/beta" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b <new_branch_name>
HEAD is now at a74ad7e... Unabled truncated file support.

I'm not quite sure what that means, but I still get the same result if I run 
setup.py/

Original comment by goodfell...@gmail.com on 13 Jul 2010 at 4:24

GoogleCodeExporter commented 9 years ago
Try, to see the possibles branches

git branch

If there is a "beta" branch, switch to it

git checkout beta

Else, it is likely that you are already on the good branch especially the 
status fit with  some change, I added this morning. So you may try to build the 
package.

Sorry for all these troubles.

Original comment by bertrand...@gmail.com on 13 Jul 2010 at 4:32

GoogleCodeExporter commented 9 years ago
Actually the bugfix was indicated in issue 18,

Ok, the bugfix should consists in changing the line 

libs = ('avformat', 'avcodec', 'avutil', 'swscale')

into

libs = ['avformat', 'avcodec', 'avutil', 'swscale']

in setup.py.

Original comment by bertrand...@gmail.com on 13 Jul 2010 at 4:35

GoogleCodeExporter commented 9 years ago
Thanks, that fixed for me!

Original comment by goodfell...@gmail.com on 13 Jul 2010 at 4:54

GoogleCodeExporter commented 9 years ago

Original comment by martin.h...@gmail.com on 17 Mar 2011 at 11:41