pyshout: make fails
Florian Konnertz
florian.konnertz at web.de
Fri May 2 03:44:40 EDT 2003
Miki Tebeka wrote:
> Hello Florian,
>
>
>>The README tells me:
>>To compile, copy the Makefile.pre.in from your Python installation and type
>>make -f Makefile.pre.in boot
>>make
>>
>>When i do this i get:
>>root at grooveway:/usr/src/pyshout-0.0.6# make -f Makefile.pre.in boot
>>make: *** No rule to make target `boot'. Stop.
>
> Looks like it's very old. Try using the new building system with distutils:
> --- setup.py ---
> from distutils.core import setup, Extension
> setup(name="pyshout", version="0.0.6",
> ext_modules=[Extension("pyshout", ["pyshoutmodule.c"])])
> --- setup.py ---
> And run 'python setup.py build'
> However it looks very old and didn't compile on my Mandrake.
Hi Miki,
thx for your answer. It teached me some things about the python setup
and distutils. - But there's still a problem, maybe you have another
idea...
I got two files but both with another name then wanted:
root at grooveway:/usr/src/pyshout-0.0.6/build# ls -lR .
.:
total 8
drwxr-xr-x 2 root root 4096 May 1 18:14 lib.linux-i686-2.1/
drwxr-xr-x 2 root root 4096 May 1 18:16 temp.linux-i686-2.1/
./lib.linux-i686-2.1:
total 48
-rwxr-xr-x 1 root root 47652 May 1 18:14 pyshout.so*
./temp.linux-i686-2.1:
total 48
-rw-r--r-- 1 root root 45704 May 1 18:14 pyshoutmodule.o
So i copied both to /usr/local/lib/python2.1/site-packages
restarted Zope and checked the Products panel. ZRFP is still broken
caused by this error:
Traceback (most recent call last):
File "/usr/local/Zope-2.6.1-src/lib/python/OFS/Application.py", line
541, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/usr/local/zope/lib/python/Products/ZRFP/__init__.py", line 18,
in ?
import ZRFP, Track, Icecast, Stream, Playlist
File "/usr/local/zope/lib/python/Products/ZRFP/Stream.py", line 22, in ?
from pyshout import PyShout
ImportError: /usr/local/lib/python2.1/site-packages/pyshout.so:
undefined symbol: shout_send_data
As pyshout.so is a bin files i cant check for the places where i have to
modify it.
If i rename pyshout.so to pyshoutmodule.so i get the same error.
If i rename pyshoutmodule.o to pyshoutmodule.so i get this eror:
Traceback (most recent call last):
File "/usr/local/Zope-2.6.1-src/lib/python/OFS/Application.py", line
541, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/usr/local/zope/lib/python/Products/ZRFP/__init__.py", line 18,
in ?
import ZRFP, Track, Icecast, Stream, Playlist
File "/usr/local/zope/lib/python/Products/ZRFP/Stream.py", line 22, in ?
from pyshout import PyShout
ImportError: /usr/local/lib/python2.1/site-packages/pyshoutmodule.so:
ELF file's phentsize not the expected size
Regards,
Florian
--
Florian Konnertz --- http://www.florian-konnertz.de
http://openspirit.homelinux.net/noowiki/FrontPage
ZWiki about all topics, especially consciousness research
and wisdom traditions
More information about the Python-list
mailing list