Çözüldü expected an indented block (Girintili bir blok bekleniyordu ) hatası

  • Konuyu açan Konuyu açan al1h4nkvlc2
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 7
  • Gösterim Gösterim 1K
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

al1h4nkvlc2

Üye
Üye
Mesaj
252
Çözümler
9
Beğeni
38
Puan
454
Ticaret Puanı
0
expected an indented block hatası alıyorum fakat herşey yolunda hiçbir yanlışım yok kafayı yedirtiyor bana bu pythondaki hata
sysser = networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:expected an indented block (interfaceModule.py, line 1211)

Linkleri görebilmek için giriş yap veya kayıt ol.
-> interfacemodule.py dosyası

Python:
Genişlet Daralt Kopyala
    # Shop
    if (app.ENABLE_BATTLE_ZONE_SYSTEM):
        def OpenShopDialog(self, vid, points, curLimit, maxLimit, count):
            self.wndInventory.Show()
            if self.wndExpandedMoneyTaskbar:
                self.wndExpandedMoneyTaskbar.Show()
            self.wndInventory.SetTop()
            self.dlgShop.Open(vid, points, curLimit, maxLimit, count)
            self.dlgShop.SetTop()
    else:
        def OpenShopDialog(self, vid):
        if app.WJ_SECURITY_SYSTEM and player.IsSecurityActivate():
            return
            self.wndInventory.Show()
            if self.wndExpandedMoneyTaskbar:
                self.wndExpandedMoneyTaskbar.Show()
            self.wndInventory.SetTop()
            self.dlgShop.Open(vid)
            self.dlgShop.SetTop()
 
Çözüm
Fonksiyon belirtildikten sonraki alt satır syntax kurallarına uymuyor yani bir tab ileri atmalısın

Python:
Genişlet Daralt Kopyala
        def OpenShopDialog(self, vid):
            if app.WJ_SECURITY_SYSTEM and player.IsSecurityActivate():
                return
            self.wndInventory.Show()
            if self.wndExpandedMoneyTaskbar:
                self.wndExpandedMoneyTaskbar.Show()
            self.wndInventory.SetTop()
            self.dlgShop.Open(vid)
            self.dlgShop.SetTop()


Bir de bunu dene
Fonksiyon belirtildikten sonraki alt satır syntax kurallarına uymuyor yani bir tab ileri atmalısın

Python:
Genişlet Daralt Kopyala
        def OpenShopDialog(self, vid):
            if app.WJ_SECURITY_SYSTEM and player.IsSecurityActivate():
                return
            self.wndInventory.Show()
            if self.wndExpandedMoneyTaskbar:
                self.wndExpandedMoneyTaskbar.Show()
            self.wndInventory.SetTop()
            self.dlgShop.Open(vid)
            self.dlgShop.SetTop()


Bir de bunu dene
 
Çözüm
Eklediğiniz sistemin kodlarını kontrol edin. Eksik bir şey yapmış olabilirsiniz. Bu konuda belirtilen hatanın çözümü zaten belirtilmiş. :)
Yeni hatanın tamamını paylaşabilir misiniz?
 
Eklediğiniz sistemin kodlarını kontrol edin. Eksik bir şey yapmış olabilirsiniz. Bu konuda belirtilen hatanın çözümü zaten belirtilmiş. :)
Yeni hatanın tamamını paylaşabilir misiniz?
sysser:
Genişlet Daralt Kopyala
1204 00:48:04542 :: invalid idx 0
1204 00:49:19882 :: Traceback (most recent call last):

1204 00:49:19883 ::   File "networkModule.py", line 240, in SetGamePhase

1204 00:49:19883 ::   File "game.py", line 132, in __init__

1204 00:49:19883 ::   File "interfaceModule.py", line 575, in MakeInterface

1204 00:49:19883 ::   File "interfaceModule.py", line 521, in __MakeSecurityWindow

1204 00:49:19883 :: AttributeError
1204 00:49:19883 :: :
1204 00:49:19883 :: 'module' object has no attribute 'SecurityDialog'
1204 00:49:19883 ::

Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05644A50>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05644FD0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x04F8E5F0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x0541EBD0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05090230>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05090250>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05090470>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05090A10>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05092030>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x050924D0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x050924F0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05092790>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x050928B0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05092AF0>> ignored
Exception AttributeError: "'NoneType' object has no attribute '__del__'" in <bound method NumberLine.__del__ of <ui.NumberLine object at 0x050980D0>> ignored
Exception TypeError: "'NoneType' object is not callable" in <bound method CursorImage.__del__ of <mouseModule.CursorImage object at 0x05089F90>> ignored
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr
 
Kodlara göre uiSafebox.py içerisinde SecurityDialog adında class çekiyor ancak tanımlanmadığı için bu hatayı veriyor. Lütfen eklediğiniz sistemin kodlarını kontrol ederek baştan eklemeleri yapınız.
 
Kodlara göre uiSafebox.py içerisinde SecurityDialog adında class çekiyor ancak tanımlanmadığı için bu hatayı veriyor. Lütfen eklediğiniz sistemin kodlarını kontrol ederek baştan eklemeleri yapınız.

Kodlara göre uiSafebox.py içerisinde SecurityDialog adında class çekiyor ancak tanımlanmadığı için bu hatayı veriyor. Lütfen eklediğiniz sistemin kodlarını kontrol ederek baştan eklemeleri yapınız.
Teşekkür ederim konu kapatılabilir dediğiniz yeri inceleyip hallettim :D
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Üst