Troubleshooting - laureate-institute-for-brain-research/StimTool3 GitHub Wiki

Troubleshooting

This page contains various troubleshooting information when running StimTool3

serial.serialutil.SerialException: could not open port...

This is typically due to misconfigured serial communication settings while using a task that is set up to mark events over a serial port.
You will need to open the corresponding .params (ex. study-SMITH-2024-NEURO_session-behavioral.params) file to confirm/correct the serial settings.

  • signal_serial True
  • serial_port_address COM3
  • baud_rate 115200

ModuleNotFoundError: No module named 'labjack'

This error occurs when your computer does not have the ljm library installed. This is used for the NPU task when controlling the shock device using the Labjack T4 module.

Solution:

You must install the labjack-ljm pip package through psychopy's python version. Run this line in the command prompt:

C:\Users\user> "C:\Program Files\PsychoPy\python.exe" -m pip install labjack-ljm

ImportError: DLL load failed while importing cv2: The specified module could not be found.

Don't know the exact reason why this occurs, probably due to incorrect version of opencv module with the psycho pacakge.

Workaround is to just comment out line 36 in StimTool.py

# import CameraDriver.CameraDriver as CD          // comment out line 36 like this