Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Can't loop through external files

Hi,
I'm running into problems when I try to use external files (.csv or .xlsx) as a source for a loop in OpenSesame. As long as I enter the same information manually into a table everything works fine, but whenever I refer to an external file as a source for the loop OpenSesame crashes and gives me the exception message " new-line character seen in unquoted field - do you need to open the file in universal-newline mode?".
The table does not contain any of the character sequences normally used as new-line characters ('\n', '\r' or '\r\n').
I have to admit that I didn't fully understand the requirements for .csv-files (plain-text, comma-separated, double-quoted, UTF-8 encoded). As far as I can tell the file is plain-text, comma-separated and UTF-8 encoded but what does double-quoted mean? I used double quotes as text delimiter. Is that what is meant? Unfortunately, I have no experience with inline scripting in python (and very little experience with scripting in general).

Can anyone help me out? Reading in external tables would save me many, many hours of work.

Comments

Sign In or Register to comment.