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

docker build command stops after asking for the country of origin for the keyboard #564

Closed
JJJHolscher opened this issue Nov 9, 2023 · 5 comments · Fixed by #567
Closed

Comments

@JJJHolscher
Copy link

On my arch linux machine, after running

git clone https://github.com/machawk1/wail.git
cd wail
docker build -t machawk1/wail .

Docker outputs a bunch, but then asks for Country of origin for the keyboard: after enumerating 99 countries.
When I put in the number, country name, nothing or do not even press enter, the program never continues doing anything, it also doesn't quit.

I would like it to finish building instead.

@machawk1
Copy link
Owner

machawk1 commented Nov 10, 2023

Thanks for the report, @JJJHolscher. I will see if I can replicate your experience and report back here.

@machawk1
Copy link
Owner

machawk1 commented Nov 10, 2023

I first trip running the docker build command on my own macOS 13.4.1 machine and received a error just in the build process. This might not be the same issue. I will continue to dig.

...
 => ERROR [ 4/10] RUN        pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubunt  6.4s 
------                                                                                                              
 > [ 4/10] RUN        pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython==4.2.0        &&  pip3 install pyinstaller==5.3:                                                                 
#7 0.661 Looking in links: https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04                     
#7 1.403 Collecting wxPython==4.2.0                                                                                 
#7 1.476   Downloading wxPython-4.2.0.tar.gz (71.0 MB)
#7 6.043     ERROR: Command errored out with exit status 1:
#7 6.043      command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-nl5yi0_e/wxPython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-nl5yi0_e/wxPython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-nl5yi0_e/wxPython/pip-egg-info
#7 6.043          cwd: /tmp/pip-install-nl5yi0_e/wxPython/
#7 6.043     Complete output (7 lines):
#7 6.043     Traceback (most recent call last):
#7 6.043       File "<string>", line 1, in <module>
#7 6.043       File "/tmp/pip-install-nl5yi0_e/wxPython/setup.py", line 27, in <module>
#7 6.043         from buildtools.config import Config, msg, opj, runcmd, canGetSOName, getSOName
#7 6.043       File "/tmp/pip-install-nl5yi0_e/wxPython/buildtools/config.py", line 30, in <module>
#7 6.043         from attrdict import AttrDict
#7 6.043     ModuleNotFoundError: No module named 'attrdict'
#7 6.043     ----------------------------------------
#7 6.297 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
------
executor failed running [/bin/sh -c pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04 wxPython==4.2.0        &&  pip3 install pyinstaller==5.3]: exit code: 1

EDIT: This appears to be a known issue with wxPython 4.2.0 due to the attrdict dependency and the docker build process. Updating to 4.2.1 should fix this.

EDIT2: A newer wxPython version is now used in the main branch, as merged from #565. The primary purpose of this issue (on Arch) and verification of the new image in the container are still pending.

EDIT3: On macOS 13.4.1 using Docker, the interface is displayed when logging in via VNC.
wailvnc

@machawk1
Copy link
Owner

https://askubuntu.com/questions/876240/how-to-automate-setting-up-of-keyboard-configuration-package appears to be a relevant way to remedy this issue if we are first able to replicate it.

@machawk1
Copy link
Owner

@JJJHolscher I am working on securing an Arch Linux OS, but the addition of the environment variable in branch issue-564 might overcome the issue you are facing. If you get the chance, please run:

git clone https://github.com/machawk1/wail.git
cd wail
git checkout issue-564
docker build -t machawk1/wail .

...and let me know if you experience the same issue.

@JJJHolscher
Copy link
Author

docker build -t machawk1/wail . ran successfully after running that code.
I wasn't able to verify the ./WAIL command at the end since I already have Heritrix running and do not want to pause it in the foreseeable future.

machawk1 added a commit that referenced this issue Nov 13, 2023
Add env variable to set default keyboard in docker for #564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants