Hi, everyone. When I use the function Dotstim, my compiler just told me that
/Users/dragon/opt/anaconda3/envs/py37/bin/python /Users/dragon/Desktop/CN/DOT/dotde.py
pygame 2.0.1 (SDL 2.0.14, Python 3.7.9)
Hello from the pygame community. https://www.pygame.org/contribute.html
2021-04-17 01:25:04.427 python[1032:17128] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7ffa7e4b9150>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-04-17 01:25:04.427 python[1032:17128] Warning: Expected min height of view: (<NSButton: 0x7ff9ef921ac0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-04-17 01:25:04.430 python[1032:17128] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7ff9ef925140>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2021-04-17 01:25:04.433 python[1032:17128] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7ff9ef92ed70>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2.9650 WARNING Monitor specification not found. Creating a temporary one…
Process finished with exit code 0
and Here is my test code which generated the warning:
from psychopy import visual, core, event
import numpy as np
#win.getMovieFrame(buffer=‘back’)
#create a window to draw in
myWin = visual.Window((600,600), allowGUI=False)
direction = [1, 2] # One left, Two Right
nTrialsPerCond = 10
nTrials = nTrialsPerCond * len(direction)
#INITIALISE SOME STIMULI
dotsLeft = visual.DotStim(win=myWin, fieldSize=300, fieldShape=‘circle’, coherence=0.5, dotSize=20, dir=0, speed=2)
dotsRight = visual.DotStim(win=myWin, fieldSize=300, fieldShape=‘circle’, coherence=0.5, dotSize=20, dir=180, speed=2)
trialClock = core.Clock()
t = 0
while t < 1.5:
t = trialClock.getTime()
dotsLeft.draw() #redraw it
myWin.flip()
#update the screen
#handle key presses each frame
for keys in event.getKeys():
if keys in [‘escape’,‘q’]:
core.quit()
#win.saveMovieFrames(fileName=‘some file.mp4’)
And I cannot use the dot component in the builder mode. I have no idea of what I should do to figure it out. I supposed that there might be some problems with my MacOS Big Sur (I use MBP 18), but when I borrowed my friend’s HP (Windows), I still could not use the dot component. Other functions and components seem to work well.