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

[Bug] Alpine docker: error in scripts/test_grass_session.py #5226

Open
neteler opened this issue Feb 27, 2025 · 0 comments
Open

[Bug] Alpine docker: error in scripts/test_grass_session.py #5226

neteler opened this issue Feb 27, 2025 · 0 comments
Labels
backport to 8.4 PR needs to be backported to release branch 8.4 bug Something isn't working
Milestone

Comments

@neteler
Copy link
Member

neteler commented Feb 27, 2025

Describe the bug

(Originally posted by @mmacata in #4809 (comment) and still valid)

The image builds with a success message, even though there are some errors in the logs:

[...]
#27 22.85 (108/110) Purging libzmq (4.3.5-r2)
#27 22.85 (109/110) Purging libsodium (1.0.20-r0)
#27 22.85 (110/110) Purging lmdb (0.9.33-r0)
#27 22.85 Executing busybox-1.37.0-r12.trigger
#27 22.86 OK: 833 MiB in 213 packages
#27 22.98 Traceback (most recent call last):
#27 22.98   File "/scripts/test_grass_session.py", line 9, in <module>
#27 22.98     gs.create_project(project, epsg="25832")
#27 22.98   File "/usr/local/grass/etc/python/grass/script/core.py", line 1817, in create_project
#27 22.98     ps = pipe_command(
#27 22.98          ^^^^^^^^^^^^^
#27 22.98   File "/usr/local/grass/etc/python/grass/script/core.py", line 516, in pipe_command
#27 22.98     return start_command(*args, **kwargs)
#27 22.98            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#27 22.98   File "/usr/local/grass/etc/python/grass/script/core.py", line 437, in start_command
#27 22.98     return Popen(args, **popts)
#27 22.98            ^^^^^^^^^^^^^^^^^^^^
#27 22.98   File "/usr/local/grass/etc/python/grass/script/core.py", line 84, in __init__
#27 22.98     subprocess.Popen.__init__(self, args, **kwargs)
#27 22.98   File "/usr/lib/python3.12/subprocess.py", line 1028, in __init__
#27 22.99     self._execute_child(args, executable, preexec_fn, close_fds,
#27 22.99   File "/usr/lib/python3.12/subprocess.py", line 1963, in _execute_child
#27 22.99     raise child_exception_type(errno_num, err_msg, err_filename)
#27 22.99 FileNotFoundError: [Errno 2] No such file or directory: 'g.proj'
#27 23.27 n=853535.430000 s=848899.700000 e=638982.550000 w=635619.850000 b=406.590000 t=586.380000
[...]

See: log

Local test without docker

Also this fails:

cd docker/testdata/
cp simple.laz /tmp/
python test_grass_session.py
Traceback (most recent call last):
  File "/home/mneteler/software/grass_main/docker/testdata/test_grass_session.py", line 5, in <module>
    import grass.script as gs
ModuleNotFoundError: No module named 'grass'
@neteler neteler added the bug Something isn't working label Feb 27, 2025
@neteler neteler added this to the 8.5.0 milestone Feb 27, 2025
@neteler neteler added the backport to 8.4 PR needs to be backported to release branch 8.4 label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport to 8.4 PR needs to be backported to release branch 8.4 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant