Use urllib2 in pre-executuon

If you are seeking for help, this is the right place to ask!
Post Reply
anion
Posts: 32
Joined: 26 Feb 2014, 14:17

Use urllib2 in pre-executuon

Post by 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

Post Reply