Skip to content

Unable to use urllib #12

@kracekumar

Description

@kracekumar
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions