New GitHub issue #121507 from hpdeandrade:<br>
<hr>
<pre>
# Bug report
### Bug description:
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- 14
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/121507">View on GitHub</a>
<p>Labels: type-bug</p>
<p>Assignee: </p>