Importerror: cannot import name genFilenameDelimiter

I am using python anaconda spyder 2.7 and Psychopy v1.83.04 on windows 64 bits. I had to export some data in to excel, that’s why I have installed some modules like xlsxwriter and openpyxl. Now, I am getting this importerror. I am sending you the code and the traceback. Thank you in advace.

from __future__ import division, print_function
from win32api import GetSystemMetrics
import numpy as np
import os
from psychopy import core, data, event, gui, visual 
import qmix
import cv2
import threading
import time
import datetime
from timeit import default_timer as timer
import xlwt
import xlsxwriter
Traceback (most recent call last):

  File "<ipython-input-82-26dc23964247>", line 19, in <module>
    from psychopy import core, data, event, gui, visual

  File "C:\Users\ravikumar.mevada\Anaconda2\lib\site-packages\psychopy\data\__init__.py", line 8, in <module>
    from .base import DataHandler

  File "C:\Users\ravikumar.mevada\Anaconda2\lib\site-packages\psychopy\data\base.py", line 25, in <module>
    from psychopy.tools.filetools import (openOutputFile, genDelimiter,

ImportError: cannot import name genFilenameFromDelimiter

Thanks @Ravi_Mevada, is this the full traceback? If not, please paste and surround code with backticks see here

1 Like

@dvbridges Thank you for your advise.

problem just solved by uninstalling and reinstalling psychopy module from python.

1 Like