DeprecationWarning when creating a visual.Rect object

I’m having this error when I’m creating a visual.Rect object:

Traceback (most recent call last):
  File "fb_02_threads_labels.py", line 526, in <module>
    FlkWin.start()
  File "fb_02_threads_labels.py", line 111, in start
    self.Sq0 = visual.Rect(self.win, fillColor = '#FF6C00', lineColor = '#FF6C00', width = self.sS, height = self.sS, pos = p[0])
  File "C:\Users\atech\anaconda3\envs\psychopy\lib\site-packages\psychopy\contrib\lazy_import.py", line 120, in __call__
    return obj(*args, **kwargs)
  File "C:\Users\atech\anaconda3\envs\psychopy\lib\site-packages\psychopy\visual\rect.py", line 108, in __init__
    autoDraw=autoDraw)
  File "C:\Users\atech\anaconda3\envs\psychopy\lib\site-packages\psychopy\visual\shape.py", line 158, in __init__
    if vertices != ():  # flag for when super-init'ing a ShapeStim
DeprecationWarning: elementwise comparison failed; this will raise an error in the future.

Any ideas of why is this happening?

This is an odd error - that line should be perfectly valid Python regardless of the value of vertices. I notice you’re using an anaconda environment, so it could be something specific to conda… What version of Python are you using?

Hey there,

I have a very similar problem. I have tried everything, but every time I want to use a TextBox2, I get this error message.
Can u help me?

Thanks in advance
Lars

image
image