Skip to content

Best way to "run git for windows in wine" or "how to make use of git within pip from python under wine" #3478

Open
@mcfreis

Description

@mcfreis

As described in the subject, I'm in need of a git client under wine. I use wine with python 3.7 and pip to build python applications for Windows on a Linux host.

I tried the MinGit-2.33.1-64-bit.zip and the Installer-Version and the Portable one but without success.

Do you have any suggestions?

root@c37c06cb132c:~# wine --version
wine-5.0.3 (Debian 5.0.3-3)

Example error:

 > [2/3] RUN wine git -c http.sslVerify=false clone ssh://git@gitlab-prod.****:2222/rnd-team/pytools/srmocklab.git:
#5 1.230 wine: Unhandled page fault on write access to 0000000000000000 at address 00000001402616EB (thread 002d), starting debugger...
#5 1.370 002f:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
#5 1.370 002f:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
#5 1.628 Unhandled exception: page fault on write access to 0x00000000 in 64-bit code (0x00000001402616eb).
#5 1.669 Register dump:
#5 1.669  rip:00000001402616eb rsp:000000000032f5a0 rbp:00000000000000d9 eflags:00010246 (  R- --  I  Z- -P- )
#5 1.669  rax:0000000000000000 rbx:0000000000000000 rcx:0000000000000000 rdx:0000000000000000
#5 1.669  rsi:00000002a77ec020 rdi:00000002a77ec020  r8:000000000032f210  r9:00000000000003fe r10:0000000000000008
#5 1.669  r11:0000000000000246 r12:0000000000000000 r13:0000000000550818 r14:0000000000000006 r15:00000000005506d8
#5 1.669 Stack dump:
#5 1.670 0x000000000032f5a0:  0000000000000004 0000000000000001
#5 1.670 0x000000000032f5b0:  000000000032f5e0 00000000000003fe
#5 1.671 0x000000000032f5c0:  000000000032f5dc 0000000000000000
#5 1.671 0x000000000032f5d0:  000000000000000a 000000100001c041
#5 1.671 0x000000000032f5e0:  0000000000000000 0000000000000000
#5 1.672 0x000000000032f5f0:  0000000000000000 0000000000000000
#5 1.672 0x000000000032f600:  0000000000000000 0000000000001000
#5 1.673 0x000000000032f610:  0000000000000000 00000000616d6860
#5 1.673 0x000000000032f620:  00000000259d8ae4 00000000616d6860
#5 1.673 0x000000000032f630:  00000000259d8ae4 00000000616d6860
#5 1.674 0x000000000032f640:  000000003817c464 0000000000000000
#5 1.674 0x000000000032f650:  0000000000000000 0000000000000000
#5 1.674 Backtrace:
#5 1.674 =>0 0x00000001402616eb in git (+0x2616eb) (0x00000000000000d9)
#5 1.674   1 0x0000000140262527 in git (+0x262526) (0x00000000000000d9)
#5 1.674   2 0x000000014026045a in git (+0x260459) (0x00000000000000d9)
#5 1.674   3 0x00000001400013d4 in git (+0x13d3) (0x0000000000550498)
#5 1.674   4 0x0000000140001506 in git (+0x1505) (0x000000000032ffd0)
#5 1.674   5 0x000000007b459c1b __wine_start_process+0x1ea() in kernel32 (0x000000000032ffd0)
#5 1.675 0x00000001402616eb: movw       %dx,(%r12,%rax,2)
#5 1.675 Modules:
#5 1.675 Module Address                                 Debug info      Name (44 modules)
#5 1.675 ELF            7b000000-        7b0e3000       Deferred        kernelbase<elf>
#5 1.675   \-PE         7b010000-        7b0e3000       \               kernelbase
#5 1.675 ELF            7b400000-        7b68a000       Dwarf           kernel32<elf>
#5 1.675   \-PE         7b420000-        7b68a000       \               kernel32
#5 1.675 ELF            7bc00000-        7befb000       Deferred        ntdll<elf>
#5 1.675   \-PE         7bc20000-        7befb000       \               ntdll
#5 1.675 ELF            7c000000-        7c005000       Deferred        <wine-loader>
#5 1.675 PE            140000000-       140388000       Export          git
#5 1.675 PE            214d20000-       214e2b000       Deferred        libiconv-2
#5 1.675 PE            2209f0000-       220a18000       Deferred        libintl-8
#5 1.675 PE            2330a0000-       23313e000       Deferred        libpcre2-8-0
#5 1.675 PE            241b90000-       241bb4000       Deferred        zlib1
#5 1.675 PE            2a77e0000-       2a77f2000       Deferred        libssp-0
#5 1.675 ELF        7fa0e7eb1000-    7fa0e7ed8000       Deferred        imm32<elf>
#5 1.675   \-PE     7fa0e7ec0000-    7fa0e7ed8000       \               imm32
#5 1.675 ELF        7fa0e7ed8000-    7fa0e7ee1000       Deferred        libuuid.so.1
#5 1.675 ELF        7fa0e7ee1000-    7fa0e7f10000       Deferred        libexpat.so.1
#5 1.675 ELF        7fa0e7f10000-    7fa0e7f56000       Deferred        libfontconfig.so.1
#5 1.675 ELF        7fa0e7f56000-    7fa0e7f79000       Deferred        libbrotlicommon.so.1
#5 1.675 ELF        7fa0e7f79000-    7fa0e7f87000       Deferred        libbrotlidec.so.1
#5 1.675 ELF        7fa0e7f87000-    7fa0e7fa4000       Deferred        libz.so.1
#5 1.676 ELF        7fa0e7fa4000-    7fa0e7fde000       Deferred        libpng16.so.16
#5 1.676 ELF        7fa0e7fde000-    7fa0e80a1000       Deferred        libfreetype.so.6
#5 1.676 ELF        7fa0e80a1000-    7fa0e80e5000       Deferred        ws2_32<elf>
#5 1.676   \-PE     7fa0e80b0000-    7fa0e80e5000       \               ws2_32
#5 1.676 ELF        7fa0e80e5000-    7fa0e80fc000       Deferred        version<elf>
#5 1.676   \-PE     7fa0e80f0000-    7fa0e80fc000       \               version
#5 1.676 ELF        7fa0e80fc000-    7fa0e82b5000       Deferred        gdi32<elf>
#5 1.676   \-PE     7fa0e8110000-    7fa0e82b5000       \               gdi32
#5 1.676 ELF        7fa0e82b5000-    7fa0e854d000       Deferred        user32<elf>
#5 1.676   \-PE     7fa0e82e0000-    7fa0e854d000       \               user32
#5 1.676 ELF        7fa0e854d000-    7fa0e85e9000       Deferred        advapi32<elf>
#5 1.676   \-PE     7fa0e8560000-    7fa0e85e9000       \               advapi32
#5 1.676 ELF        7fa0e86e9000-    7fa0e87db000       Deferred        msvcrt<elf>
#5 1.676   \-PE     7fa0e8710000-    7fa0e87db000       \               msvcrt
#5 1.676 ELF        7fa0e89db000-    7fa0e89ef000       Deferred        libnss_files.so.2
#5 1.676 ELF        7fa0e8bef000-    7fa0e8c17000       Deferred        liblzma.so.5
#5 1.676 ELF        7fa0e8c17000-    7fa0e8c31000       Deferred        libgcc_s.so.1
#5 1.676 ELF        7fa0e8c31000-    7fa0e8d75000       Deferred        libm.so.6
#5 1.676 ELF        7fa0e8d75000-    7fa0e8d90000       Deferred        libunwind.so.8
#5 1.676 ELF        7fa0e8d92000-    7fa0e8d98000       Deferred        libdl.so.2
#5 1.676 ELF        7fa0e8d98000-    7fa0e8f5d000       Deferred        libc.so.6
#5 1.676 ELF        7fa0e8f5d000-    7fa0e8f7f000       Deferred        libpthread.so.0
#5 1.676 ELF        7fa0e912d000-    7fa0e915a000       Deferred        ld-linux-x86-64.so.2
#5 1.676 Threads:
#5 1.716 process  tid      prio (all id:s are in hex)
#5 1.740 0000000c winemenubuilder.exe
#5 1.740        0000000d    0
#5 1.764 0000000e services.exe
#5 1.764        0000000f    0
#5 1.764        00000010    0
#5 1.764        00000015    0
#5 1.765        00000016    0
#5 1.765        00000017    0
#5 1.765        0000001d    0
#5 1.765        00000021    0
#5 1.766        00000026    0
#5 1.791 00000011 explorer.exe
#5 1.791        00000012    0
#5 1.791        0000001c    0
#5 1.791        0000001e    0
#5 1.823 00000013 plugplay.exe
#5 1.823        00000014    0
#5 1.823        00000018    0
#5 1.823        00000019    0
#5 1.871 0000001a winedevice.exe
#5 1.871        0000001b    0
#5 1.871        0000001f    0
#5 1.871        00000020    0
#5 1.871        00000022    0
#5 1.871        00000023    0
#5 1.912 00000024 winedevice.exe
#5 1.912        00000025    0
#5 1.912        00000027    0
#5 1.913        00000028    0
#5 1.957 0000002a git.exe
#5 1.957        0000002b    0
#5 1.957 0000002c (D) C:\mingit\mingw64\bin\git.exe
#5 1.957        0000002d    0 <==
#5 1.957        00000030    0
#5 1.958 System information:
#5 1.958     Wine build: wine-5.0.3 (Debian 5.0.3-3)
#5 1.958     Platform: x86_64
#5 1.958     Version: Windows 7
#5 1.958     Host system: Linux
#5 1.958     Host version: 5.10.16.3-microsoft-standard-WSL2
------
executor failed running [/bin/bash -c wine git -c http.sslVerify=false clone ssh://git@gitlab-prod****:2222/rnd-team/pytools/srmocklab.git]: exit code: 5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions