Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mission diff crashes on comparing opened & saved TTI 1.80a #116

Open
MansM opened this issue Feb 19, 2021 · 1 comment
Open

mission diff crashes on comparing opened & saved TTI 1.80a #116

MansM opened this issue Feb 19, 2021 · 1 comment

Comments

@MansM
Copy link

MansM commented Feb 19, 2021

TTI from: https://www.digitalcombatsimulator.com/en/files/3063233/

Application code:

import dcs

mission = dcs.Mission()
#renamed file to cauc.miz as load doesnt like spaces
mission.load_file(filename="cauc.miz")
mission.save("out.miz")

running compare

$ python venv/src/dcs/tools/missiondiff.py cauc.miz out.miz
WARNING : Trying to run pydcs on non Windows machine
Couldn't detect any installed DCS World version
Traceback (most recent call last):
  File "compare.py", line 31, in <module>
    main()
  File "compare.py", line 28, in main
    print(diff(missionA, missionB))
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 276, in diff_dict
    nested_diff = diff(a[key], b[key], context, depth+1)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 72, in diff
    return diff_dict(a, b, context, depth, fromfile=fromfile, tofile=tofile)
  File "/Users/username/Documents/projecten/dcs-pipeline/venv/lib/python3.8/site-packages/datadiff/__init__.py", line 301, in diff_dict
    ddiff.diffs.sort(key=diffitem_dictitem_sort_key)
TypeError: '<' not supported between instances of 'str' and 'int'
(venv)
$ python -V
Python 3.8.7
@rp-
Copy link
Collaborator

rp- commented Feb 23, 2021

I didn't use or update the mission-diff for some time, it was used in the early development to check for missing parts/diffs.
Not sure if I get enough time to update it, but PR's are always welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants