Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D render in grass.jupyter fails due to missing dependencies #53

Open
wenzeslaus opened this issue Dec 13, 2021 · 0 comments
Open

3D render in grass.jupyter fails due to missing dependencies #53

wenzeslaus opened this issue Dec 13, 2021 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@wenzeslaus
Copy link
Member

xvfb (apt-like dependency) and PyVirtualDisplay (pip-like dependency) are missing for running on nodes (that is without -X).

Running ./python/grass/jupyter/testsuite/test_render3d.py...
========================================================================
ERROR: Bad server connection
EERROR: Bad server connection
EERROR: Bad server connection
EERROR: Bad server connection
EERROR: Bad server connection
Es.
======================================================================
ERROR: test_defaults (__main__.TestDisplay)
Check that default settings work
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/grass/jupyter/testsuite/test_render3d.py", line 86, in test_defaults
    renderer.render(elevation_map="elevation", color_map="elevation")
  File "etc/python/grass/jupyter/render3d.py", line 213, in render
    gs.run_command(module, env=env, **kwargs)
  File "etc/python/grass/script/core.py", line 541, in run_command
    return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
  File "etc/python/grass/script/core.py", line 429, in handle_errors
    raise CalledModuleError(module=module, code=code, returncode=returncode)
grass.exceptions.CalledModuleError: Module run `m.nviz.image elevation_map=elevation color_map=elevation output=/share/rkmeente/vpetras/tmp/grass8-vpetras-18913/tmpvz_0qwt5/nviz format=tif size=600,400 mode=fine resolution_fine=1` ended with an error.
The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.

======================================================================
ERROR: test_filename (__main__.TestDisplay)
Check that custom filename works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/grass/jupyter/testsuite/test_render3d.py", line 95, in test_filename
    renderer.render(elevation_map="elevation", color_map="elevation")
  File "etc/python/grass/jupyter/render3d.py", line 213, in render
    gs.run_command(module, env=env, **kwargs)
  File "etc/python/grass/script/core.py", line 541, in run_command
    return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
  File "etc/python/grass/script/core.py", line 429, in handle_errors
    raise CalledModuleError(module=module, code=code, returncode=returncode)
grass.exceptions.CalledModuleError: Module run `m.nviz.image elevation_map=elevation color_map=elevation output=/share/rkmeente/vpetras/tmp/grass8-vpetras-18913/tmp1nneps7w/nviz format=tif size=600,400 mode=fine resolution_fine=1` ended with an error.
The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.

======================================================================
ERROR: test_hw (__main__.TestDisplay)
Check that custom width and height works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/grass/jupyter/testsuite/test_render3d.py", line 101, in test_hw
    renderer.render(elevation_map="elevation", color_map="elevation")
  File "etc/python/grass/jupyter/render3d.py", line 213, in render
    gs.run_command(module, env=env, **kwargs)
  File "etc/python/grass/script/core.py", line 541, in run_command
    return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
  File "etc/python/grass/script/core.py", line 429, in handle_errors
    raise CalledModuleError(module=module, code=code, returncode=returncode)
grass.exceptions.CalledModuleError: Module run `m.nviz.image elevation_map=elevation color_map=elevation output=/share/rkmeente/vpetras/tmp/grass8-vpetras-18913/tmpaexifnvi/nviz format=tif size=200,400 mode=fine resolution_fine=1` ended with an error.
The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.

======================================================================
ERROR: test_image_creation (__main__.TestDisplay)
Check that show() works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/grass/jupyter/testsuite/test_render3d.py", line 129, in test_image_creation
    renderer.render(elevation_map="elevation", color_map="elevation")
  File "etc/python/grass/jupyter/render3d.py", line 213, in render
    gs.run_command(module, env=env, **kwargs)
  File "etc/python/grass/script/core.py", line 541, in run_command
    return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
  File "etc/python/grass/script/core.py", line 429, in handle_errors
    raise CalledModuleError(module=module, code=code, returncode=returncode)
grass.exceptions.CalledModuleError: Module run `m.nviz.image elevation_map=elevation color_map=elevation output=/share/rkmeente/vpetras/tmp/grass8-vpetras-18913/tmpxbsais52/nviz format=tif size=600,400 mode=fine resolution_fine=1` ended with an error.
The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.

======================================================================
ERROR: test_overlay (__main__.TestDisplay)
Check that overlay works
----------------------------------------------------------------------
Traceback (most recent call last):
  File "python/grass/jupyter/testsuite/test_render3d.py", line 107, in test_overlay
    renderer.render(elevation_map="elevation", color_map="elevation")
  File "etc/python/grass/jupyter/render3d.py", line 213, in render
    gs.run_command(module, env=env, **kwargs)
  File "etc/python/grass/script/core.py", line 541, in run_command
    return handle_errors(returncode, result=None, args=args, kwargs=kwargs)
  File "etc/python/grass/script/core.py", line 429, in handle_errors
    raise CalledModuleError(module=module, code=code, returncode=returncode)
grass.exceptions.CalledModuleError: Module run `m.nviz.image elevation_map=elevation color_map=elevation output=/share/rkmeente/vpetras/tmp/grass8-vpetras-18913/tmplsdvl486/nviz format=tif size=600,400 mode=fine resolution_fine=1` ended with an error.
The subprocess ended with a non-zero return code: 1. See errors above the traceback or in the error output.

----------------------------------------------------------------------
Ran 7 tests in 3.015s
FAILED (errors=5, skipped=1)
========================================================================
FAILED ./python/grass/jupyter/testsuite/test_render3d.py (5 tests failed)
@wenzeslaus wenzeslaus added bug Something isn't working enhancement New feature or request labels Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant