webcomics / pywine

Docker image for Wine with Python
MIT License
93 stars 26 forks source link

Microsoft Visual C++ 14.0 redist install #42

Closed thefastman closed 1 year ago

thefastman commented 1 year ago

Some of packages does not work because of error: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools

So, I've tried to install it with winetricks e.g: bash winetricks vcrun2015 but seems it does not work:

root@3d4e4c75d1d8:/home/fast# bash winetricks vcrun2015
------------------------------------------------------
warning: Running Wine/winetricks as root is highly discouraged. See https://wiki.winehq.org/FAQ#Should_I_run_Wine_as_root.3F
------------------------------------------------------
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212-next - sha256sum: be4196ba3358be7c68cb58e7a7cbe9b37418e12e92beb88876e119998f438532 with wine-8.0.1 and WINEARCH=win64
Executing w_do_call vcrun2015
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2015
Using native,builtin override for following DLLs: api-ms-win-crt-private-l1-1-0 api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-convert-l1-1-0 api-ms-win-crt-environment-l1-1-0 api-ms-win-crt-filesystem-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-multibyte-l1-1-0 api-ms-win-crt-process-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-string-l1-1-0 api-ms-win-crt-utility-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcp140_1 msvcp140_atomic_wait ucrtbase vcomp140 vccorlib140 vcruntime140 vcruntime140_1
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\override-dll.reg
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\override-dll.reg
------------------------------------------------------
warning: Working around wine bug 50894 -- Working around failing wusa.exe lookup via C:\windows\SysNative
------------------------------------------------------
Executing wine winecfg -v winxp64
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/opt/wineprefix terminate
------------------------------------------------------
Executing cabextract -q --directory=/opt/wineprefix/dosdevices/c:/windows/temp/win32 /root/.cache/winetricks/vcrun2015/vc_redist.x86.exe -F a10
Executing cabextract -q --directory=/opt/wineprefix/dosdevices/c:/windows/syswow64 /opt/wineprefix/dosdevices/c:/windows/temp/win32/a10 -F ucrtbase.dll
/opt/wineprefix/dosdevices/c:/windows/temp/win32/a10: WARNING; possible 16128 extra bytes at end of file.
Executing cd /root/.cache/winetricks/vcrun2015
Executing wine vc_redist.x86.exe
------------------------------------------------------
warning: Note: command wine vc_redist.x86.exe returned status 183. Aborting.
------------------------------------------------------
root@3d4e4c75d1d8:/home/fast#

Any ideas ? Thanks.

TobiX commented 1 year ago

Which packages? Is this specific to my docker image? If you need support with winetricks, I'd suggest to use their support channels.

dansanti commented 1 year ago

hello, this happens with python modules like netifaces , there are no way to install vc_redist.x86.exe

TobiX commented 1 year ago

My containers are set up to RUN Python software, not BUILD them. Ask the maintainer of the package you try to use to provide wheels for Windows if you don't want pip to try building packages from source.

TobiX commented 1 year ago

PS: For the specific case of netifaces: I'd suggest switching to netifaces2 or netifaces-plus, which are maintained and have wheels for current Python versions.