pwyf / data-quality-tester

Test IATI activity files against PWYF index methodology
http://dataqualitytester.publishwhatyoufund.org
MIT License
2 stars 2 forks source link

Unable to test IATI file: TypeError: 'bool' object is not subscriptable in tasks.py #37

Closed siwhitehouse closed 5 years ago

siwhitehouse commented 5 years ago

I would like to review #36

I have tried to test the proposed fix locally, but I am having difficulties with running the DQT.

I followed the instructions at https://github.com/pwyf/data-quality-tester, which required some updates to be run afterwards.

Once the DQT loaded locally, attempting to test a file resulted in the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/home/simon/code/data-quality-tester/2018-index-indicator-definitions/test_definitions/performance/../step_definitions.py'

I cloned the 2018-index-indicator-definitions repo into the data-quality-tester folder and now when I try and load an IATI activity file I am getting the following error message instead:

>   File "/home/simon/code/data-quality-tester/DataQualityTester/tasks.py", line 119, in test_file_task
    result[lookup.get(out[0])] += 1
TypeError: 'bool' object is not subscriptable

The front-end hangs with this error.

siwhitehouse commented 5 years ago

http://d-portal.org/q.xml?aid=46004-39295-013-LN3142 is an example of a file that produces this issue. I have tried using both the download and the link function of the DQT.

siwhitehouse commented 5 years ago

The merge referenced above has fixed the celery error.