directx error

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
aJax
Newbie
Posts: 6
Joined: Mon Feb 19, 2018 9:20 am
Contact:

directx error

#1 Post by aJax »

I am trying to run renpy.exe on win 7. I got the following error:


I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00start.rpy", line 198, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 441, in script
$ __gl_test()
File "renpy/common/00gltest.rpy", line 441, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
error: directx not available

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "D:\project\renpy-6.99.14.1-sdk\renpy\bootstrap.py", line 306, in bootstrap
renpy.main.main()
File "D:\project\renpy-6.99.14.1-sdk\renpy\main.py", line 523, in main
run(restart)
File "D:\project\renpy-6.99.14.1-sdk\renpy\main.py", line 149, in run
renpy.execution.run_context(True)
File "D:\project\renpy-6.99.14.1-sdk\renpy\execution.py", line 835, in run_context
context.run()
File "renpy/common/00start.rpy", line 198, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 441, in script
$ __gl_test()
File "D:\project\renpy-6.99.14.1-sdk\renpy\ast.py", line 848, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\project\renpy-6.99.14.1-sdk\renpy\python.py", line 1812, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00gltest.rpy", line 441, in <module>
$ __gl_test()
File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
_gl_performance_test()
File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
ui.interact(suppress_underlay=True, suppress_overlay=True)
File "D:\project\renpy-6.99.14.1-sdk\renpy\ui.py", line 287, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 2592, in interact
self.start()
File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1760, in start
self.set_mode()
File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1990, in set_mode
if draw.set_mode(virtual_size, physical_size, fullscreen):
File "gldraw.pyx", line 197, in renpy.gl.gldraw.GLDraw.set_mode
File "src/pygame_sdl2/display.pyx", line 96, in pygame_sdl2.display.init
error: directx not available

Windows-7-6.1.7601-SP1
Ren'Py 6.99.14.1.3218
Ren'Py Launcher 6.99.14.1.3218
Mon Feb 19 14:26:51 2018


Directx is installed and works well. It might come from the pygame_sdl2 library. It does the same with all 6.99.x versions. Versions 6.18.3 and earlier work well. I tried on another computer and it works well.

Any idea?

Thanks

aJax
Newbie
Posts: 6
Joined: Mon Feb 19, 2018 9:20 am
Contact:

Re: directx error

#2 Post by aJax »

Anyone? Need more information?

Thanks

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: directx error

#3 Post by PyTom »

6.99 is much newer, and runs on SDL2. It's hard to tell why it's not working on that computer - log.txt might have more details.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

aJax
Newbie
Posts: 6
Joined: Mon Feb 19, 2018 9:20 am
Contact:

Re: directx error

#4 Post by aJax »

In case it helps, here is the log file

Code: Select all

Tue Mar 20 14:01:18 2018
Windows-7-6.1.7601-SP1
Ren'Py 6.99.14.1.3218
 

Bootstrap to the start of init.init took 0.07s
Early init took 0.01s
Loader init took 0.04s
Loading error handling took 0.12s
Loading script took 2.36s
Loading save slot metadata. took 0.06s
Loading persistent took 0.00s
Importing _renpysteam: ImportError('No module named _renpysteam',)
Set script version to: None (alternate path)
Running init code took 0.63s
Loading analysis data took 0.04s
Analyze and compile ATL took 0.00s
Index archives took 0.00s
Dump and make backups. took 0.00s
Cleaning cache took 0.00s
Making clean stores took 0.00s
Initial gc. took 0.02s
DPI scale factor: 1.000000
Creating interface object took 0.00s
Cleaning stores took 0.00s
Init translation took 0.01s
Build styles took 0.00s
Load screen analysis took 0.03s
Analyze screens took 0.00s
Save screen analysis took 0.00s
Prepare screens took 0.06s
Save pyanalysis. took 0.00s
Save bytecode. took 0.00s
Running _start took 0.00s
Performance test:
Interface start took 0.03s
Couldn't import sw renderer:
Traceback (most recent call last):
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1887, in make_draw
    draw_objects[name] = draw_class(*args)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\swdraw.py", line 680, in __init__
    self.reset()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\swdraw.py", line 705, in reset
    pygame.display.init()
  File "src/pygame_sdl2/display.pyx", line 96, in pygame_sdl2.display.init
error: directx not available
Unknown renderer: sw

Full traceback:
  File "renpy/common/00start.rpy", line 198, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 441, in script
    $ __gl_test()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\ast.py", line 848, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\python.py", line 1812, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00gltest.rpy", line 441, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 2592, in interact
    self.start()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1760, in start
    self.set_mode()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1990, in set_mode
    if draw.set_mode(virtual_size, physical_size, fullscreen):
  File "gldraw.pyx", line 197, in renpy.gl.gldraw.GLDraw.set_mode
  File "src/pygame_sdl2/display.pyx", line 96, in pygame_sdl2.display.init
error: directx not available

While running game code:
  File "renpy/common/00start.rpy", line 198, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 441, in script
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 441, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
error: directx not available

Full traceback:
  File "D:\project\renpy-6.99.14.1-sdk\renpy\bootstrap.py", line 306, in bootstrap
    renpy.main.main()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\main.py", line 523, in main
    run(restart)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\main.py", line 149, in run
    renpy.execution.run_context(True)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\execution.py", line 835, in run_context
    context.run()
  File "renpy/common/00start.rpy", line 198, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 441, in script
    $ __gl_test()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\ast.py", line 848, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\python.py", line 1812, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00gltest.rpy", line 441, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\ui.py", line 287, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 2592, in interact
    self.start()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1760, in start
    self.set_mode()
  File "D:\project\renpy-6.99.14.1-sdk\renpy\display\core.py", line 1990, in set_mode
    if draw.set_mode(virtual_size, physical_size, fullscreen):
  File "gldraw.pyx", line 197, in renpy.gl.gldraw.GLDraw.set_mode
  File "src/pygame_sdl2/display.pyx", line 96, in pygame_sdl2.display.init
error: directx not available

While running game code:
  File "renpy/common/00start.rpy", line 198, in script call
    call _gl_test
  File "renpy/common/00gltest.rpy", line 441, in script
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 441, in <module>
    $ __gl_test()
  File "renpy/common/00gltest.rpy", line 359, in _m1_00gltest__gl_test
    _gl_performance_test()
  File "renpy/common/00gltest.rpy", line 384, in _gl_performance_test
    ui.interact(suppress_underlay=True, suppress_overlay=True)
error: directx not available

User avatar
PyTom
Ren'Py Creator
Posts: 16088
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: directx error

#5 Post by PyTom »

No clue from this, other than maybe try downloading and unpacking Ren'Py again?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

aJax
Newbie
Posts: 6
Joined: Mon Feb 19, 2018 9:20 am
Contact:

Re: directx error

#6 Post by aJax »

PyTom wrote: Fri Mar 23, 2018 1:21 am No clue from this, other than maybe try downloading and unpacking Ren'Py again?
Did it already. I guess I'll just use another computer. Thanks for your replies.

aJax
Newbie
Posts: 6
Joined: Mon Feb 19, 2018 9:20 am
Contact:

Re: directx error

#7 Post by aJax »

Just get a new computer and had the bug again. It is due to pygame rather than renpy itself.

The fix is here: https://stackoverflow.com/questions/299 ... -windows-7

It worked well on my windows 10 install.

Post Reply

Who is online

Users browsing this forum: Kocker