I don’t understand something. If I use builder to make a simple textbox, it runs but no screen appears. On inspection, there is no “import pyschopy” that happens before “from psychopy import locale_setup”.
I am on python3.9.The way pkgs are imported has changed. Perhaps it is no longer required. However, the Experiment Runner still says:
from psychopy import locale_setup
ModuleNotFoundError: No module named ‘psychopy’
Here is the beginnings of the myexperiment.py file that is run.
from future import absolute_import, division
from psychopy import locale_setup
from psychopy import prefs
from psychopy import sound, gui, visual, core, data, event, logging, clock
from psychopy.constants import (NOT_STARTED, STARTED, PLAYING, PAUSED,
STOPPED, FINISHED, PRESSED, RELEASED, FOREVER)
import numpy as np # whole numpy lib is available, prepend ‘np.’
from numpy import (sin, cos, tan, log, log10, pi, average,
sqrt, std, deg2rad, rad2deg, linspace, asarray)
from numpy.random import random, randint, normal, shuffle
import os # handy system and path functions
import sys # to get file system encoding
from psychopy.hardware import keyboard
:
My question is: Why is the builder generated myexperiment.py file not including the import psychopy?
OS (e.g. Win10): mac sierra
custom build
python3.9