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

Trying to rebuild image throws "Application could not be started, or no application associated with the specified file" #68

Closed
mvccogo opened this issue Dec 20, 2024 · 2 comments

Comments

@mvccogo
Copy link

mvccogo commented Dec 20, 2024

Greetings,

Due to security restrictions, I need to rebuild the pywine image locally using only verified local repositories that provide debian/python packages and the python executable. I managed to successfully install winehq-stable, but after running init-wine.sh and attempting to install the Python executable, the following message appears:

ARG PYTHON_VERSION=3.13.0
# Install python 3.12 within wine
RUN umask 0 && cd /tmp/helper && curl -LO \
    https://my.secret.repo/python-$PYTHON_VERSION-amd64.exe && \
    xvfb-run sh -c "\
        wine python-${PYTHON_VERSION}-amd64.exe /quiet /passive TargetDir=C:\\Python \
        Include_doc=0 InstallAllUsers=1 PrependPath=1; \
    wineserver -w"

#16 2.349 Application could not be started, or no application associated with the specified file.
#16 2.349 ShellExecuteEx failed: File not found.

The rest of my dockerfile is omitted here but is practically a 1:1 copy of pywine and wine-docker.
Running wine start /unix gets rid of the error, but the command hangs.

@TobiX
Copy link
Member

TobiX commented Dec 23, 2024

Are you sure the installer file isn't corrupted? You might want to add --fail-with-body to the curl call if you aren't verifying the integrity of the download afterwards...

@mvccogo
Copy link
Author

mvccogo commented Dec 29, 2024

Hello! Completely forgot to update this issue. You were dead right, curl was failing the authentication. Fixing that has solved the issue. Happy 2025, and thanks!

@mvccogo mvccogo closed this as completed Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants