Register for your free account! | Forgot your password?

You last visited: Today at 02:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Urllib in python 2.7

Discussion on Urllib in python 2.7 within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2014
Posts: 16
Received Thanks: 6
Arrow Urllib in python 2.7

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

Can anyone tell my how to fix this?
Deucalion21 is offline  
Old 02/23/2014, 12:46   #2
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,063
Received Thanks: 1,724
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.
ProfessorEnte is offline  
Thanks
1 User
Old 02/23/2014, 13:14   #3
 
elite*gold: 0
Join Date: Feb 2014
Posts: 16
Received Thanks: 6
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
Deucalion21 is offline  
Old 02/23/2014, 14:53   #4
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,063
Received Thanks: 1,724
sry.

_socket.pyd*

You can find the download in the attachment. ;p
Attached Files
File Type: rar _socket.rar (16.6 KB, 321 views)
ProfessorEnte is offline  
Thanks
3 Users
Old 02/23/2014, 15:18   #5
 
elite*gold: 0
Join Date: Feb 2014
Posts: 16
Received Thanks: 6
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?
Deucalion21 is offline  
Old 02/24/2014, 20:20   #6
 
elite*gold: 0
Join Date: Feb 2014
Posts: 16
Received Thanks: 6
And anybody?
Deucalion21 is offline  
Old 02/24/2014, 22:21   #7
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,063
Received Thanks: 1,724
mh no idea :S
Try to use urllib2
ProfessorEnte is offline  
Old 07/31/2016, 13:47   #8
 
elite*gold: 0
Join Date: Jul 2013
Posts: 27
Received Thanks: 0
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):
catalin2o13 is offline  
Reply


Similar Threads Similar Threads
Python urllib geht nicht....
12/12/2013 - Metin2 Private Server - 0 Replies
Hallo Com, Ich wollte gerade in Python was schreiben das eine txt etc von nem webspace ausliest. Ich bekomme Folgenden Fehler: 1212 13:48:00257 :: url_request = urllib.urlopen("http://www.procoder.ch/python .txt").readline() 1212 13:48:00257 :: AttributeError 1212 13:48:00257 :: :
URLLIB einfügen
07/23/2013 - Metin2 Private Server - 8 Replies
Hallo liebe Community. Ich habe versucht nach dem Tutorial von CranK. Den Wartungsmodus im Client einzufügen. Es kommt aber der Error: Run - exceptions.ImportError: No module named urllib Nun die Frage. Wie füge ich URLLIB im Client ein? Am besten ein kleines Tutorial. Nutze den ic3 Client.
[Python]Urllib .txt auslesen
05/16/2013 - Metin2 Private Server - 7 Replies
Hey Ich hab ein kleines Problem und zwar wollte ich von einem Webspace gerne verschiedene Strings auslesen dann hab ich es zunächst mit einer normalen txt datei auf meinem pc probiert kein problem. Nur wenn ich das jetzt von dem Webspace auslesen kommt ein Error. Script: available = urllib.urlopen(url) availableList = available.read() availableFilter = str(availableList).replace("\n", "") availablePlayer = str(availableFilter).split(",") for i in...
Urllib fehler?
09/19/2012 - Metin2 Private Server - 2 Replies
hallo bekomme immer ein fehler sobald ich die urllib in die imports schreibe urllib ist in dem lib ordner. woran liegt das.Will das wegen dem wartungsmodus haben von crank.
urllib client lib
08/24/2012 - Metin2 Private Server - 0 Replies
Hey epvp. I have downloaded libs "lib-darooworld". If i would import urllib in any *.py file in root, my client off. 0824 15:51:04811 :: networkModule.py(line:194) SetSelectCharacterPhase system.py(line:130) __pack_import system.py(line:110) _process_result introSelect.py(line:28) ? system.py(line:130) __pack_import system.py(line:110) _process_result interfaceModule.py(line:21) ?



All times are GMT +1. The time now is 02:40.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.