Urllib in python 2.7

02/23/2014 12:01 Deucalion21#1
Hi. I have a 40k bin with python 2.7 and I have a problem with use Urllib in game, i import this lib, and when i run my bin i have something like that :confused:
[Only registered and activated users can see links. Click Here To Register...]
Can anyone tell my how to fix this?
02/23/2014 12:46 ProfessorEnte#2
you have to replace the old 2.6 python libs with the new 2.7 python libs.

Just download python 2.7 and compile the libs you need.
Replace the old "_socket.pyc" with the new one.
02/23/2014 13:14 Deucalion21#3
I tried this . I tried to copy libs from extern in novaline source and from python 2.7 for windows. In every case is the same error and in novaline or in py for windows _socket.pyc dosen't exist
02/23/2014 14:53 ProfessorEnte#4
sry.

_socket.pyd* :D

You can find the download in the attachment. ;p
02/23/2014 15:18 Deucalion21#5
Okey it works , thank you very much

Okey, I will not make another topic, becouse it is a connected, so i ask here. Now when i use the urllib i have something like that:
sysser:
Quote:
0223 20:00:01676 ::
introLogin.py(line:539) __LoadScript
Lib\urllib.py(line:87) urlopen
Lib\urllib.py(line:208) open
Lib\urllib.py(line:292) open_http
system.py(line:145) __pack_import
Lib\httplib.py(line:79) <module>
system.py(line:145) __pack_import
Lib\mimetools.py(line:6) <module>
system.py(line:145) __pack_import
Lib\tempfile.py(line:32) <module>
system.py(line:145) __pack_import
Lib\io.py(line:51) <module>
system.py(line:145) __pack_import

LoginWindow.__LoadScript.BindObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)
How can i fix this?
02/24/2014 20:20 Deucalion21#6
And anybody?
02/24/2014 22:21 ProfessorEnte#7
mh no idea :S
Try to use urllib2
07/31/2016 13:47 catalin2o13#8
Quote:
Originally Posted by Deucalion21 View Post
Okey it works , thank you very much

Okey, I will not make another topic, becouse it is a connected, so i ask here. Now when i use the urllib i have something like that:
sysser:
Quote:
0223 20:00:01676 ::
introLogin.py(line:539) __LoadScript
Lib\urllib.py(line:87) urlopen
Lib\urllib.py(line:208) open
Lib\urllib.py(line:292) open_http
system.py(line:145) __pack_import
Lib\httplib.py(line:79) <module>
system.py(line:145) __pack_import
Lib\mimetools.py(line:6) <module>
system.py(line:145) __pack_import
Lib\tempfile.py(line:32) <module>
system.py(line:145) __pack_import
Lib\io.py(line:51) <module>
system.py(line:145) __pack_import

LoginWindow.__LoadScript.BindObject - <type 'exceptions.TypeError'>:__pack_import() takes at most 4 arguments (5 given)
How can i fix this?
search in system.pY:
def __pack_import(name,globals=None,locals=None,fromli st=None):
and change in:
def __pack_import(name,globals=None,locals=None,fromli st=None,arg5=None):