ArtificialQualia / PyEveLiveDPS

PyEveLiveDPS (PELD) is a live DPS calculator and grapher for EVE Online
GNU General Public License v3.0
160 stars 27 forks source link

Failed to execute script peld #5

Closed Lucifirius closed 7 years ago

Lucifirius commented 7 years ago

I get this error when I launch the .exe file. I have redownloaded multiple times.

ArtificialQualia commented 7 years ago

@Lucifirius Are you using the latest version? (v1.0.4)

If you are, can you download this version and copy+paste the error you get in the console:

https://github.com/ArtificialQualia/PyEveLiveDPS/releases/download/v1.0-beta/peld_v1.0.5-debug.zip

Lucifirius commented 7 years ago

Yes, latest version.

Traceback (most recent call last):
  File "peld.py", line 20, in <module>
  File "peld.py", line 16, in __init__
  File "window.py", line 136, in __init__
  File "logreader.py", line 54, in __init__
  File "logreader.py", line 80, in addLog
  File "logreader.py", line 134, in __init__
  File "c:\python35\lib\encodings\cp1252.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 20689: character maps to <undefined>
Press any key to close console

This version runs though, and gives the DPS window, but doesn't show DPS. When I move the window it gives this error.

Traceback (most recent call last):
  File "tkinter\__init__.py", line 1559, in __call__
  File "window.py", line 265, in StopMove
  File "tkinter\__init__.py", line 1958, in __getattr__
AttributeError: '_tkinter.tkapp' object has no attribute 'graphFrame'
Exception in Tkinter callback
Traceback (most recent call last):
  File "peld.py", line 20, in <module>
  File "peld.py", line 16, in __init__
  File "window.py", line 136, in __init__
  File "logreader.py", line 54, in __init__
  File "logreader.py", line 80, in addLog
  File "logreader.py", line 134, in __init__
  File "c:\python35\lib\encodings\cp1252.py", line 23, in decode
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 20689: character maps to <undefined>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "tkinter\__init__.py", line 1559, in __call__
  File "window.py", line 265, in StopMove
  File "tkinter\__init__.py", line 1958, in __getattr__
AttributeError: '_tkinter.tkapp' object has no attribute 'graphFrame'
ArtificialQualia commented 7 years ago

Thanks for the error data.

It appears you have a corrupted log file.

I'll add some error handling to try to handle this case without user intervention and no interruption in service. I'll probably have a working release for you tonight.

Lucifirius commented 7 years ago

Cool, thanks!

ArtificialQualia commented 7 years ago

Turns out the wrong encoding was being used to read the log files, but it only caused errors in rare cases.

I've fixed your issue in the new v1.0.5 release (along with a few other things I've been working on)

You can download it from the releases page, or directly here: https://github.com/ArtificialQualia/PyEveLiveDPS/releases/download/v1.0.5/peld_v1.0.5.zip

If you have any further issues let me know.

Lucifirius commented 7 years ago

Works like a charm! Thanks!