pyshout: make fails

Miki Tebeka tebeka at cs.bgu.ac.il
Thu May 15 03:06:12 EDT 2003


Hello Florian,

> thx for your answer. It teached me some things about the python setup 
> and  distutils. 
Glad I could help.

> - 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*
This is the one you need.

> 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
Try running the python interpreter and do:
import pyshout
dir(pyshout)

If you don't see shout_send_data then you have a problem.

> If i rename pyshout.so to pyshoutmodule.so i get the same error.
Because you didn't change the module, just it's name.

> 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
The .o is just an object file, not a library. Python don't (and won't)
know how to use it.

I think it's best for you to do one (or both):
1. Contact pyshout's author for help
2. Implement it's functionallity in pure python.

HTH.
Miki

BTW: I've lost my job recently so I won't monitor this group
freqently.
You can email me directly to tebekaATcs.bgu.ac.il




More information about the Python-list mailing list