Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 17:25

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

Advertisement



Python urllib geht nicht....

Discussion on Python urllib geht nicht.... within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
.Scare™'s Avatar
 
elite*gold: 66
Join Date: Jan 2012
Posts: 234
Received Thanks: 145
Python urllib geht nicht....

Hallo Com,

Ich wollte gerade in Python was schreiben das eine txt etc von nem webspace ausliest.

Ich bekomme Folgenden Fehler:

Code:
1212 13:48:00257 :: url_request = urllib.urlopen("http://www.procoder.ch/python.txt").readline()

1212 13:48:00257 :: AttributeError
1212 13:48:00257 :: : 
1212 13:48:00257 :: 'module' object has no attribute 'urlopen'
Code:

Code:
import ui
import locale
import urllib
......

	def button_login_click(self):
		password = self.pass_editline.GetText()
		user_id = self.id_editline.GetText()

		url_request = urllib.urlopen("http://www.procoder.ch/python.txt").readline()


		self.id_editline.SetText(url_request)
		pass

		if not password == "" and not user_id == "":
			self.check_login(password, user_id)
		else:
			self.id_editline.SetText("Fehler")
			self.pass_editline.SetText("Fehler")
Kann es sein das ich sonst noch irgentwo was einfügen muss oder was importen muss?



habe die urllib.pyc in lib ordner drin hab den import aber es geht dennoch nicht.

könnte mir da fix jemand helfen?

mfg
.Scare™ is offline  
Reply

Tags
metin, mt2, python, urllib


Similar Threads Similar Threads
[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...
[Longjuyt2] 1 Char Geht 2 Char geht nicht Haubtchar auch nicht
04/04/2013 - Metin2 Private Server - 11 Replies
Hallo , Also ich und nen Paar andere aus meiner gilde kommen mit ihren lowchars farm chars noob chars vk chars ALLES aber mann kommt nicht mit HAUBTCHAR REIN was ist das kann mir einer erklären was das ist ???????? danke im vorraus
[HILFE] cd /home/game/share/locale/germany/quest && python make.py geht nicht
03/08/2013 - Metin2 Private Server - 2 Replies
Hallo, wie im Titel schon beschrieben, geht der Befehl "cd /home/game/share/locale/germany/quest && python make.py" nicht. Benutze die Icebeatzz Files v1 Helft mir
[MW2]Join geht nicht/[BO]Einladung geht nicht
08/14/2011 - Call of Duty - 14 Replies
Hey ich habe eben 2 Probleme. 1. Ich kann bei einem Kontakt von mir nicht joinen bzw. gruppe machen und er nicht auch nicht bei mir. Mit allen Anderen geht alles nur der eine Kontakt funzt nicht. 2. Ich kann bei BO keine Einladungen schicken. Das Feld zum Einladung senden ist ausgeblendet (kann nicht drauf klicken) Es handelt sich hier um die Playstation 3.



All times are GMT +1. The time now is 17:25.


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.