Open hpdeandrade opened 2 months ago
After running
pip install peewee
or
pip install pysqlite3
I run into the following error message (example with peewee). I'm trying to install the package from a wine installation on Ubuntu 24.04. It crashes in Python 3.12.3 and 3.12.4 and worked fine with python <= 3.11.9
Downloading peewee-3.17.6.tar.gz (3.0 MB) 13.57 ---------------------------------------- 3.0/3.0 MB 10.3 MB/s eta 0:00:00 14.62 Installing build dependencies: started 26.09 Installing build dependencies: finished with status 'done' 26.10 Getting requirements to build wheel: started 30.11 Getting requirements to build wheel: finished with status 'done' 30.13 Preparing metadata (pyproject.toml): started 34.02 wine: Call from 00006FFFFFC7D3B8 to unimplemented function KERNEL32.dll.CopyFile2, aborting 34.02 wine: Unimplemented function KERNEL32.dll.CopyFile2 called at address 00006FFFFFC7D3B8 (thread 0158), starting debugger... 34.18 0168:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded. 34.18 0168:err:winediag:nodrv_CreateWindow L"Make sure that your X server is running and that $DISPLAY is set correctly." 35.97 wine: Call from 00006FFFFFC7D3B8 to unimplemented function KERNEL32.dll.CopyFile2, aborting 35.99 Preparing metadata (pyproject.toml): finished with status 'error' 36.01 error: subprocess-exited-with-error 36.01 36.01 Preparing metadata (pyproject.toml) did not run successfully. 36.01 exit code: 2147483904 36.01 36.01 [245 lines of output] 36.01 <string>:111: UserWarning: Could not find libsqlite3, SQLite extensions will not be built. 36.01 unable to compile sqlite3 C extensions - platform error 36.01 running dist_info 36.01 creating C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info 36.01 writing C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\PKG-INFO 36.01 writing dependency_links to C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\dependency_links.txt 36.01 writing top-level names to C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\top_level.txt 36.01 writing manifest file 'C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\SOURCES.txt' 36.01 reading manifest file 'C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\SOURCES.txt' 36.01 reading manifest template 'MANIFEST.in' 36.01 warning: no files found matching 'tests.py' 36.01 warning: no files found matching 'playhouse\pskel' 36.01 warning: no files found matching 'playhouse\tests\README' 36.01 adding license file 'LICENSE' 36.01 writing manifest file 'C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee.egg-info\SOURCES.txt' 36.01 creating 'C:\users\root\Temp\pip-modern-metadata-rgup7w9s\peewee-3.17.6.dist-info' 36.01 Unhandled exception: unimplemented function KERNEL32.dll.CopyFile2 called in 64-bit code (0x006fffffc7d3b8). 36.01 Register dump: 36.01 rip:00006fffffc7d3b8 rsp:00007ffffe2ee890 rbp:00007ffffe2ee950 eflags:00000206 ( - -- I - -P- ) 36.02 rax:0000000180000100 rbx:00007ffffe2ee8b0 rcx:00007ffffe2ee8b0 rdx:00006ffffa9d3c9e 36.02 rsi:00007facaeb70190 rdi:00007facb172a070 r8:00006ffffa7184c5 r9:00007ffffe2ee980 r10:0000000000000008 36.02 r11:00007ffffe2ee968 r12:00007ffffeaf0ab0 r13:00007ffffeb11da0 r14:0000000000000000 r15:00007ffffeaf0b40 36.02 Stack dump: 36.02 0x007ffffe2ee890: 00007ffffe2ee8b0 00006ffffab6f018 36.02 0x007ffffe2ee8a0: 00007ffffe2ee8d0 00006ffffeb01391 36.02 0x007ffffe2ee8b0: 0000000180000100 0000000000000000 36.02 0x007ffffe2ee8c0: 00006fffffc7d3b8 00007fff00000002 36.02 0x007ffffe2ee8d0: 00006ffffa9d3f50 00006ffffa9d3c9e 36.02 0x007ffffe2ee8e0: 00006ffffab11768 0000000000000000 36.02 0x007ffffe2ee8f0: 00007ffffeb11120 00006ffffab11b68 36.02 0x007ffffe2ee900: 00007ffffe2eea40 00006ffffa4eb8b3 36.02 0x007ffffe2ee910: 00000a6c92bf7292 00006ffffa55a407 36.02 0x007ffffe2ee920: 00006ffffa9e2370 00007ffffeaf0ab0 36.02 0x007ffffe2ee930: 00007facb172a070 00006ffffa4eb834 36.02 0x007ffffe2ee940: 00006ffffab6f018 00007ffffe2eea40 36.02 Backtrace: 36.02 =>0 0x006fffffc7d3b8 stub_entry_point+0x58(dll=<internal error>, name=<internal error>, ret_addr=<internal error>) [/usr/src/wine-9.0~repack-4build3/dlls/ntdll/loader.c:403] in ntdll (0x007ffffe2ee950) 36.02 1 0x006ffffa7184c5 in python312 (+0x2384c5) (0x007ffffe2eea40) 36.02 2 0x006ffffa71841e in python312 (+0x23841e) (0x007ffffe2eea40) 36.02 3 0x006ffffa4ee126 in python312 (+0xe126) (0x00000000000003) 36.02 4 0x006ffffa50ecaf in python312 (+0x2ecaf) (0000000000000000) 36.02 5 0x006ffffa50ec15 in python312 (+0x2ec15) (0x007ffffe2eec50) 36.02 6 0x006ffffa51028c in python312 (+0x3028c) (0x007ffffe2eec50) 36.02 7 0x006ffffa550c2e in python312 (+0x70c2e) (0x006ffffaa3e1d0) 36.02 8 0x006ffffa56b146 in python312 (+0x8b146) (0x007ffffe2eef60) 36.02 9 0x006ffffa56b0f5 in python312 (+0x8b0f5) (0x007ffffe2eef60) 36.02 10 0x006ffffa510d2b in python312 (+0x30d2b) (0x007ffffe2eef60) 36.02 11 0x006ffffa50e2ec in python312 (+0x2e2ec) (0x006ffffab6f018) 36.02 12 0x006ffffa55c5b3 in python312 (+0x7c5b3) (0000000000000000) 36.02 13 0x006ffffa55cef9 in python312 (+0x7cef9) (0x007ffffe2ef340) 36.02 14 0x006ffffa514211 in python312 (+0x34211) (0x007ffffe2ef340) 36.02 15 0x006ffffa53ff14 in python312 (+0x5ff14) (0x006ffffab6f018) 36.02 16 0x006ffffa53f875 in python312 (+0x5f875) (0x006ffffab6f018) 36.02 17 0x006ffffa58752c in python312 (+0xa752c) (0x007facb171dd80) 36.02 18 0x006ffffa58853c in python312 (+0xa853c) (0x007facb171dd80) 36.02 19 0x006ffffa588657 in python312 (+0xa8657) (0x007facb171dd80) 36.02 20 0x006ffffa58745e in python312 (+0xa745e) (0x007fffff3d3f50) 36.02 21 0x006ffffa587228 in python312 (+0xa7228) (0x007facb171dd80) 36.02 22 0x006ffffa4ee126 in python312 (+0xe126) (0x00000000000002) 36.02 23 0x006ffffa50ecaf in python312 (+0x2ecaf) (0000000000000000) 36.02 24 0x006ffffa50ec15 in python312 (+0x2ec15) (0x007ffffe2ef980) 36.02 25 0x006ffffa51028c in python312 (+0x3028c) (0x007ffffe2ef980) 36.02 26 0x006ffffa53ff14 in python312 (+0x5ff14) (0x006ffffab6f018) 36.02 27 0x006ffffa53f875 in python312 (+0x5f875) (0x006ffffab6f018) 36.02 28 0x006ffffa58752c in python312 (+0xa752c) (0x007ffffe9ebd40) 36.02 29 0x006ffffa58853c in python312 (+0xa853c) (0x007ffffe9ebd40) 36.02 30 0x006ffffa61ce98 in python312 (+0x13ce98) (0x006ffffeb982b0) 36.02 31 0x006ffffa61ca92 in python312 (+0x13ca92) (0x007ffffe9ebd40) 36.02 32 0x006ffffa61c0e4 in python312 (+0x13c0e4) (0x007ffffe2efe28) 36.02 33 0x006ffffa61bf22 in python312 (+0x13bf22) (0000000000000000) 36.02 34 0x006ffffa61bdff in python312 (+0x13bdff) (0xffffffffffffffff) 36.02 35 0x006ffffa617587 in python312 (+0x137587) (0x007ffffe2efe90) 36.02 36 0x006ffffa617339 in python312 (+0x137339) (0x007ffffe2effa0) 36.02 37 0x006ffffa616d25 in python312 (+0x136d25) (0x007ffffe2effa0) 36.02 38 0x00000140001230 in python (+0x1230) (0x007ffffe2effa0) 36.02 39 0x006fffffaa93d1 BaseThreadInitThunk+0x11(unknown=<internal error>, entry=<internal error>, arg=<internal error>) [/usr/src/wine-9.0~repack-4build3/dlls/kernel32/thread.c:61] in kernel32 (0x007ffffe2effa0) 36.02 40 0x006fffffca598b in ntdll (+0x5598b) (0000000000000000) 36.02 0x006fffffc7d3b8 stub_entry_point+0x58 [/usr/src/wine-9.0~repack-4build3/dlls/ntdll/loader.c:403] in ntdll: jmp 0x00006fffffc7d3b0 stub_entry_point+0x50 [/usr/src/wine-9.0~repack-4build3/dlls/ntdll/loader.c:403] in ntdll 36.02 Unable to access file '/usr/src/wine-9.0~repack-4build3/dlls/ntdll/loader.c' 36.02 Modules: 36.02 Module Address Debug info Name (101 modules) 36.02 PE-Wine 79310000- 79896000 Deferred opengl32 36.02 PE 140000000- 14001a000 Export python 36.02 PE 180000000- 18000f000 Deferred python3 36.02 ELF 5608f89f2000- 5608f89f7000 Deferred <wine-loader> 36.02 PE 6ffff7f00000- 6ffff8017000 Deferred unicodedata.pyd 36.02 PE-Wine 6ffff8050000- 6ffff840a000 Deferred crypt32 36.02 PE 6ffff8420000- 6ffff8919000 Deferred libcrypto-3 36.02 PE-Wine 6ffff8930000- 6ffff8eb8000 Deferred comctl32 36.02 PE-Wine 6ffff8ed0000- 6ffffa4cf000 Deferred wined3d 36.02 PE 6ffffa4e0000- 6ffffab87000 Export python312 36.02 PE-Wine 6ffffaba0000- 6ffffabc4000 Deferred nsi 36.02 PE-Wine 6ffffabe0000- 6ffffac2c000 Deferred dnsapi 36.02 PE-Wine 6ffffac40000- 6ffffacce000 Deferred iphlpapi 36.02 PE-Wine 6ffffb450000- 6ffffb518000 Deferred uxtheme 36.02 PE-Wine 6ffffb6f0000- 6ffffb76d000 Deferred imm32 36.02 PE 6ffffb7c0000- 6ffffb7ce000 Deferred _overlapped.pyd 36.02 PE 6ffffb7e0000- 6ffffb7f2000 Deferred _asyncio.pyd 36.02 PE-Wine 6ffffb810000- 6ffffbcda000 Deferred oleaut32 36.02 PE 6ffffbd30000- 6ffffbdf2000 Deferred libssl-3 36.02 PE 6ffffbe10000- 6ffffbe3d000 Deferred _ssl.pyd 36.02 PE 6ffffbe50000- 6ffffbe61000 Deferred _hashlib.pyd 36.02 PE-Wine 6ffffbed0000- 6ffffbf02000 Deferred compstui 36.02 PE-Wine 6ffffbf20000- 6ffffbfe6000 Deferred winspool 36.02 PE-Wine 6ffffc000000- 6ffffc147000 Deferred dxgi 36.02 PE-Wine 6ffffc160000- 6ffffc2c9000 Deferred wbemprox 36.02 PE 6ffffc2e0000- 6ffffc2e9000 Deferred _queue.pyd 36.02 PE 6ffffc300000- 6ffffc309000 Deferred select.pyd 36.02 PE 6ffffc320000- 6ffffc336000 Deferred _socket.pyd 36.02 PE-Wine 6ffffc350000- 6ffffc386000 Deferred vcruntime140_1 36.02 PE-Wine 6ffffc3a0000- 6ffffc418000 Deferred propsys 36.02 PE 6ffffc430000- 6ffffc43b000 Deferred _wmi.pyd 36.02 PE 6ffffc450000- 6ffffc479000 Deferred _lzma.pyd 36.02 PE 6ffffc490000- 6ffffc4a6000 Deferred _bz2.pyd 36.02 PE-Wine 6ffffc4c0000- 6ffffc4da000 Deferred vcruntime140 36.02 PE-Wine 6ffffc4f0000- 6ffffc54b000 Deferred bcrypt 36.02 PE-Wine 6ffffc560000- 6ffffc580000 Deferred version 36.02 PE-Wine 6ffffc590000- 6ffffc765000 Deferred setupapi 36.02 PE-Wine 6ffffd6b0000- 6ffffd6fd000 Deferred coml2 36.02 PE-Wine 6ffffd710000- 6ffffd999000 Deferred rpcrt4 36.02 PE-Wine 6ffffd9b0000- 6ffffd9ee000 Deferred win32u 36.02 PE-Wine 6ffffda00000- 6ffffda2a000 Deferred zlib1 36.02 PE-Wine 6ffffda40000- 6ffffdfe5000 Deferred user32 36.02 PE-Wine 6ffffe000000- 6ffffe2c9000 Deferred gdi32 36.02 PE-Wine 6ffffe2e0000- 6ffffe475000 Deferred combase 36.02 PE-Wine 6ffffe490000- 6ffffea06000 Deferred ole32 36.02 PE-Wine 6ffffea20000- 6ffffeacd000 Deferred ws2_32 36.02 PE-Wine 6ffffeae0000- 6ffffeed6000 Deferred ucrtbase 36.02 PE-Wine 6ffffeef0000- 6ffffefad000 Deferred sechost 36.02 PE-Wine 6ffffefc0000- 6fffff317000 Deferred msvcrt 36.02 PE-Wine 6fffff330000- 6fffff45c000 Deferred advapi32 36.02 PE-Wine 6fffff470000- 6fffffa6c000 Deferred kernelbase 36.02 PE-Wine 6fffffa80000- 6fffffc38000 Dwarf-4 kernel32 36.02 PE-Wine 6fffffc50000- 6ffffffeb000 Dwarf-4 ntdll 36.02 ELF 7facaf605000- 7facaf632000 Deferred libgcc_s.so.1 36.02 ELF 7facaf632000- 7facaf657000 Deferred libgpg-error.so.0 36.02 ELF 7facaf657000- 7facaf711000 Deferred libzstd.so.1 36.02 ELF 7facaf711000- 7facaf733000 Deferred liblz4.so.1 36.02 ELF 7facaf733000- 7facaf87b000 Deferred libgcrypt.so.20 36.02 ELF 7facaf87b000- 7facaf888000 Deferred libcap.so.2 36.02 ELF 7facaf888000- 7facaf968000 Deferred libsystemd.so.0 36.02 ELF 7facaf968000- 7facaf97b000 Deferred libresolv.so.2 36.02 ELF 7facaf97b000- 7facaf9ca000 Deferred libdbus-1.so.3 36.02 ELF 7facaf9ca000- 7facaf9f6000 Deferred libk5crypto.so.3 36.02 ELF 7facaf9f6000- 7facafabf000 Deferred libkrb5.so.3 36.02 ELF 7facafabf000- 7facafb60000 Deferred libcups.so.2 36.02 ELF 7facb0b33000- 7facb0b40000 Deferred libkrb5support.so.0 36.02 ELF 7facb0c44000- 7facb0c4b000 Deferred libkeyutils.so.1 36.02 ELF 7facb0c4b000- 7facb0c5e000 Deferred libavahi-client.so.3 36.02 ELF 7facb0c5e000- 7facb0c6c000 Deferred libavahi-common.so.3 36.02 ELF 7facb0c6c000- 7facb0cc0000 Deferred libgssapi_krb5.so.2 36.02 ELF 7facb0d0c000- 7facb0e4c000 Deferred opengl32.so 36.02 ELF 7facb15aa000- 7facb15b0000 Deferred libcom_err.so.2 36.02 ELF 7facb17a2000- 7facb17a8000 Deferred winspool.so 36.02 ELF 7facb17a8000- 7facb17ae000 Deferred crypt32.so 36.02 ELF 7facb17b6000- 7facb17e1000 Deferred libexpat.so.1 36.02 ELF 7facb17e1000- 7facb1832000 Deferred libfontconfig.so.1 36.02 ELF 7facb1832000- 7facb1855000 Deferred libbrotlicommon.so.1 36.02 ELF 7facb1855000- 7facb1863000 Deferred libbrotlidec.so.1 36.02 ELF 7facb1863000- 7facb189b000 Deferred libpng16.so.16 36.02 ELF 7facb189b000- 7facb18af000 Deferred libbz2.so.1.0 36.02 ELF 7facb18af000- 7facb18cb000 Deferred libz.so.1 36.02 ELF 7facb18cb000- 7facb1997000 Deferred libfreetype.so.6 36.02 ELF 7facb1997000- 7facb1a80000 Deferred libm.so.6 36.02 ELF 7facb1a80000- 7facb1c1f000 Deferred win32u.so 36.02 ELF 7facb1c1f000- 7facb1c2b000 Deferred libffi.so.8 36.02 ELF 7facb1c2b000- 7facb1caf000 Deferred libgmp.so.10 36.02 ELF 7facb1caf000- 7facb1cf7000 Deferred libhogweed.so.6 36.02 ELF 7facb1cf7000- 7facb1d4c000 Deferred libnettle.so.8 36.02 ELF 7facb1d4c000- 7facb1d62000 Deferred libtasn1.so.6 36.02 ELF 7facb1d62000- 7facb1f0f000 Deferred libunistring.so.5 36.02 ELF 7facb1f0f000- 7facb1f31000 Deferred libidn2.so.0 36.02 ELF 7facb1f31000- 7facb20d5000 Deferred libp11-kit.so.0 36.02 ELF 7facb20d5000- 7facb22cf000 Deferred libgnutls.so.30 36.02 ELF 7facb22cf000- 7facb22d4000 Deferred dnsapi.so 36.02 ELF 7facb22da000- 7facb22e6000 Deferred bcrypt.so 36.02 ELF 7facb26e6000- 7facb2718000 Deferred liblzma.so.5 36.02 ELF 7facb2718000- 7facb2733000 Deferred libunwind.so.8 36.02 ELF 7facb2733000- 7facb27ee000 Export ntdll.so 36.02 ELF 7facb27f1000- 7facb2a03000 Deferred libc.so.6 36.02 ELF 7facb2a07000- 7facb2a0e000 Deferred ws2_32.so 36.02 ELF 7facb2a10000- 7facb2a4a000 Deferred ld-linux-x86-64.so.2 36.02 Threads: 36.02 process tid prio name (all IDs are in hex) 36.02 00000020 start.exe 36.02 00000024 0 36.02 00000038 services.exe 36.02 0000003c 0 36.02 00000048 0 wine_rpcrt4_server 36.02 00000054 0 wine_rpcrt4_io 36.02 00000078 0 wine_rpcrt4_io 36.02 0000009c 0 wine_rpcrt4_io 36.02 000000b4 0 wine_rpcrt4_io 36.02 000000cc 0 wine_rpcrt4_io 36.02 000000e0 0 36.02 000000ec 0 wine_rpcrt4_io 36.02 00000040 explorer.exe 36.02 00000044 0 36.02 00000094 0 wine_rpcrt4_server 36.02 0000004c winedevice.exe 36.02 00000050 0 36.02 0000005c 0 36.02 00000060 0 wine_sechost_service 36.02 00000064 0 36.02 00000068 0 36.02 000000d8 0 36.02 000000dc 0 36.02 00000070 winedevice.exe 36.02 00000074 0 36.02 0000007c 0 36.02 00000084 0 wine_sechost_service 36.02 00000088 0 36.02 0000008c 0 36.02 00000090 0 36.02 000000ac 0 36.02 000000b0 0 36.02 000000a0 plugplay.exe 36.02 000000a4 0 36.02 000000b8 0 36.02 000000bc 0 wine_sechost_service 36.02 000000c0 0 wine_rpcrt4_server 36.02 000000c4 svchost.exe 36.02 000000c8 0 36.02 000000d0 0 36.02 000000d4 0 wine_sechost_service 36.02 000000e4 rpcss.exe 36.02 000000e8 0 36.02 000000f0 0 36.02 000000f4 0 wine_sechost_service 36.02 000000f8 0 wine_rpcrt4_server 36.02 000000fc 0 wine_rpcrt4_server 36.02 00000100 0 wine_rpcrt4_io 36.02 00000108 pip.exe 36.02 0000010c 0 36.02 00000110 python.exe 36.02 00000114 0 36.02 00000154 (D) C:\Python\Python312\python.exe 36.02 00000158 0 <== 36.02 0000016c 0 36.02 System information: 36.02 Wine build: wine-9.0 (Ubuntu 9.0~repack-4build3) 36.02 Platform: x86_64 (guest: i386) 36.02 Version: Windows 10 36.02 Host system: Linux 36.02 Host version: 5.15.146.1-microsoft-standard-WSL2 36.02 [end of output] 36.02 36.02 note: This error originates from a subprocess, and is likely not a problem with pip. 36.03 error: metadata-generation-failed 36.03 36.03 Encountered error while generating package metadata. 36.03 36.03 See above for output. 36.03 36.03 note: This is an issue with the package mentioned above, not pip.
I posted the issue in github/peewee #2913 and seems it happens due to this change.
Is there any workaround?
Thanks.
CPython main branch
Other
Wine is not Windows. I suggest you report it to the Wine project.
Thanks, will do.
Bug report
Bug description:
After running
or
I run into the following error message (example with peewee). I'm trying to install the package from a wine installation on Ubuntu 24.04. It crashes in Python 3.12.3 and 3.12.4 and worked fine with python <= 3.11.9
I posted the issue in github/peewee #2913 and seems it happens due to this change.
Is there any workaround?
Thanks.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other