I installed Python 2.7.3 on my OpenWrt system and when I try to import socket module, I get an ImportError.
File "/usr/lib/python2.7/socket.py", line 47, in <module>
import _socket
ImportError: No module named _socket
I checked if the _socket.so module was installed in the Python package and it is. And I also checked the PYTHONPATH, it's correct too.
The path of _socket.so is : /usr/lib/python2.7/lib-dynload/_socket.so
And this is my PYTHONPATH :
/usr/lib/python27.zip
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/lib/python2.7/site-packages
Does anyone have an idea ?