OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005040 [python] regular use block have not tried 2013-01-10 12:24 2013-05-19 11:23
Reporter ghenry View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0005040: ImportError: No module named _socket
Description % /opt/csw/bin/python /opt/csw/bin/supybot --daemon my_chan/chan-bot.conf
Traceback (most recent call last):
  File "/opt/csw/bin/supybot", line 37, in <module>
    import supybot
  File "/opt/csw/lib/python/site-packages/supybot/__init__.py", line 34, in <module>
    import supybot.utils as utils
  File "/opt/csw/lib/python/site-packages/supybot/utils/__init__.py", line 100, in <module>
    import net
  File "/opt/csw/lib/python/site-packages/supybot/utils/net.py", line 35, in <module>
    import socket
  File "/opt/csw/lib/python/socket.py", line 46, in <module>
    import _socket
ImportError: No module named _socket
Additional Information    VERSION: 2.6.8,REV=2013.01.09
calypso-root% pkgchk -v CSWpython|& grep socket
/opt/csw/lib/python/lib-dynload/_socket_failed.so
/opt/csw/lib/python/socket.py

and
   VERSION: 2.6.8,REV=2012.04.13

callisto-root% pkgchk -v CSWpython|& grep socket
/opt/csw/lib/python/lib-dynload/_socket.so
/opt/csw/lib/python/socket.py
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0010262)
maciej (reporter)
2013-01-10 13:01

Thanks for the report. I can reproduce this. Until fixed packages are released, here's a workaround:

1. Rename the shared object:

sudo mv /opt/csw/lib/python/lib-dynload/_socket{_failed,}.so

2. Set LD_PRELOAD before starting Python:

LD_PRELOAD=/usr/lib/libsocket.so.1

(0010263)
maciej (reporter)
2013-01-10 14:14

I found the cause and I'm rebuilding a set of fixed packages.

http://sourceforge.net/apps/trac/gar/changeset/20073 [^]
(0010392)
maciej (reporter)
2013-05-19 11:23

Fixed, closing.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker