Unable to use `urllib` #12

kracekumar opened this Issue Mar 29, 2013 · 0 comments


None yet
1 participant
import urllib
response = urllib.urlopen("http://python.org")
print response

Code was evaluated using this app yields
Uncaught ReferenceError: _getaddrinfo is not defined in JS console.

While trying same code as chrome extension https://github.com/kracekumar/offline-python

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lib/python2.7/urllib.py", line 26, in <module>
    import socket
  File "/lib/python2.7/socket.py", line 47, in <module>
    import _socket
ImportError: Could not evaluate dynamic lib: //lib/python2.7/_socket.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment