pudwerkin / pyffmpeg

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

Installation with python 2.7 #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here a problem:

Traceback (most recent call last):
  File "setup.py", line 130, in <module>
    **meta_data
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/install.py", line 563, in run
    self.run_command('build')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 127, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/usr/lib/python2.7/site-packages/Cython/Distutils/build_ext.py", line 81, in build_extensions
    self.build_extension(ext)
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 524, in build_extension
    libraries=self.get_libraries(ext),
  File "/usr/lib/python2.7/distutils/command/build_ext.py", line 763, in get_libraries
    return ext.libraries + [pythonlib]
TypeError: can only concatenate tuple (not "list") to tuple

Here is a patch:

Index: setup.py
===================================================================
--- setup.py    (wersja 37)
+++ setup.py    (kopia robocza)
Index: newversion_beta/setup.py
===================================================================
--- newversion_beta/setup.py    (wersja 37)
+++ newversion_beta/setup.py    (kopia robocza)
@@ -82,7 +82,7 @@
     pass

-libs = ('avformat', 'avcodec', 'avutil', 'swscale')
+libs = ['avformat', 'avcodec', 'avutil', 'swscale']
 incdir = [ path_join(ffmpegpath, 'include'), "/usr/include/ffmpeg" , "./include" ] + nd.get_numpy_include_dirs()
 libinc = [ path_join(ffmpegpath, 'lib') ]

Original issue reported on code.google.com by pan...@gmail.com on 20 Sep 2010 at 1:32

GoogleCodeExporter commented 9 years ago

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