Use urllib2 in pre-executuon

If you are seeking for help, this is the right place to ask!

Use urllib2 in pre-executuon

Postby anion » 16 Dec 2015, 07:07

I want to use urllib2 in pre-executuon

The simple example not work:

Code: Select all
import urllib2
response = urllib2.urlopen('http://RenderPal.com/')
print response.read()


Server output log:
Code: Select all
> Executing Python script...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Program Files\RenderPal V2\Server\python25.zip\urllib2.py", line 92, in <module>
  File "C:\Program Files\RenderPal V2\Server\python25.zip\httplib.py", line 71, in <module>
  File "C:\Program Files\RenderPal V2\Server\python25.zip\socket.py", line 45, in <module>
ImportError: No module named _socket


help me please
--
sorry for the translation
anion
 
Posts: 31
Joined: 26 Feb 2014, 14:17

Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests