Errors building distributions from Centos 7 server

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
kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Errors building distributions from Centos 7 server

#1 Post by kivik »

Renpy Version: 7.3.2
OS: CentOS Linux release 7.6.1810 (Core)

Due to upload bandwidth limitations, I use Gitlab to manage my code and build my game distributions remotely. I was working fine for me last year, but as I try to set it from scratch today (had to rebuild the server), using the latest renpy version, I'm getting these error messages:

Command:

Code: Select all

/usr/local/bin/renpy/renpy.sh /usr/local/bin/renpy/launcher distribute .
Response:
Scanning project files...
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4555:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5034:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default

Full traceback:
File "/usr/local/bin/renpy/renpy/bootstrap.py", line 314, in bootstrap
renpy.main.main()
File "/usr/local/bin/renpy/renpy/main.py", line 516, in main
renpy.display.core.Interface()
File "/usr/local/bin/renpy/renpy/display/core.py", line 1659, in __init__
renpy.audio.audio.init()
File "/usr/local/bin/renpy/renpy/audio/audio.py", line 823, in init
renpysound.init(renpy.config.sound_sample_rate, 2, bufsize, False, renpy.config.equal_mono)
File "renpysound.pyx", line 383, in renpy.audio.renpysound.init
File "renpysound.pyx", line 98, in renpy.audio.renpysound.check_error
Exception: ALSA: Couldn't open audio device: No such file or directory

After initialization, but before game start.
Exception: ALSA: Couldn't open audio device: No such file or directory

Full traceback:
File "/usr/local/bin/renpy/renpy/bootstrap.py", line 314, in bootstrap
renpy.main.main()
File "/usr/local/bin/renpy/renpy/main.py", line 529, in main
run(restart)
File "/usr/local/bin/renpy/renpy/main.py", line 102, in run
if not renpy.arguments.post_init():
File "/usr/local/bin/renpy/renpy/arguments.py", line 287, in post_init
return commands[command]()
File "game/distribute.rpy", line 1490, in distribute_command
Distributor(p, destination=args.destination, reporter=TextReporter(), packages=packages, build_update=args.build_update, noarchive=args.no_archive, packagedest=args.packagedest)
File "game/distribute.rpy", line 446, in __init__
project.update_dump(force=True, gui=False, compile=project.data['force_recompile'])
File "game/project.rpy", line 300, in update_dump
self.launch(["compile", "--keep-orphan-rpyc" ], wait=True)
File "game/project.rpy", line 281, in launch
interface.error(_("Launching the project failed."), _("Please ensure that your project launches normally before running this command."))
File "game/interface.rpy", line 360, in error
common(_("ERROR"), store.ERROR_COLOR, message=message, submessage=submessage, back=action, **kwargs)
File "game/interface.rpy", line 326, in common
return screen_func("common", title=title, title_color=title_color, message=message, submessage=submessage, back=back, continue_=continue_, **kwargs)
File "/usr/local/bin/renpy/renpy/exports.py", line 2896, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "/usr/local/bin/renpy/renpy/ui.py", line 295, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "/usr/local/bin/renpy/renpy/display/core.py", line 2662, in interact
self.start()
File "/usr/local/bin/renpy/renpy/display/core.py", line 1805, in start
self.set_mode()
File "/usr/local/bin/renpy/renpy/display/core.py", line 2052, in set_mode
raise Exception("Could not set video mode.")
Exception: Could not set video mode.

After initialization, but before game start.
File "game/distribute.rpy", line 1490, in distribute_command
Distributor(p, destination=args.destination, reporter=TextReporter(), packages=packages, build_update=args.build_update, noarchive=args.no_archive, packagedest=args.packagedest)
File "game/distribute.rpy", line 446, in __init__
project.update_dump(force=True, gui=False, compile=project.data['force_recompile'])
File "game/project.rpy", line 300, in update_dump
self.launch(["compile", "--keep-orphan-rpyc" ], wait=True)
File "game/project.rpy", line 281, in launch
interface.error(_("Launching the project failed."), _("Please ensure that your project launches normally before running this command."))
File "game/interface.rpy", line 360, in error
common(_("ERROR"), store.ERROR_COLOR, message=message, submessage=submessage, back=action, **kwargs)
File "game/interface.rpy", line 326, in common
return screen_func("common", title=title, title_color=title_color, message=message, submessage=submessage, back=back, continue_=continue_, **kwargs)
Exception: Could not set video mode.
From my googling I'm guessing that it's because I'm doing this on a server box with no display and sound devices, but I'm stuck as to how to resolve this. Does Renpy now mandate that my computer has to have audio and video devices in order to build distributions?

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: Errors building distributions from Centos 7 server

#2 Post by kivik »

Update:

I've managed to solve the Sound issue by installing a dummy sound card using this article: https://www.alsa-project.org/main/index ... dule-dummy

That removed the ALSA errors, so I feel like my suspicion was right, but I'm unable to resolve the video problem still:
Full traceback:
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "/usr/local/bin/renpy/renpy/ast.py", line 912, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/usr/local/bin/renpy/renpy/python.py", line 2004, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00gltest.rpy", line 442, 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 "/usr/local/bin/renpy/renpy/ui.py", line 295, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "/usr/local/bin/renpy/renpy/display/core.py", line 2662, in interact
self.start()
File "/usr/local/bin/renpy/renpy/display/core.py", line 1805, in start
self.set_mode()
File "/usr/local/bin/renpy/renpy/display/core.py", line 2052, in set_mode
raise Exception("Could not set video mode.")
Exception: Could not set video mode.

While running game code:
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "renpy/common/00gltest.rpy", line 442, 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)
Exception: Could not set video mode.

Full traceback:
File "/usr/local/bin/renpy/renpy/bootstrap.py", line 314, in bootstrap
renpy.main.main()
File "/usr/local/bin/renpy/renpy/main.py", line 529, in main
run(restart)
File "/usr/local/bin/renpy/renpy/main.py", line 139, in run
renpy.execution.run_context(True)
File "/usr/local/bin/renpy/renpy/execution.py", line 892, in run_context
context.run()
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "/usr/local/bin/renpy/renpy/ast.py", line 912, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "/usr/local/bin/renpy/renpy/python.py", line 2004, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00gltest.rpy", line 442, 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 "/usr/local/bin/renpy/renpy/ui.py", line 295, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "/usr/local/bin/renpy/renpy/display/core.py", line 2662, in interact
self.start()
File "/usr/local/bin/renpy/renpy/display/core.py", line 1805, in start
self.set_mode()
File "/usr/local/bin/renpy/renpy/display/core.py", line 2052, in set_mode
raise Exception("Could not set video mode.")
Exception: Could not set video mode.

While running game code:
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "renpy/common/00start.rpy", line 199, in script call
call _gl_test
File "renpy/common/00gltest.rpy", line 442, in script
$ __gl_test()
File "renpy/common/00gltest.rpy", line 442, 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)
Exception: Could not set video mode.
I'd installed xorg-video-dummy and configured it to no avail.

Post Reply

Who is online

Users browsing this forum: No registered users