Sign in with your CogSci, Facebook, Google, or Twitter account.

Or register to create a new account.

We'll use your information only for signing in to this forum.

Supported by

Error in data processing

I’ve encountered an error in data processing Expyriment Python 3. However its fine in Python 2. Here is some code:
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.

===================== RESTART: D:\Py\data_processing.py =====================
Expyriment 0.9.0 (Python 3.6.4)

Traceback (most recent call last):
File "D:\Py\data_processing.py", line 12, in
File "C:\Python36\lib\site-packages\expyriment\misc\data_preprocessing.py", line 200, in write_concatenated_data
return Aggregator(data_folder=data_folder, file_name=file_name)\
File "C:\Python36\lib\site-packages\expyriment\misc\data_preprocessing.py", line 301, in init
if not _version[0] == 1 and _version[1] < 6:
TypeError: '<' not supported between instances of 'str' and 'int'

If I try something like this, I got the same error :

100 < '110'

Traceback (most recent call last):
File "<pyshell#0>", line 1, in
100 < '110'
TypeError: '<' not supported between instances of 'int' and 'str'

And here my code to call the concatenated data in CSV (that works fine in Python 2) :
import os
from expyriment.misc import data_preprocessing
folder= os.getcwd() + os.sep + 'data'

What should I do?some experts suggest that Python 3 more “bolt” and simple, but I don't think I'm comparing the int and str in my data processing that should be no error emerged.


Sign In or Register to comment.