limepy icon indicating copy to clipboard operation
limepy copied to clipboard

KeyError while loading question

Open digitalyours opened this issue 6 years ago • 5 comments

I'm a little bit lost and maybe I'm missing something, while initializing some questions I receive a "KeyError". I'm still new to Python, maybe it is something obvious I have overlooked.

digitalyours avatar Nov 16 '20 13:11 digitalyours

Hi, just checking: did you manage to create a Survey object? And using this object, did you manage to access the question list? And did you try to create the Question object using the question id from the index of the question list?

DIRKMJK avatar Nov 16 '20 16:11 DIRKMJK

Yes, to all the questions above. I'm using the ID and it fails for certain questions only. If you want I could (privately) share my dataset & questionnaire.

digitalyours avatar Nov 16 '20 20:11 digitalyours

Yes, that might be helpful. Do you have an email address where I could contact you?

DIRKMJK avatar Nov 17 '20 17:11 DIRKMJK

yep, I'm reachable at christoph {at} rechsteiner [.] de

digitalyours avatar Nov 17 '20 18:11 digitalyours

For reference: the solution was to use the following settings when exporting the data: set Headings / Export questions to Question code and Responses / Export responses as to Answer codes

DIRKMJK avatar Nov 18 '20 15:11 DIRKMJK