InsightSoftwareConsortium / ITKCLEsperanto

ITK filters accelerated with OpenCL via [clEsperanto](https://clesperanto.github.io/).
Apache License 2.0
4 stars 3 forks source link

Windows Python Wheel Repair Failure #32

Closed tbirdso closed 2 years ago

tbirdso commented 2 years ago
Traceback (most recent call last):
repairing D:\a\im\dist\itk_clesperanto-0.2.0-cp37-cp37m-win_amd64.whl
  File "C:\Python37-x64\lib\runpy.py", line 193, in _run_module_as_main
finding DLL dependencies
    "__main__", mod_spec)
  File "C:\Python37-x64\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\P\IPP\venv-37-x64\Scripts\delvewheel.exe\__main__.py", line 7, in <module>
  File "C:\P\IPP\venv-37-x64\lib\site-packages\delvewheel\__main__.py", line 67, in main
    wr.repair(args.target, no_mangles, args.no_mangle_all, args.lib_sdir)
  File "C:\P\IPP\venv-37-x64\lib\site-packages\delvewheel\wheel_repair.py", line 436, in repair
    discovered, ignored = patch_dll.get_all_needed(extension_module_path, self._no_dlls, self._wheel_dirs, 'raise', self._verbose)[:2]
  File "C:\P\IPP\venv-37-x64\lib\site-packages\delvewheel\patch_dll.py", line 294, in get_all_needed
    raise FileNotFoundError(f'Unable to find library: {dll_name}')
FileNotFoundError: Unable to find library: opencl.dll
SCRIPT_DIR: C:\P\IPP\scripts
ROOT_DIR: D:\a\im

Python3_EXECUTABLE: C:\P\IPP\venv-37-x64\Scripts\python.exe
Python3_INCLUDE_DIR: C:/Python37-x64/include
Python3_LIBRARY: C:/Python37-x64/libs/python37.lib
NINJA_EXECUTABLE:D:\a\_temp\-1645359103\ninja.exe
ITKDIR: C:\P\IPP\ITK-win_37-x64
Library paths for fixup: C:/P/IPP/oneTBB-prefix/bin
Traceback (most recent call last):
  File "C:\P\IPP\scripts\windows_build_module_wheels.py", line 142, in <module>
    fixup_wheels(args.py_envs, ';'.join(args.lib_paths), ';'.join(args.exclude_libs))
  File "C:\P\IPP\scripts\windows_build_module_wheels.py", line 129, in fixup_wheels
    fixup_wheel(py_envs, wheel, lib_paths, exclude_libs)
  File "C:\P\IPP\scripts\windows_build_module_wheels.py", line 119, in fixup_wheel
    os.path.join(ROOT_DIR, "dist"), filepath])
  File "C:\Python37-x64\lib\subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:/P/IPP\\venv-37-x64\\Scripts\\delvewheel.exe', 'repair', '--no-mangle-all', '--add-path', 'C:/P/IPP/oneTBB-prefix/bin', '--no-dll', '', '--ignore-in-wheel', '-w', 'D:\\a\\im\\dist', 'D:\\a\\im\\dist\\itk_clesperanto-0.2.0-cp37-cp37m-win_amd64.whl']' returned non-zero exit status 1.