You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something I wanted to point out but I'm not sure whether it's a known bug or not (if so, feel free to close the issue). I couldn't find a related issue.
The Azure Pipeline is failing on Windows, similarly to #84395 but with a more explicit error. There are two failing tests, namely
Both of them fail because they cannot find the DLL related to the sqlite3 module. The first failure failure is actually very clear:
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_ctypes\test_loading.py", line 157, in test_load_dll_with_flags
shutil.copy(os.path.join(os.path.dirname(src), "sqlite3" + ext),
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
os.path.join(tmp, "sqlite3" + ext))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\shutil.py", line 428, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\1\b\layout-appx-win32\Lib\shutil.py", line 260, in copyfile
with open(src, 'rb') as fsrc:
~~~~^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\a\\1\\b\\layout-appx-win32\\DLLs\\sqlite3.dll'
I think the issue is with the DLLs directory which is never created (AFAICT), as illustrated by the current code:
similar to what is being done in test.test_import.ImportTests.test_dll_dependency_import. Note that the source DLL should be present since it is generated during the build.
ERROR: test_dll_dependency_import (test.test_import.ImportTests.test_dll_dependency_import)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_import\__init__.py", line 762, in test_dll_dependency_import
...
subprocess.CalledProcessError: Command '[
'C:\\Users\\VssAdministrator\\AppData\\Local\\Temp\\test_python_w9okac52\\tmp7ps_2s1g\\python.exe',
'-Sc',
"import os;p = os.add_dll_directory('D:\\\\a\\\\1\\\\b\\\\layout-appx-win32\\\\DLLs');import _sqlite3;p.close"
]' returned non-zero exit status 1.
Here I think what occurs is that the files are not copied correctly (the DLLs directory is correctly created but I assume that the issue is due to the missing dll file, or perhaps it's moved incorrectly). Here is the code setting up the environment:
this issue with finding "sqlite3.dll" in the appx layout is resolved by #120133, right?
Yeah, it will. I noticed the error because my own test builds were failing the other day, but didn't bother copying the whole thing into the bug this time (serves me right...)
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
This is something I wanted to point out but I'm not sure whether it's a known bug or not (if so, feel free to close the issue). I couldn't find a related issue.
The Azure Pipeline is failing on Windows, similarly to #84395 but with a more explicit error. There are two failing tests, namely
test.test_ctypes.test_loading.LoaderTest.test_load_dll_with_flags
test.test_import.ImportTests.test_dll_dependency_import
Both of them fail because they cannot find the DLL related to the
sqlite3
module. The first failure failure is actually very clear:I think the issue is with the DLLs directory which is never created (AFAICT), as illustrated by the current code:
cpython/Lib/test/test_ctypes/test_loading.py
Lines 150 to 158 in fd104df
There should be some
similar to what is being done in
test.test_import.ImportTests.test_dll_dependency_import
. Note that the source DLL should be present since it is generated during the build.The second failure occurs with:
Here I think what occurs is that the files are not copied correctly (the DLLs directory is correctly created but I assume that the issue is due to the missing dll file, or perhaps it's moved incorrectly). Here is the code setting up the environment:
cpython/Lib/test/test_import/__init__.py
Lines 738 to 755 in fd104df
CPython versions tested on:
CPython main branch
Operating systems tested on:
Other
The text was updated successfully, but these errors were encountered: