Çözüldü error with python

  • Konuyu açan Konuyu açan M29
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 2
  • Gösterim Gösterim 35
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ı.

M29

Üye
Üye
Mesaj
77
Çözümler
1
Beğeni
42
Puan
669
Ticaret Puanı
0
Hello guys

I have an error with the FPS view system that is in this topic


The system works but there is an error that appears in the syserr.txt sheet that I do not understand

Python:
Genişlet Daralt Kopyala
1103 17:45:10649 :: uiMiniMap:482: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

1103 17:45:10649 :: Traceback (most recent call last):

1103 17:45:10649 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10650 :: RuntimeError
1103 17:45:10650 :: :
1103 17:45:10650 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10650 ::

1103 17:45:10659 :: Traceback (most recent call last):

1103 17:45:10659 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10659 :: RuntimeError
1103 17:45:10659 :: :
1103 17:45:10659 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10659 ::

1103 17:45:10667 :: Traceback (most recent call last):

1103 17:45:10667 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10667 :: RuntimeError
1103 17:45:10667 :: :
1103 17:45:10667 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10667 ::

1103 17:45:10684 :: Traceback (most recent call last):

1103 17:45:10684 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10684 :: RuntimeError
1103 17:45:10684 :: :
1103 17:45:10684 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10684 ::

1103 17:45:10700 :: Traceback (most recent call last):

1103 17:45:10700 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10700 :: RuntimeError
1103 17:45:10700 :: :
1103 17:45:10700 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10700 ::

1103 17:45:10717 :: Traceback (most recent call last):

1103 17:45:10717 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10717 :: RuntimeError
1103 17:45:10717 :: :
1103 17:45:10717 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10717 ::

1103 17:45:10733 :: Traceback (most recent call last):

1103 17:45:10733 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10733 :: RuntimeError
1103 17:45:10733 :: :
1103 17:45:10733 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10733 ::

1103 17:45:10750 :: Traceback (most recent call last):

1103 17:45:10750 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10750 :: RuntimeError
1103 17:45:10750 :: :
1103 17:45:10750 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10750 ::

1103 17:45:10766 :: Traceback (most recent call last):

1103 17:45:10766 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10766 :: RuntimeError
1103 17:45:10766 :: :
1103 17:45:10766 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10766 ::

1103 17:45:10783 :: Traceback (most recent call last):

1103 17:45:10783 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10783 :: RuntimeError
1103 17:45:10783 :: :
1103 17:45:10783 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10783 ::

1103 17:45:10823 :: Traceback (most recent call last):

1103 17:45:10823 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10823 :: RuntimeError
1103 17:45:10823 :: :
1103 17:45:10823 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10823 ::

1103 17:45:10824 :: Traceback (most recent call last):

1103 17:45:10824 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10824 :: RuntimeError
1103 17:45:10824 :: :
1103 17:45:10824 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10824 ::

1103 17:45:10834 :: Traceback (most recent call last):

1103 17:45:10834 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10834 :: RuntimeError
1103 17:45:10834 :: :
1103 17:45:10834 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10834 ::

1103 17:45:11914 :: Traceback (most recent call last):

1103 17:45:11914 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:11914 :: RuntimeError
1103 17:45:11914 :: :
1103 17:45:11914 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:11914 ::

Note I have added the fps file in this path etc/ymir work/ui/
 
Çözüm
Hello guys

I have an error with the FPS view system that is in this topic


The system works but there is an error that appears in the syserr.txt sheet that I do not understand

Python:
Genişlet Daralt Kopyala
1103 17:45:10649 :: uiMiniMap:482: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

1103 17:45:10649 :: Traceback (most recent call last):

1103 17:45:10649 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10650 :: RuntimeError
1103 17:45:10650 :: :
1103 17:45:10650 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10650 ::

1103 17:45:10659 :: Traceback (most recent call last):

1103 17:45:10659 ::   File...
Hello guys

I have an error with the FPS view system that is in this topic


The system works but there is an error that appears in the syserr.txt sheet that I do not understand

Python:
Genişlet Daralt Kopyala
1103 17:45:10649 :: uiMiniMap:482: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

1103 17:45:10649 :: Traceback (most recent call last):

1103 17:45:10649 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10650 :: RuntimeError
1103 17:45:10650 :: :
1103 17:45:10650 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10650 ::

