Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] No available video device

edited October 2013 in OpenSesame

Hey all,

I tried to run my experiment on a university computer, but I get the error 'No available video device'.
Anyone has a clue what it means, and how it can be solved?

Cheers!

Comments

  • edited October 2013

    Could it be that the display resolution of the monitor you're trying to use is lower than the resolution you have set in OpenSesame?

    If not, type the following in the Debug Window and report your resolution, as well as the outcome of the final line:

    import pygame
    pygame.init()
    pygame.display.list_modes()
    
  • edited October 2013

    Nope, I already checked the resolution.

    When I run your code in an inline script, the debug window shows:

    *Warning: OpenGL does not support window mode. OpenGL will be deactivated!
    Traceback (most recent call last):
    
      File "dist\libqtopensesame\qtopensesame.py", line 1393, in run_experiment
    
      File "dist\libopensesame\experiment.py", line 278, in run
    
      File "dist\libopensesame\experiment.py", line 611, in init_display
    
      File "dist\openexp\canvas.py", line 47, in init_display
    
      File "dist\openexp\_canvas\xpyriment.py", line 365, in init_display
    
      File "C:\Program Files\OpenSesame\expyriment\control\_experiment_control.py", line 309, in initialize
    
      File "C:\Program Files\OpenSesame\expyriment\io\_screen.py", line 74, in __init__
    error: No available video device
    
  • edited 8:20PM

    When you try to run it via an inline_script, OpenSesame will first try to initialize a display. Hence the persistence of the error. That's why I asked if you could run it in the Debug Window ;)

  • edited 8:20PM

    Ah, how do you run stuff in the debug window? I just wrote it down there, but it didn't do anything when I entered, and I couldn't find a 'run' button anywhere...

  • edited 8:20PM

    Go to the Debug Window, then type it in line by line, pressing Enter at the end of each line. If you copy it directly and enter it all in one go, weird stuff happens. It should look like this:

    Python 2.7.3
    Type "help()", "copyright()", "credits()" or "license()" for more information.
    Type "modules()" for details about installed modules and version information.
    Use the "print [msg]" statement in inline_script items to print to this debug window.
    >>> import pygame
    >>> pygame.init()
    (6, 0)
    >>> pygame.display.list_modes()
    [(2560, 1024), (1280, 1024), (1152, 864), (1024, 768), (800, 600), (720, 400), (640, 480)]
    >>> 
    

    Although I suspect that the final line (showing the available modes) might be an empty list in your case.

  • edited October 2013

    Ok, so this is what I got:

    Python 2.7.5
    Type "help()", "copyright()", "credits()" or "license()" for more information.
    Type "modules()" for details about installed modules and version information.
    Use the "print [msg]" statement in inline_script items to print to this debug window.
    >>> import pygame
    
    >>> pygame.init()
    (5, 1)
    
    >>> pygame.display.list_modes()
    Traceback (most recent call last):
      File "<console>", line 1, in <module>
    error: video system not initialized
    >>> 
    
  • edited 8:20PM

    It seems PyGame's display module is not properly initialized. What version of OpenSesame are you using?

    A quick fix would probably be to switch to the psycho backend, which uses PsychoPy. This should avoid the PyGame issue. Otherwise, if you're running from source, re-installing PyGame would probably be the best way to go.

  • edited 8:20PM

    I'm using the latest opensesame version. I'll try reinstall Psychopy

  • edited 8:20PM

    Ok, so I tried running it with PsychoPy, and got the following error:

    glActiveTexture is not exported by the available OpenGL driver. VERSION_1_3 is required for this functionality.

  • edited 8:20PM

    Hi Wouter,

    There's probably a problem with the video drivers on these computers. I'm not sure whether you can do anything about it, except for updating the drivers (which you probably can't do yourself on the university computers) or ask help from the system administrators.

    Cheers,
    Sebastiaan

  • edited 8:20PM

    I had just had them replace my entire computer. Problem Solved. Thanks!

Sign In or Register to comment.