Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to complete HTTP requests inside python script #19

Open
ghost opened this issue Feb 22, 2015 · 2 comments
Open

Is there any way to complete HTTP requests inside python script #19

ghost opened this issue Feb 22, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 22, 2015

I'm running this example script on Empythoned Demo

import urllib
print urllib.urlopen("http://ipv4.icanhazip.com/").read()

I got an error

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: No module named _socket

So, I need to make a HTTP request inside python script. Is there any way?

@SamyBencherif
Copy link

Client side javascript cannot make HTTP requests to another domain

@EricSekyere
Copy link

looks like you are missing some dependencies or they are not copied over in the build script.
you will probably need to manually add it in your environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants