I know that this is not a normal use-case scenario, but I have a need for this.
I am trying to install python under wine 8.1 running Ubuntu 22.04 using PlayOnLinux to manage the wineprefix. I have tried both the 32- and 64-bit versions of python-3.13.7 and I get the same error at the same place in the installation:
Unhandled exception: unimplemented function KERNEL32.dll.CopyFile2 called in 64-bit code (0x0000017002e678).
Register dump:
rip:000000017002e678 rsp:00000000002ff140 rbp:00000000002ff2e0 eflags:00000202 ( - – I - - - )
rax:0000000180000100 rbx:00000000002ff160 rcx:00000000002ff160 rdx:0000000180516760
rsi:0000000001a8bb30 rdi:0000000001acfbb0 r8:0000000180261fcd r9:0000000000000048 r10:000000017008cca0
r11:0000000000000047 r12:7fffffffffffffff r13:0000000180648da0 r14:0000000180648da0 r15:00000000016a0440
Stack dump:
0x000000002ff140: 00000000002ff160 0000000000000000
0x000000002ff150: 00000000ffff0000 000000018061b480
0x000000002ff160: 0000000180000100 0000000000000000
0x000000002ff170: 000000017002e678 0000000100000002
0x000000002ff180: 0000000180516b00 0000000180516760
0x000000002ff190: 0000000000000000 0000000000000008
0x000000002ff1a0: 000000018061b460 000000017005ee2d
0x000000002ff1b0: 0000000000000008 000000018061b460
0x000000002ff1c0: 0000000180648da0 00000000002ff2e0
0x000000002ff1d0: 7fffffffffffffff 00000001800cac6b
0x000000002ff1e0: 0000000180648da0 00000001804b5d00
0x000000002ff1f0: 0000000000f3ab28 0000000000000000
Backtrace:
=>0 0x0000017002e678 stub_entry_point+0x48(dll=, name=, ret_addr=) [Z:\root\wine-git\dlls\ntdll\loader.c:362] in ntdll (0x000000002ff2e0)
1 0x00000180261fcd in python313 (+0x261fcd) (0x000000002ff2e0)
2 0x00000180261f26 in python313 (+0x261f26) (0x000000002ff2e0)
3 0x0000018002c8b5 in python313 (+0x2c8b5) (0000000000000000)
4 0x0000018002c229 in python313 (+0x2c229) (0x000000002ff4b0)
5 0x000001800312f4 in python313 (+0x312f4) (0x000000002ff4b0)
6 0x000001800e5538 in python313 (+0xe5538) (0x00000180648da0)
7 0x000001800e53ee in python313 (+0xe53ee) (0x00000180648da0)
8 0x0000018012bcdf in python313 (+0x12bcdf) (0000000000000000)
9 0x0000018012bb1e in python313 (+0x12bb1e) (0x000000016df380)
10 0x0000018002c8b5 in python313 (+0x2c8b5) (0000000000000000)
11 0x0000018002c229 in python313 (+0x2c229) (0x000000002ffa20)
12 0x000001800312f4 in python313 (+0x312f4) (0x000000002ffa20)
13 0x0000018002cf87 in python313 (+0x2cf87) (0x000000002ffce0)
14 0x00000180090571 in python313 (+0x90571) (0x000000002ffce0)
15 0x000001800904bb in python313 (+0x904bb) (0x000000002ffce0)
16 0x0000018012dc14 in python313 (+0x12dc14) (0x000000002ffce0)
17 0x0000018012e083 in python313 (+0x12e083) (0000000000000000)
18 0x0000018012f8b8 in python313 (+0x12f8b8) (0000000000000000)
19 0x0000018012f913 in python313 (+0x12f913) (0000000000000000)
20 0x00000140001230 in python (+0x1230) (0000000000000000)
21 0x0000007b627e59 BaseThreadInitThunk+0x9(unknown=, entry=, arg=) [Z:\root\wine-git\dlls\kernel32\thread.c:61] in kernel32 (0000000000000000)
22 0x0000017005f568 __wine_pop_frame(entry=00000001400012A0, arg=000000007FEF0000) [Z:\root\wine-git\include\wine\exception.h:277] in ntdll (0000000000000000)
23 0x0000017005f568 RtlUserThreadStart+0x88(entry=[, arg=[) [Z:\root\wine-git\dlls\ntdll\thread.c:285] in ntdll (0000000000000000)
0x0000017002e678 stub_entry_point+0x48 [Z:\root\wine-git\dlls\ntdll\loader.c:362] in ntdll: jmp 0x0000017002e670 stub_entry_point+0x40
Unable to access file ‘Z:\root\wine-git\dlls\ntdll\loader.c’
Modules:
Module Address Debug info Name (33 modules)
PE 00000000019b0000-00000000019c0000 Deferred python3
PE 00000000019c0000-00000000019d6000 Deferred _bz2.pyd
PE 00000000019e0000-0000000001a07000 Deferred _lzma.pyd
PE 000000007b000000-000000007b5ef000 Deferred kernelbase
PE 000000007b600000-000000007b796000 Dwarf-4 kernel32
ELF 000000007d000000-000000007d005000 Deferred
PE 0000000140000000-000000014001a000 Export python
PE 0000000170000000-0000000170388000 Dwarf-4 ntdll
PE 0000000180000000-0000000180655000 Export python313
PE 00000001d8c90000-00000001d8dc7000 Deferred advapi32
PE 00000001eaf60000-00000001eb025000 Deferred sechost
PE 0000000228280000-00000002285b8000 Deferred msvcrt
PE 000000025dc30000-000000025dc50000 Deferred version
PE 00000002605d0000-00000002605e9000 Deferred vcruntime140
PE 00000002c7470000-00000002c7819000 Deferred ucrtbase
PE 00000002ee630000-00000002ee685000 Deferred bcrypt
PE 0000000370f70000-000000037101c000 Deferred ws2_32
ELF 00007f87b458e000-00007f87b4610000 Deferred libgmp.so.10
ELF 00007f87b4610000-00007f87b4658000 Deferred libhogweed.so.6
ELF 00007f87b4658000-00007f87b469e000 Deferred libnettle.so.8
ELF 00007f87b469e000-00007f87b46b6000 Deferred libtasn1.so.6
ELF 00007f87b46b6000-00007f87b4860000 Deferred libunistring.so.2
ELF 00007f87b4860000-00007f87b4881000 Deferred libidn2.so.0
ELF 00007f87b4881000-00007f87b49bc000 Deferred libp11-kit.so.0
ELF 00007f87b49bc000-00007f87b4ba7000 Deferred libgnutls.so.30
ELF 00007f87b4ed0000-00007f87b5047000 Dwarf libwine.so.1
ELF 00007f87b5147000-00007f87b5167000 Deferred libgcc_s.so.1
ELF 00007f87b5167000-00007f87b525a000 Deferred ntdll.so
ELF 00007f87b525d000-00007f87b5486000 Deferred libc.so.6
ELF 00007f87b548d000-00007f87b549a000 Deferred libffi.so.8
ELF 00007f87b549a000-00007f87b54a8000 Deferred bcrypt.so
ELF 00007f87b54a8000-00007f87b54af000 Deferred ws2_32.so
ELF 00007f87b54b1000-00007f87b54ed000 Deferred ld-linux-x86-64.so.2
Threads:
process tid prio name (all IDs are in hex)
00000020 start.exe
00000024 0
00000038 services.exe
[“C:\windows\system32\services.exe”]
0000003c 0
00000040 0 wine_rpcrt4_server
0000004c 0 wine_rpcrt4_io
00000070 0 wine_rpcrt4_io
0000007c 0 wine_rpcrt4_io
00000098 0 wine_rpcrt4_io
000000b0 0 wine_rpcrt4_io
000000f8 0 wine_rpcrt4_io
00000044 winedevice.exe
[C:\windows\system32\winedevice.exe]
00000048 0
00000054 0
00000058 0 wine_sechost_service
0000005c 0
00000060 0
00000064 0
000000bc 0
00000068 winedevice.exe
[C:\windows\system32\winedevice.exe]
0000006c 0
00000074 0
00000078 0 wine_sechost_service
00000080 0
00000084 0
00000088 0
00000094 0
0000008c plugplay.exe
[C:\windows\system32\plugplay.exe]
00000090 0
0000009c 0
000000a0 0 wine_sechost_service
000000a4 0 wine_rpcrt4_server
000000a8 svchost.exe
[C:\windows\system32\svchost.exe -k LocalServiceNetworkRestricted]
000000ac 0
000000b4 0
000000b8 0 wine_sechost_service
000000c8 explorer.exe
[“C:\windows\system32\explorer.exe” /desktop]
000000cc 0
000000d8 0
000000ec 0 wine_rpcrt4_server
000000e4 rpcss.exe
[C:\windows\system32\rpcss.exe]
000000e8 0
00000100 0
00000104 0 wine_sechost_service
00000108 0 wine_rpcrt4_server
0000010c 0 wine_rpcrt4_server
00000118 0 wine_rpcrt4_io
000001f0 0 wine_rpcrt4_io
00000148 wineconsole.exe
0000014c 0
00000150 cmd.exe
00000154 0
00000158 conhost.exe
[“C:\windows\system32\conhost.exe” --server 0x3c]
0000015c 0
00000160 python-3.13.7-amd64.exe
00000164 0
0000016c python-3.13.7-amd64.exe
00000170 0
00000178 0
0000017c 0
000001a8 0 wine_rpcrt4_server
000001b4 0
000001bc 0 wine_rpcrt4_io
000001ac msiexec.exe
000001b0 0
000001b8 0
000001c4 (D) C:\users\derek\Local Settings\Application Data\Programs\Python\Python313\python.exe
[“C:\users\derek\Local Settings\Application Data\Programs\Python\Python313\python.exe” -I -m ensurepip -U --default-pip]
000001c8 0 <==
000001dc 0
000001cc conhost.exe
[“C:\windows\system32\conhost.exe” --server 0x3c --headless]
000001d0 0
000001e0 explorer.exe
[“C:\windows\system32\explorer.exe” /desktop]
000001e4 0
000001e8 0
000001ec 0 wine_rpcrt4_server
System information:
Wine build: wine-8.1 (Staging)
Platform: x86_64
Version: Windows 10
Host system: Linux
Host version: 5.15.0-153-generic
I had success getting python to install under bottles, so I know in theory, this should work. The issue with bottles had more to do with the scripts I am trying to run and the locked down permissions inherent to bottles than actually installing python and then pip.
Any advice, tips or help would be greatly appreciated. Thank you.