Shell commands in docker image are failing: Syntax error #89
|
When using the source form this repo, the command in the docker build is failling. command: Details(myenv) root@50d8cf8d044b:/app/src# ./generate_configuration.py ./generate_configuration.py: line 1: import: command not found ./generate_configuration.py: line 2: import: command not found ./generate_configuration.py: line 3: import: command not found ./generate_configuration.py: line 4: import: command not found ./generate_configuration.py: line 7: pi: command not found ./generate_configuration.py: line 8: d2r: command not found ./generate_configuration.py: line 9: r2d: command not found ./generate_configuration.py: line 11: shape_config: command not found ./generate_configuration.py: line 13: ENGINE:: command not found ./generate_configuration.py: line 21: save_dir:: command not found ./generate_configuration.py: line 22: config_name:: command not found ./generate_configuration.py: line 24: show_caps:: command not found ./generate_configuration.py: line 25: show_pcbs:: command not found ./generate_configuration.py: line 27: nrows:: command not found ./generate_configuration.py: line 28: ncols:: command not found ./generate_configuration.py: line 30: alpha:: command not found ./generate_configuration.py: line 31: beta:: command not found ./generate_configuration.py: line 32: centercol:: command not found ./generate_configuration.py: line 33: centerrow_offset:: command not found ./generate_configuration.py: line 34: tenting_angle:: command not found ./generate_configuration.py: line 37: symmetry:: command not found ./generate_configuration.py: line 39: column_style_gt5:: command not found ./generate_configuration.py: line 40: column_style:: command not found ./generate_configuration.py: line 41: reduced_inner_cols:: command not found ./generate_configuration.py: line 42: reduced_outer_cols:: command not found ./generate_configuration.py: line 45: thumb_offsets:: command not found ./generate_configuration.py: line 46: syntax error near unexpected token `newline' ./generate_configuration.py: line 46: ` 'keyboard_z_offset': ('Details(myenv) root@50d8cf8d044b:/app/src# ./generate_configuration.py ./generate_configuration.py: line 1: import: command not found ./generate_configuration.py: line 2: import: command not found ./generate_configuration.py: line 3: import: command not found ./generate_configuration.py: line 4: import: command not found ./generate_configuration.py: line 7: pi: command not found ./generate_configuration.py: line 8: d2r: command not found ./generate_configuration.py: line 9: r2d: command not found ./generate_configuration.py: line 11: shape_config: command not found ./generate_configuration.py: line 13: ENGINE:: command not found ./generate_configuration.py: line 21: save_dir:: command not found ./generate_configuration.py: line 22: config_name:: command not found ./generate_configuration.py: line 24: show_caps:: command not found ./generate_configuration.py: line 25: show_pcbs:: command not found ./generate_configuration.py: line 27: nrows:: command not found ./generate_configuration.py: line 28: ncols:: command not found ./generate_configuration.py: line 30: alpha:: command not found ./generate_configuration.py: line 31: beta:: command not found ./generate_configuration.py: line 32: centercol:: command not found ./generate_configuration.py: line 33: centerrow_offset:: command not found ./generate_configuration.py: line 34: tenting_angle:: command not found ./generate_configuration.py: line 37: symmetry:: command not found ./generate_configuration.py: line 39: column_style_gt5:: command not found ./generate_configuration.py: line 40: column_style:: command not found ./generate_configuration.py: line 41: reduced_inner_cols:: command not found ./generate_configuration.py: line 42: reduced_outer_cols:: command not found ./generate_configuration.py: line 45: thumb_offsets:: command not found ./generate_configuration.py: line 46: syntax error near unexpected token `newline' ./generate_configuration.py: line 46: ` 'keyboard_z_offset': ('Environment: |
Answered by
ivanmgribeiro
May 31, 2022
Replies: 1 comment 1 reply
|
What steps did you take to get to the point where this error is happening? I get similar errors when I launch the DM-shell container and try to run You will probably also need to fix the issue mentioned in (#84), by changing the file as done here (ivanmgribeiro@b71669b). |
1 reply
Answer selected by
bosd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps did you take to get to the point where this error is happening? I get similar errors when I launch the DM-shell container and try to run
./generate_configuration.pyin the shell that comes up. This is because docker is trying to execute the python file as a shell script.I think you need to run
python3 ./generate_configuration.pyandpython3 dactyl_manuform.pyinstead, and that should fix this issue.You will probably also need to fix the issue mentioned in (#84), by changing the file as done here (ivanmgribeiro@b71669b).