CTHRU/Hitrava

[SUPPORT] Series of errors when I launch Hitrava.py

ragno28 opened this issue · 5 comments

I got a series of errore when I try to execute the program, I'll link a couple of screenshot of the prompt and the folder where i have Hitrava installed.
Thank you in advance for helping me out.
Command_prompt
Folder

CTHRU commented

It could be that the JSON file the program is looking for, is not there. could you check this post in issue 9 and report back?

CTHRU commented

A while ago, a similar issue was opened in #14. I could reproduce the error by creating an invalid ZIP file (I just created a text file and renamed it this_is_no_zip.zip). I got the same error. I just released an update and I added a logging message when python checks the integrity of the ZIP file in the --zip argument.

Thank you for closing this issue if there was indeed a problem with your ZIP file.

So I tried to make a my_run_hitrava.cmd as you suggested in #9 but it ended with the same error.
After that I checked the json file in the HiZip.zip and it looked similar to the others that I've seen in #9 .
I was thinking of switching back to python 3.7 cause actually I downloaded the 3.8.5

Example of what I find in motion path detail data.json:
[{"totalSteps":2090,"recordId":"lE0LCAAAAAACCAAAoB4jT24BAAA=","totalStoreys":0,"appType":1,"vendor":"GOOGLE","partTimeMap":{"1.0":1703.0,"2.0":3237.0,"3.0":4897.0,"4.0":7135.0},"abnormalTrack":0,"realStoreys":0,"startTime":1573289732000,"attribute":"HW_EXT_TRACK_DETAIL@istp=lbs;k=0;lat=39.102848845440434;lon=39.256683445987887;alt=1.1822990870004883E8;t=1.573285733E9;\ntp=lbs;k=1;lat=47.102848845440434;lon=9.256681411482703;alt=1.1483110700009766E8;t=1.573285734E9;\ntp=lbs;k=

CTHRU commented

Python 3.8.5 should not be an issue (I test with 3.5.1, 3.7.6 and 3.8.5). The data in the JSON file is also OK, so we'll have to look somewhere else.

I assume you tried again with the latest 3.5.3 release of yesterday and got the same error? The beginning of the logging should look something like this (thanks for verifying versions):

[date and time] - INFO - main - Hitrava version 3.5.3 (build 2008.1801) started with arguments ['--zip', 'HiZip.zip', '--json_export']
[date and time] - INFO - main - Running on Python version 3.8.5

If the log isn't too long, please post it again here, maybe this can help out in finding the root cause. If you wouldn't mind (temporarily) sharing the ZIP file, I'll be glad to check what's going on.

Ok I solved the problem.
In fact It was a very stupid thing, I named the zip file "HiZip.zip" but Windows interpret It as "HiZip.zip.zip" so I just needed to name it simply "HiZip".
Thank You for helping me out, and You did a really cool tool.
I'm still astonished by Huawei for don't let extract the .gpx from the app.