1103 17:45:10659 :: Traceback (most recent call last):

1103 17:45:10659 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10659 :: RuntimeError
1103 17:45:10659 :: :
1103 17:45:10659 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10659 ::

1103 17:45:10667 :: Traceback (most recent call last):

1103 17:45:10667 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10667 :: RuntimeError
1103 17:45:10667 :: :
1103 17:45:10667 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10667 ::

1103 17:45:10684 :: Traceback (most recent call last):

1103 17:45:10684 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10684 :: RuntimeError
1103 17:45:10684 :: :
1103 17:45:10684 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10684 ::

1103 17:45:10700 :: Traceback (most recent call last):

1103 17:45:10700 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10700 :: RuntimeError
1103 17:45:10700 :: :
1103 17:45:10700 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10700 ::

1103 17:45:10717 :: Traceback (most recent call last):

1103 17:45:10717 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10717 :: RuntimeError
1103 17:45:10717 :: :
1103 17:45:10717 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10717 ::

1103 17:45:10733 :: Traceback (most recent call last):

1103 17:45:10733 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10733 :: RuntimeError
1103 17:45:10733 :: :
1103 17:45:10733 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10733 ::

1103 17:45:10750 :: Traceback (most recent call last):

1103 17:45:10750 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10750 :: RuntimeError
1103 17:45:10750 :: :
1103 17:45:10750 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10750 ::

1103 17:45:10766 :: Traceback (most recent call last):

1103 17:45:10766 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10766 :: RuntimeError
1103 17:45:10766 :: :
1103 17:45:10766 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10766 ::

1103 17:45:10783 :: Traceback (most recent call last):

1103 17:45:10783 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10783 :: RuntimeError
1103 17:45:10783 :: :
1103 17:45:10783 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10783 ::

1103 17:45:10823 :: Traceback (most recent call last):

1103 17:45:10823 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10823 :: RuntimeError
1103 17:45:10823 :: :
1103 17:45:10823 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10823 ::

1103 17:45:10824 :: Traceback (most recent call last):

1103 17:45:10824 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10824 :: RuntimeError
1103 17:45:10824 :: :
1103 17:45:10824 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10824 ::

1103 17:45:10834 :: Traceback (most recent call last):

1103 17:45:10834 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:10834 :: RuntimeError
1103 17:45:10834 :: :
1103 17:45:10834 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:10834 ::

1103 17:45:11914 :: Traceback (most recent call last):

1103 17:45:11914 ::   File "uiMiniMap.py", line 482, in OnUpdate

1103 17:45:11914 :: RuntimeError
1103 17:45:11914 :: :
1103 17:45:11914 :: Failed to load image (filename: d:/ymir work/ui/fps/.png)
1103 17:45:11914 ::

Note I have added the fps file in this path etc/ymir work/ui/
Merhaba,
Kodu yazan arkadaş ufak bir hata yapmış.
:1 yazılması gereken yere 1: yazdığı için hatayı alıyorsun. Sistemin çalışmasına engel değil zaten bu hata sadece mainline kullananlar için görünüyor. Aşağıdakini uygula çözülür.

Kod:
Genişlet Daralt Kopyala
## Arat

                self.fpsResimSag.LoadImage("d:/ymir work/ui/fps/" + stringFps[1:] + ".png")

##Değiştir
                self.fpsResimSag.LoadImage("d:/ymir work/ui/fps/" + stringFps[:1] + ".png")
 
  • Muhteşem
Tepkiler: M29
Çözüm
Merhaba,
Kodu yazan arkadaş ufak bir hata yapmış.
:1 yazılması gereken yere 1: yazdığı için hatayı alıyorsun. Sistemin çalışmasına engel değil zaten bu hata sadece mainline kullananlar için görünüyor. Aşağıdakini uygula çözülür.

Kod:
Genişlet Daralt Kopyala
## Arat

                self.fpsResimSag.LoadImage("d:/ymir work/ui/fps/" + stringFps[1:] + ".png")

##Değiştir
                self.fpsResimSag.LoadImage("d:/ymir work/ui/fps/" + stringFps[:1] + ".png")
Thank you, the mistake was in one line and I did not notice the mistake. Thank you for your help. :love:
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst