esitarski / CrossMgr

Cyclo Cross Management Application
MIT License
41 stars 20 forks source link

CrossMgr File Load & Upload to RaceDB #129

Closed ChainGangEvents closed 7 months ago

ChainGangEvents commented 9 months ago

Describe the bug Upgraded CrossMgr v3.1.39-20231120195750 to new version CrossMgr v3.1.40-20240203105257 and tried to open a previous created CrossMgr file and received the below error message:

UnboundLocalError: local variable '_' referenced before assignment

I closed the error message and the file opened as normal. I then tried to upload the results to RaceDB and receive the following error message:

File "Model.py", line 2715, in getCurrentHtml File "MainWin.py", line 2050, in addResultsToHtmlStr File "MainWin.py", line 300, in replaceJsonVar File "Utils.py", line 799, in ToJson File "json__init__.py", line 238, in dumps File "json\encoder.py", line 199, in encode File "json\encoder.py", line 257, in iterencode File "json\encoder.py", line 179, in default TypeError: Object of type method is not JSON serializable

Using the following:

Windows 10 Pro Version 22H2 64-bit OS Build 19045.4046 Firefox 122.0.1 (64-bit)

RaceDB v3.0.93-20231016132935

esitarski commented 9 months ago

Thanks for finding this. A fix should be compiled on github within 2 hours.

On Tue, Feb 20, 2024 at 3:10 AM ChainGangEvents @.***> wrote:

Describe the bug Upgraded CrossMgr v3.1.39-20231120195750 to new version CrossMgr v3.1.40-20240203105257 and tried to open a previous created CrossMgr file and received the below error message:

UnboundLocalError: local variable '_' referenced before assignment

I closed the error message and the file opened as normal. I then tried to upload the results to RaceDB and receive the following error message:

File "Model.py", line 2715, in getCurrentHtml File "MainWin.py", line 2050, in addResultsToHtmlStr File "MainWin.py", line 300, in replaceJsonVar File "Utils.py", line 799, in ToJson File "jsoninit.py", line 238, in dumps File "json\encoder.py", line 199, in encode File "json\encoder.py", line 257, in iterencode File "json\encoder.py", line 179, in default TypeError: Object of type method is not JSON serializable

Using the following:

Windows 10 Pro Version 22H2 64-bit OS Build 19045.4046 Firefox 122.0.1 (64-bit)

RaceDB v3.0.93-20231016132935

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/129, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKLI2W44GIUQUC6JKBTYURLBHAVCNFSM6AAAAABDQVNOXKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE2DGNZXGEZDCMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Edward Sitarski

ChainGangEvents commented 9 months ago

Thank you @esitarski . I've updated to the latest version. Release v3.1.42-20240226141745 and the upload to RaceDB works perfect. The issue in regards to the CrossMgr file open is still there and have the following error message:

UnboundLocalError: local variable '_' referenced before assignment

I closed the error message and the file opened as normal.

esitarski commented 9 months ago

OK. Another fix will be available in an hour or so.

On Tue, Feb 27, 2024 at 6:47 AM ChainGangEvents @.***> wrote:

Thank you @esitarski https://github.com/esitarski . I've updated to the latest version. Release v3.1.42-20240226141745 and the upload to RaceDB works perfect. The issue in regards to the CrossMgr file open is still there and have the following error message:

UnboundLocalError: local variable '_' referenced before assignment

I closed the error message and the file opened as normal.

— Reply to this email directly, view it on GitHub https://github.com/esitarski/CrossMgr/issues/129#issuecomment-1966372273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABGXKPW4JUS3LUUSLVM4STYVXBVJAVCNFSM6AAAAABDQVNOXKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRWGM3TEMRXGM . You are receiving this because you were mentioned.Message ID: @.***>

--

Edward Sitarski