2023-05-16 21:36:52

I send a new message because strangely the title of the posts does not show the last message I sent.

2023-05-16 22:19:38

O, this.

Follow the instructions in the readme especially the bit about running vendor.py.  If that doesn't work I don't have the bandwidth.  If you send me a PR to add this to CI I'll accept it, however.

My Blog
Twitter: @ajhicks1992

2023-05-16 23:22:12

Well. I followed the procedure described, and almost succeeded in compiling it, however it gives me ERROR: Failed building wheel for synthizer.
Do you know the reason?

**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.5.4
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************

C:\Users\XXX\source\repos>cd \

C:\>cd "C:\synthizer-python"

C:\synthizer-python>pip install .
Processing c:\synthizer-python
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: synthizer
  Building wheel for synthizer (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for synthizer (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [371 lines of output]


      --------------------------------------------------------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
      --------------------------------
      ---------------------------
      ----------------------
      -----------------
      ------------
      -------
      --
      Not searching for unused variables given on the command line.
      -- The C compiler identification is MSVC 19.35.32217.1
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx86/x64/cl.exe - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- The CXX compiler identification is MSVC 19.35.32217.1
      CMake Warning (dev) at C:/Users/XXX/AppData/Local/Temp/pip-build-env-5jkcvv1f/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
        Policy CMP0054 is not set: Only interpret if() arguments as variables or
        keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
        details.  Use the cmake_policy command to set the policy and suppress this
        warning.

        Quoted variables like "MSVC" will no longer be dereferenced when the policy
        is set to NEW.  Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (ENABLE_LANGUAGE)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      CMake Warning (dev) at C:/Users/XXX/AppData/Local/Temp/pip-build-env-5jkcvv1f/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
        Policy CMP0054 is not set: Only interpret if() arguments as variables or
        keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
        details.  Use the cmake_policy command to set the policy and suppress this
        warning.

        Quoted variables like "MSVC" will no longer be dereferenced when the policy
        is set to NEW.  Since the policy is not set the OLD behavior will be used.
      Call Stack (most recent call first):
        CMakeLists.txt:4 (ENABLE_LANGUAGE)
      This warning is for project developers.  Use -Wno-dev to suppress it.

      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.35.32215/bin/Hostx86/x64/cl.exe - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Configuring done (2.9s)
      -- Generating done (0.0s)
      -- Build files have been written to: C:/synthizer-python/_cmake_test_compile/build
      --
      -------
      ------------
      -----------------
      ----------------------
      ---------------------------
      --------------------------------
      -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - success
      --------------------------------------------------------------------------------

      Configuring Project
        Working directory:
          C:\synthizer-python\_skbuild\win32-3.11\cmake-build
        Command:
          'C:\Users\XXX\AppData\Local\Temp\pip-build-env-5jkcvv1f\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\synthizer-python\synthizer-vendored' -G Ninja '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\XXX\AppData\Local\Temp\pip-build-env-5jkcvv1f\overlay\Lib\site-packages\ninja\data\bin\ninja' -D_SKBUILD_FORCE_MSVC=1930 --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\synthizer-python\_skbuild\win32-3.11\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.11.3 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\XXX\AppData\Local\Temp\pip-build-env-5jkcvv1f\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\libs\python311.lib' '-DPython_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\Include' '-DPython_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\libs\python311.lib' '-DPython3_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\Include' '-DPython3_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python311\libs\python311.lib' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\XXX\AppData\Local\Temp\pip-build-env-5jkcvv1f\overlay\Lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DSYZ_INTEGRATING=ON

      Not searching for unused variables given on the command line.
      -- Found C++17 filesystem support
      -- Configuring done (2.2s)
      -- Generating done (0.1s)
      -- Build files have been written to: C:/synthizer-python/_skbuild/win32-3.11/cmake-build
      -- Install configuration: "Release"
      -- Up-to-date: C:/synthizer-python/_skbuild/win32-3.11/cmake-install/lib/synthizer.lib
      [0/1] Install the project...
      running bdist_wheel
      running build
      running build_py
      running egg_info
      writing synthizer.egg-info\PKG-INFO
      writing dependency_links to synthizer.egg-info\dependency_links.txt
      writing top-level names to synthizer.egg-info\top_level.txt
      reading manifest file 'synthizer.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'synthizer-c'
      adding license file 'LICENSE'
      writing manifest file 'synthizer.egg-info\SOURCES.txt'
      copying synthizer\synthizer.cpp -> build\lib.win32-cpython-311\synthizer
      running build_ext
      building 'synthizer.synthizer' extension
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\synthizer-python\synthizer-vendored\include -IC:\Users\XXX\AppData\Local\Programs\Python\Python311\include -IC:\Users\XXX\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" /EHsc /Tpsynthizer/synthizer.cpp /Fobuild\temp.win32-cpython-311\Release\synthizer/synthizer.obj
      synthizer.cpp
      synthizer/synthizer.cpp(51995): warning C4996: 'PyEval_InitThreads': deprecated in 3.9
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x86\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\synthizer-python\_skbuild\win32-3.11\cmake-install\lib /LIBPATH:C:\Users\XXX\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\XXX\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\XXX\AppData\Local\Programs\Python\Python311\PCbuild\win32 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22000.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22000.0\\um\x86" synthizer.lib /EXPORT:PyInit_synthizer build\temp.win32-cpython-311\Release\synthizer/synthizer.obj /OUT:build\lib.win32-cpython-311\synthizer\synthizer.cp311-win_amd64.pyd /IMPLIB:build\temp.win32-cpython-311\Release\synthizer\synthizer.cp311-win_amd64.lib
         Creating library build\temp.win32-cpython-311\Release\synthizer\synthizer.cp311-win_amd64.lib and object build\temp.win32-cpython-311\Release\synthizer\synthizer.cp311-win_amd64.exp
      synthizer.obj : error LNK2001: unresolved external symbol _syz_globalEchoSetTaps
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromStreamParams
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setD
      synthizer.obj : error LNK2001: unresolved external symbol _syz_handleGetUserdata
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBaseObject_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_NewPresized
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setBiquad
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_BufferError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetAttr
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_InternFromString
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCFunction_Type
      synthizer.obj : error LNK2001: unresolved external symbol _syz_sourceRemoveGenerator
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyOS_snprintf
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getD3
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThreadState_Get
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_Exception
      synthizer.obj : error LNK2001: unresolved external symbol _syz_play
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
      synthizer.obj : error LNK2001: unresolved external symbol _syz_automationBatchExecute
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCode_NewEmpty
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_GivenExceptionMatches
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_CallFunction_SizeT
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsUnsignedLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Malloc
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WarnEx
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeWarning
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThreadState_GetFrame
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_PrintEx
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFunction_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFrame_New
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createDirectSource
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsSsize_t
      synthizer.obj : error LNK2001: unresolved external symbol _syz_eventDeinit
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_DeprecationWarning
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getD6
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_SetItem_KnownHash
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_KeyError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_LeaveRecursiveCall
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PySlice_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_ImportModule
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyLong_AsByteArray
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_ImportModuleLevelObject
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_NormalizeException
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SelfIter
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromStreamParams
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromSsize_t
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_DecodeUTF8
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Remainder
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GenericGetAttr
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setD3
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_AsUTF8AndSize
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTraceBack_Here
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_SaveThread
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createGlobalEcho
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethod_New
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getLastErrorCode
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetAttrString
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_UnTrack
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Hash
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_UnboundLocalError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetNone
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyInterpreterState_GetID
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromUnsignedLongLong
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromStreamHandle
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createScalarPannedSource
      synthizer.obj : error LNK2001: unresolved external symbol _syz_handleDecRef
      synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_GetVersion
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_allocate_lock
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetAttr
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromOrdinal
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_AsDouble
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsUnsignedLongLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_FromString
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyRun_StringFlags
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGILState_Release
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_AsStringAndSize
      synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsLongLong
      synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignHighpass
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PySequence_Contains
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getI
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_SetItemString
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Size
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromLongLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_acquire_lock
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_FromDouble
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromStreamHandle
      synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignBandpass
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_AttributeError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_GetSlice
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Multiply
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ZeroDivisionError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WriteUnraisable
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetIter
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Add
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WarnFormat
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getD
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyIter_Send
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ValueError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromUnsignedLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Next
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Type
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromEncodedData
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_RichCompare
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBool_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_FalseStruct
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCoro_Type
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createAngularPannedSource
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_InPlaceAdd
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyLong_FromByteArray
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModule_NewObject
      synthizer.obj : error LNK2001: unresolved external symbol _syz_pause
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethod_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_IsSubtype
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Restore
      synthizer.obj : error LNK2001: unresolved external symbol _syz_registerStreamProtocol
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_OverflowError
      synthizer.obj : error LNK2001: unresolved external symbol _syz_contextGetNextEvent
      synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_Dealloc
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_GetItem
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_GetModuleDict
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModule_GetDict
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Free
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createContext
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_ExceptionMatches
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_release_lock
      synthizer.obj : error LNK2001: unresolved external symbol _syz_initRouteConfig
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_Del
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Fetch
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallFunctionObjArgs
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsLong
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDescr_IsData
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_ClearWeakRefs
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Init
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Not
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_AsUTF8
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromFormat
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetBuffer
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_InPlaceMultiply
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PySlice_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_IsFinalized
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_AddModule
      synthizer.obj : error LNK2001: unresolved external symbol _syz_automationBatchAddCommands
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Ready
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetAttrString
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createGlobalFdnReverb
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Clear
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_Type
      synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignLowpass
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromFloatArray
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_RichCompareBool
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Decode
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyWrapperDescr_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyException_SetTraceback
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GenericGetAttrWithDict
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GenericSetAttr
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_SetItem
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_New
      synthizer.obj : error LNK2001: unresolved external symbol _syz_contextEnableEvents
      synthizer.obj : error LNK2001: unresolved external symbol _syz_getLastErrorMessage
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_free_lock
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallFinalizerFromDealloc
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_GetItem_KnownHash
      synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetSizeInBytes
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsInstance
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Index
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Free
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_StopIteration
      synthizer.obj : error LNK2001: unresolved external symbol _syz_shutdown
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCMethod_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyGen_SetStopIterationValue
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_NoMemory
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_GetItemString
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createAutomationBatch
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetItem
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallObject
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_InitThreads
      synthizer.obj : error LNK2001: unresolved external symbol _syz_routingRemoveRoute
      synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetLengthInSeconds
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModuleDef_Init
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyIndex_Check
      synthizer.obj : error LNK2001: unresolved external symbol _syz_routingConfigRoute
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_Track
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_FromStringAndSize
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_NotImplementedError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGILState_Ensure
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setI
      synthizer.obj : error LNK2001: unresolved external symbol _syz_handleSetUserdata
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_DelItem
      synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetLengthInSamples
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromStreamParams
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setD6
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Compare
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_StopAsyncIteration
      synthizer.obj : error LNK2001: unresolved external symbol _syz_initDeleteBehaviorConfig
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetExcInfo
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsSubclass
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromFile
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_TypeError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Realloc
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsTrue
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Copy
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_NameError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_Pack
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyByteArray_empty_string
      synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_OptimizeFlag
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyUnicode_Ready
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Malloc
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_AsTuple
      synthizer.obj : error LNK2001: unresolved external symbol _syz_libraryConfigSetDefaults
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_IndexError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_EnterRecursiveCall
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createNoiseGenerator
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ImportError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGen_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_TrueStruct
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyArg_UnpackTuple
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_DecodeASCII
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_SystemError
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyUnicode_FastCopyCharacters
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_AssertionError
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetItem
      synthizer.obj : error LNK2001: unresolved external symbol _syz_sourceAddGenerator
      synthizer.obj : error LNK2001: unresolved external symbol _syz_initializeWithConfig
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GC_New
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyException_SetCause
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromMemory
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Modified
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyAsyncGen_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTraceBack_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethodDescr_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_GeneratorExit
      synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetChannels
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_GetExcInfo
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyList_Extend
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createSource3D
      synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignIdentity
      synthizer.obj : error LNK2001: unresolved external symbol _syz_setO
      synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_FatalErrorFunc
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromFile
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromString
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferGenerator
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyType_Lookup
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Format
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Size
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBuffer_Release
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Call
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyByteArray_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Float
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromCustomStream
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PySequence_Tuple
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_RestoreThread
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_DelItem
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromStringAndSize
      synthizer.obj : error LNK2001: unresolved external symbol _syz_configDeleteBehavior
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromFile
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GetDictPtr
      synthizer.obj : error LNK2001: unresolved external symbol _syz_effectReset
      build\lib.win32-cpython-311\synthizer\synthizer.cp311-win_amd64.pyd : fatal error LNK1120: 274 unresolved externals
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for synthizer
Failed to build synthizer
ERROR: Could not build wheels for synthizer, which is required to install pyproject.toml-based projects

C:\synthizer-python>

2023-05-17 00:09:28

You're giving me the absolutely least helpful part of the logs every time you ask for help here.  You should invest some time to read them and figure out which bits are actually important.  You shouldn't have needed me to tell you that the problem with the last one is it says a directory is missing, either.

My Blog
Twitter: @ajhicks1992

2023-05-17 00:28:37

In this last log that I sent you it says that a directory is missing? If you want to tell me which, or how to copy the logs in a more useful way let me know.

2023-05-17 10:23:21

This time, I think the problem is that you're trying to compile synthizer for a newer python version than what it supports, therefore it gives you the symbol not found errors. At the minimum, you should check around in pyproject.toml and related files, __setup__.py and so on, to see how exactly the files are build and with what are they linked. Since from what I read in the logs, synthizer itself builds...kinda, it's possible that the build scripts try to link to newer python versions, but with the old ABI specs from the version it was originally built with, messing up synthizer linking as well eventually. Since most of the symbols begin with imp or a variation of it, I presume there could be another issue with c++ mangling changing because of an added option, changed compiler version and so on, so now the linker can't find what it's supposed to find, if that makes sense. Here's why I think this, even though I don't have enough time to digg in the python sources rn, plus I dk much python. It's because of the huge amount of linker error messages at the end of the logs, they are like this:

```
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Size
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBuffer_Release
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Call
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyByteArray_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Float
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromCustomStream
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PySequence_Tuple
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_RestoreThread
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_DelItem
      synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromStringAndSize
      synthizer.obj : error LNK2001: unresolved external symbol _syz_configDeleteBehavior
      synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromFile
      synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GetDictPtr
      synthizer.obj : error LNK2001: unresolved external symbol _syz_effectReset
```

for more error messages like those, scroll upward. Yes, when reporting such errors, the poster has to indeed know what to extract from those logs, or at least make chat gpt summarise it, highlighting the actual problematic stuff, to stand out from the noise, if nothing else. But yeah, I never got that issue before on linux, not using python though. I'll try to build the wheel later this weekend and see if there isn't something silly stupid going on that I know enough CI for to fix, but we'll see.

2023-05-17 14:01:55

@931 Thanks. If you want, could you compile it for Python 3.11 for Windows? From what you have explained to me, it is not exactly simple, and I have no experience in this area.
Once compiled you could put it temporarily on links like easyupload.io etc, if the file is very large.

2023-05-17 17:32:39

In theory Synthizer supports 3.11. I just haven't produced wheels for it because it's unmaintained.

Read the GitHub workflow script and see if you're matching that.

I've seen the __imp thing before but it's been a year, wasn't for Python, and I don't remember how to fix it.  It's some sort of MSVC runtime mismatch issue, I believe.

My Blog
Twitter: @ajhicks1992

2023-05-17 23:08:49

update: I just compiled on linux, I see nothing wrong here, the wheel builds. I can't build for windows because I don't currently have windows machines around, plus if I were to start a vm, I'd be here counting build minutes because of how slow it'd move, I don't have very good hardware after all. Yep, as camlorn said, it's a windows edgecase or issue or whatever, fortunately though, I never saw that one before. Will do some more digging around when I get to a windows computer that's not throttled like this vm thing usually is. Djudging by how I know msvc to be, the problem will most likely be thorny and obscure, weird edge cases which only us seemn to hit, etc. Speaking of which, did you try compiling with clang on windows? that, as well as the llvm linker, usually gives better diagnostics

2023-05-18 00:22:24

@934 I've also tried compiling it using Clang, however no better luck. I write you the steps I followed, and at the end I copy the log, of which I apologize for the length, however even gpt chat cannot help me summarize it, as it is too long, and if I copy it it tells me that the message is too long for him.
-First of all I cloned the project like this:
git clone --recursive https://github.com/synthizer/synthizer-python
- From the root of the repo,
python synthizer-c/vendor.py synthizer-vendored
- Then I've installed required packages for compiling the wheel:
pip install ninja cmake wheel tomli setuptools packaging distro Cython scikit-build
And then
python setup.py sdist bdist_wheel --universal --compiler=clang




--------------------------------------------------------------------------------
-- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- The C compiler identification is MSVC 19.36.32532.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.36.32532.0
CMake Warning (dev) at C:/Users/XXX/AppData/Local/Programs/Python/Python310/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Users/XXX/AppData/Local/Programs/Python/Python310/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.36.32532/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (2.1s)
-- Generating done (0.0s)
-- Build files have been written to: C:/synthizer-python/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - success
--------------------------------------------------------------------------------

Configuring Project
  Working directory:
    C:\synthizer-python\_skbuild\win-amd64-3.10\cmake-build
  Command:
    'C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\cmake\data\bin/cmake.exe' 'C:\synthizer-python\synthizer-vendored' -G Ninja '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\ninja\data\bin\ninja' -D_SKBUILD_FORCE_MSVC=1930 --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\synthizer-python\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.4 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\Include' '-DPython_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\Include' '-DPython3_LIBRARY:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\libs\python310.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\numpy\core\include' '-DCMAKE_MAKE_PROGRAM:FILEPATH=C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\ninja\data\bin\ninja' -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE -DSYZ_INTEGRATING=ON

Not searching for unused variables given on the command line.
-- Found C++17 filesystem support
-- Configuring done (1.9s)
-- Generating done (0.1s)
-- Build files have been written to: C:/synthizer-python/_skbuild/win-amd64-3.10/cmake-build
[1/26] Building C object CMakeFiles\synthizer_single_file_libs.dir\src\single_file_libs.c.obj
FAILED: CMakeFiles/synthizer_single_file_libs.dir/src/single_file_libs.c.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio /DWIN32 /D_WINDOWS /O2 /Ob2 /DNDEBUG -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /showIncludes /FoCMakeFiles\synthizer_single_file_libs.dir\src\single_file_libs.c.obj /FdCMakeFiles\synthizer_single_file_libs.dir\ /FS -c C:\synthizer-python\synthizer-vendored\src\single_file_libs.c
C:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs\dr_flac.h(238): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
[2/26] Building CXX object CMakeFiles\synthizer.dir\src\audio_output.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/audio_output.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\audio_output.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\audio_output.cpp
C:\synthizer-python\synthizer-vendored\src\audio_output.cpp(1): fatal error C1083: Cannot open include file: 'algorithm': No such file or directory
[3/26] Building CXX object CMakeFiles\synthizer.dir\src\decoding.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/decoding.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\decoding.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\decoding.cpp
C:\synthizer-python\synthizer-vendored\src\decoding.cpp(1): fatal error C1083: Cannot open include file: 'algorithm': No such file or directory
[4/26] Building CXX object CMakeFiles\synthizer.dir\src\c_api\unity.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/c_api/unity.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\c_api\unity.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\c_api\unity.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/error.hpp(4): fatal error C1083: Cannot open include file: 'exception': No such file or directory
[5/26] Building CXX object CMakeFiles\synthizer.dir\src\base_object.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/base_object.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\base_object.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\base_object.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/error.hpp(4): fatal error C1083: Cannot open include file: 'exception': No such file or directory
[6/26] Building CXX object CMakeFiles\synthizer.dir\src\byte_stream.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/byte_stream.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\byte_stream.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\byte_stream.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/byte_stream.hpp(3): fatal error C1083: Cannot open include file: 'cstddef': No such file or directory
[7/26] Building CXX object CMakeFiles\synthizer.dir\src\error.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/error.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\error.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\error.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/error.hpp(4): fatal error C1083: Cannot open include file: 'exception': No such file or directory
[8/26] Building CXX object CMakeFiles\synthizer.dir\src\event_timeline.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/event_timeline.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\event_timeline.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\event_timeline.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/cells.hpp(3): fatal error C1083: Cannot open include file: 'array': No such file or directory
[9/26] Building CXX object CMakeFiles\synthizer.dir\src\context.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/context.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\context.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\context.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/audio_output.hpp(3): fatal error C1083: Cannot open include file: 'atomic': No such file or directory
[10/26] Building CXX object CMakeFiles\synthizer.dir\src\events.cpp.obj
FAILED: CMakeFiles/synthizer.dir/src/events.cpp.obj
C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1436~1.325\bin\Hostx86\x64\cl.exe  /nologo /TP -DBUILDING_SYNTHIZER -DNOMINMAX -DSYZ_MAJOR=0 -DSYZ_MINOR=1 -DSYZ_PATCH=9 -DSYZ_USE_FILESYSTEM -DWDL_RESAMPLE_TYPE=float -IC:\synthizer-python\synthizer-vendored\include -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\wdl -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\boost_partial -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\concurrentqueue -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\cpp11-on-multicore\common -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\dr_libs -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\hedley -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\miniaudio -IC:\synthizer-python\synthizer-vendored\deps\deps\third_party\pdqsort /DWIN32 /D_WINDOWS /GR /EHsc /O2 /Ob2 /DNDEBUG -std:c++17 -MT /wd4068 /wd5030 /wd4244 /wd4267 /Zc:preprocessor /wd5105 /wd4127 /experimental:external /external:W0 /external:anglebrackets /wd4702 /W4 /WX /showIncludes /FoCMakeFiles\synthizer.dir\src\events.cpp.obj /FdCMakeFiles\synthizer.dir\synthizer.pdb /FS -c C:\synthizer-python\synthizer-vendored\src\events.cpp
C:\synthizer-python\synthizer-vendored\include\synthizer/error.hpp(4): fatal error C1083: Cannot open include file: 'exception': No such file or directory
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "C:\synthizer-python\setup.py", line 48, in <module>
    cmake.make()
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\skbuild\cmaker.py", line 697, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\skbuild\cmaker.py", line 742, in make_impl
    raise SKBuildError(msg)
skbuild.exceptions.SKBuildError: An error occurred while building with CMake.
  Command:
    'C:\Users\XXX\AppData\Local\Programs\Python\Python310\lib\site-packages\cmake\data\bin/cmake.exe' --build . --target install --config Release --
  Install target:
    install
  Source directory:
    C:\synthizer-python
  Working directory:
    C:\synthizer-python\_skbuild\win-amd64-3.10\cmake-build
Please check the install target is valid and see CMake's output for more information.


C:\synthizer-python>

2023-05-18 07:30:08 (edited by bgt lover 2023-05-18 07:35:13)

first, missing directories again. Second, dk if you were using clang or not, but the build process sure didn't, it still used msvc. Try running the following commands instead. This sets the cc and cxx environment variables to clang, then passes the compiler option as unix because that's originally a unix specific override, but I think it should work in windows too
   set CC=clang
   set CXX=clang++
python setup.py sdist bdist_wheel --compiler=unix
Of course, make sure you have the clang bin directory in your path, otherwise clang and clang++ can't be found, you know how it goes

2023-05-18 12:09:55

@936. No, so it even gives me the error that it can't find Visual Studio Community. And rest assured that it's installed, that I've also added it to the path, and I've also added clang and clang++ to the path. I also tried the command from the visual studio community command prompt and it gives the same error.
In my path I put
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang.exe
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe
C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE
But despite this with your instructions it gives me this error:

Traceback (most recent call last):
File "C:\synthizer-python\setup.py", line 38, in <module>
cmake.configure(
File "C:\Users\Ambro\AppData\Local\Programs\Python\Python310\lib\site-packages\skbuild\cmaker.py", line 238, in config
ure
generator = self.platform.get_best_generator(
File "C:\Users\Ambro\AppData\Local\Programs\Python\Python310\lib\site-packages\skbuild\platform_specifics\abstract.py"
, line 183, in get_best_generator
raise SKBuildGeneratorNotFoundError(msg)
skbuild.exceptions.SKBuildGeneratorNotFoundError: ******************************************************
**************************
scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.10 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2019":

https://visualstudio.microsoft.com/vs/

Or with "Visual Studio 2022":

https://visualstudio.microsoft.com/vs/

2023-05-18 15:26:18

If you have manually edited your path to contain visual studio directories rather than always running things from the correct VC++ developer command prompt, you've basically borked your setup in general.

The Python bindings compile with MSVC.  So does Synthizer itself.  This has always been the case.

If you want to try clang you need to point it at clang-cl.exe for both C and C++, not clang and clang++.  While Synthizer itself compiles with both, I highly doubt that the Python bindings would.  Don't tell setup.py that the compiler is linux, that's not how this works at all.

My Blog
Twitter: @ajhicks1992

2023-05-18 16:00:23

Thank you. Yes, I always execute the instructions by launching the Developer Command Prompt for VS 2022 from start.
I had also tried to insert the path of the Visual Studio community in the path to try to solve the error it gave me, i.e. that it couldn't find the visual Studio Community, but probably, as you said, it wasn't the correct command.
Following the procedure described in the readme, it gives me the error that I copy you. I cut out several parts, leaving what is really important.
The essence of the error is this:
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
And then there are a myriad of such error lines
synthizer.obj : error LNK2001: unresolved external symbol _syz_globalEchoSetTaps
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromStreamParams
synthizer.obj : error LNK2001: unresolved external symbol _syz_setD
Ecc.




   Creating library build\temp.win32-cpython-310\Release\synthizer\synthizer.cp310-win_amd64.lib and object build\temp.win32-cpython-310\Release\synthizer\synthizer.cp310-win_amd64.exp
synthizer.obj : error LNK2001: unresolved external symbol _syz_globalEchoSetTaps
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromStreamParams
synthizer.obj : error LNK2001: unresolved external symbol _syz_setD
synthizer.obj : error LNK2001: unresolved external symbol _syz_handleGetUserdata
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBaseObject_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_NewPresized
synthizer.obj : error LNK2001: unresolved external symbol _syz_setBiquad
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_BufferError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetAttr
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_InternFromString
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCFunction_Type
synthizer.obj : error LNK2001: unresolved external symbol _syz_sourceRemoveGenerator
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyOS_snprintf
synthizer.obj : error LNK2001: unresolved external symbol _syz_getD3
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThreadState_Get
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_Exception
synthizer.obj : error LNK2001: unresolved external symbol _syz_play
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetObject
synthizer.obj : error LNK2001: unresolved external symbol _syz_automationBatchExecute
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCode_NewEmpty
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_GivenExceptionMatches
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_CallFunction_SizeT
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsUnsignedLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Malloc
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WarnEx
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeWarning
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_PrintEx
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFunction_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFrame_New
synthizer.obj : error LNK2001: unresolved external symbol _syz_createDirectSource
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsSsize_t
synthizer.obj : error LNK2001: unresolved external symbol _syz_eventDeinit
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_DeprecationWarning
synthizer.obj : error LNK2001: unresolved external symbol _syz_getD6
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_SetItem_KnownHash
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_KeyError
synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_LeaveRecursiveCall
synthizer.obj : error LNK2001: unresolved external symbol __imp__PySlice_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_ImportModule
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyLong_AsByteArray
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_ImportModuleLevelObject
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_NormalizeException
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SelfIter
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromStreamParams
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Occurred
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromSsize_t
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_DecodeUTF8
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Remainder
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GenericGetAttr
synthizer.obj : error LNK2001: unresolved external symbol _syz_setD3
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTraceBack_Here
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_SaveThread
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyThreadState_UncheckedGet
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_RuntimeError
synthizer.obj : error LNK2001: unresolved external symbol _syz_createGlobalEcho
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethod_New
synthizer.obj : error LNK2001: unresolved external symbol _syz_getLastErrorCode
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetAttrString
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_UnTrack
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Hash
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_UnboundLocalError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetNone
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyInterpreterState_GetID
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromUnsignedLongLong
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromStreamHandle
synthizer.obj : error LNK2001: unresolved external symbol _syz_createScalarPannedSource
synthizer.obj : error LNK2001: unresolved external symbol _syz_handleDecRef
synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_GetVersion
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_allocate_lock
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetAttr
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromOrdinal
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_AsDouble
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsUnsignedLongLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_FromString
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyRun_StringFlags
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGILState_Release
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_AsStringAndSize
synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_NoneStruct
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsLongLong
synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignHighpass
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PySequence_Contains
synthizer.obj : error LNK2001: unresolved external symbol _syz_getI
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_SetItemString
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Size
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromLongLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_acquire_lock
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_FromDouble
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromStreamHandle
synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignBandpass
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_AttributeError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_GetSlice
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Multiply
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_SetString
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ZeroDivisionError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WriteUnraisable
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetIter
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Add
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_WarnFormat
synthizer.obj : error LNK2001: unresolved external symbol _syz_getD
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyIter_Send
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ValueError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_FromUnsignedLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Next
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Format
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Type
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromEncodedData
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_RichCompare
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBool_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_FalseStruct
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCoro_Type
synthizer.obj : error LNK2001: unresolved external symbol _syz_createAngularPannedSource
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_InPlaceAdd
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyFloat_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyLong_FromByteArray
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModule_NewObject
synthizer.obj : error LNK2001: unresolved external symbol _syz_pause
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethod_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_IsSubtype
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Restore
synthizer.obj : error LNK2001: unresolved external symbol _syz_registerStreamProtocol
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_OverflowError
synthizer.obj : error LNK2001: unresolved external symbol _syz_contextGetNextEvent
synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_Dealloc
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_GetItem
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_GetModuleDict
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModule_GetDict
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Free
synthizer.obj : error LNK2001: unresolved external symbol _syz_createContext
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_ExceptionMatches
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_release_lock
synthizer.obj : error LNK2001: unresolved external symbol _syz_initRouteConfig
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_Del
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Fetch
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallFunctionObjArgs
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyLong_AsLong
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDescr_IsData
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_ClearWeakRefs
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Init
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Not
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_AsUTF8
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromFormat
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetBuffer
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_InPlaceMultiply
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PySlice_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_IsFinalized
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyImport_AddModule
synthizer.obj : error LNK2001: unresolved external symbol _syz_automationBatchAddCommands
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Ready
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetAttrString
synthizer.obj : error LNK2001: unresolved external symbol _syz_createGlobalFdnReverb
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_Clear
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_Append
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_Type
synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignLowpass
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromFloatArray
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_RichCompareBool
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Decode
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyWrapperDescr_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCode_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyException_SetTraceback
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCapsule_New
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GenericGetAttrWithDict
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GenericSetAttr
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_SetItem
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_New
synthizer.obj : error LNK2001: unresolved external symbol _syz_contextEnableEvents
synthizer.obj : error LNK2001: unresolved external symbol _syz_getLastErrorMessage
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyThread_free_lock
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallFinalizerFromDealloc
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyDict_GetItem_KnownHash
synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetSizeInBytes
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsInstance
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Index
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Free
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_StopIteration
synthizer.obj : error LNK2001: unresolved external symbol _syz_shutdown
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyCMethod_New
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyGen_SetStopIterationValue
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyErr_NoMemory
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_GetItemString
synthizer.obj : error LNK2001: unresolved external symbol _syz_createAutomationBatch
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GetItem
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_CallObject
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_InitThreads
synthizer.obj : error LNK2001: unresolved external symbol _syz_routingRemoveRoute
synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetLengthInSeconds
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyModuleDef_Init
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyIndex_Check
synthizer.obj : error LNK2001: unresolved external symbol _syz_routingConfigRoute
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_GC_Track
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBytes_FromStringAndSize
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_NotImplementedError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGILState_Ensure
synthizer.obj : error LNK2001: unresolved external symbol _syz_setI
synthizer.obj : error LNK2001: unresolved external symbol _syz_handleSetUserdata
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_DelItem
synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetLengthInSamples
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromStreamParams
synthizer.obj : error LNK2001: unresolved external symbol _syz_setD6
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Compare
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_StopAsyncIteration
synthizer.obj : error LNK2001: unresolved external symbol _syz_initDeleteBehaviorConfig
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsSubclass
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamingGeneratorFromFile
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_TypeError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Realloc
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_IsTrue
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyDict_Copy
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_NameError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTuple_Pack
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyByteArray_empty_string
synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_OptimizeFlag
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyUnicode_Ready
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMem_Malloc
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyList_AsTuple
synthizer.obj : error LNK2001: unresolved external symbol _syz_libraryConfigSetDefaults
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_IndexError
synthizer.obj : error LNK2001: unresolved external symbol __imp__Py_EnterRecursiveCall
synthizer.obj : error LNK2001: unresolved external symbol _syz_createNoiseGenerator
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_ImportError
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyGen_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_TrueStruct
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyArg_UnpackTuple
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_DecodeASCII
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_SystemError
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyUnicode_FastCopyCharacters
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_SetItem
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_AssertionError
synthizer.obj : error LNK2001: unresolved external symbol _syz_sourceAddGenerator
synthizer.obj : error LNK2001: unresolved external symbol _syz_initializeWithConfig
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GC_New
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyException_SetCause
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromMemory
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Modified
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyAsyncGen_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyTraceBack_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyMethodDescr_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyExc_GeneratorExit
synthizer.obj : error LNK2001: unresolved external symbol _syz_bufferGetChannels
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyList_Extend
synthizer.obj : error LNK2001: unresolved external symbol _syz_createSource3D
synthizer.obj : error LNK2001: unresolved external symbol _syz_biquadDesignIdentity
synthizer.obj : error LNK2001: unresolved external symbol _syz_setO
synthizer.obj : error LNK2001: unresolved external symbol __imp___Py_FatalErrorFunc
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferFromFile
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromString
synthizer.obj : error LNK2001: unresolved external symbol _syz_createBufferGenerator
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyType_Lookup
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_Format
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Size
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyBuffer_Release
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_Call
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyByteArray_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyNumber_Float
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromCustomStream
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyType_Type
synthizer.obj : error LNK2001: unresolved external symbol __imp__PySequence_Tuple
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyEval_RestoreThread
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyObject_DelItem
synthizer.obj : error LNK2001: unresolved external symbol __imp__PyUnicode_FromStringAndSize
synthizer.obj : error LNK2001: unresolved external symbol _syz_configDeleteBehavior
synthizer.obj : error LNK2001: unresolved external symbol _syz_createStreamHandleFromFile
synthizer.obj : error LNK2001: unresolved external symbol __imp___PyObject_GetDictPtr
synthizer.obj : error LNK2001: unresolved external symbol _syz_effectReset
build\lib.win32-cpython-310\synthizer\synthizer.cp310-win_amd64.pyd : fatal error LNK1120: 272 unresolved externals
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120

2023-05-18 17:06:36

As I have said, though, it is unmaintained.  Someone else is going to need to take it from here. As I have also said, if someone sends me a PR that gets it working with GitHub actions, I will land it.  That may be as simple as slight tweaks to the config, or more involved, I don't know.

If you can't fix it and no one else wants to step in, then regrettably at this point I will need to take a hard line on the fact that it is unmaintained.  Good luck.  Send me a patch if you figure out that it's not just your environment.  I know this probably isn't what you want to hear, but I've warned about this for a long time and asked for help and I'm not going to play a game of "well really I still do stuff if something critical comes up".  The community can either step up or show they don't care.

My Blog
Twitter: @ajhicks1992

2023-05-18 17:12:46

Ok, thanks for your answer. So at this point if BgtLover or others want to try it on Windows, to be sure it's not just a bug on my system, that would be a step forward.

2023-05-19 03:55:31

Not sure if this is coincidence or if someone saw this thread, but: https://github.com/synthizer/synthizer-python/pull/17

So you'll have that in a few days, and being as the CI change is just updating the matrix it is likely that it's your environment that is broken in any case.

My Blog
Twitter: @ajhicks1992

2023-05-19 07:14:22

Great Camlorn, good news. Can you notify me when it will be put on pip?

2023-05-21 01:53:43

Python 3.11 wheels are live.

My Blog
Twitter: @ajhicks1992

2023-05-21 09:35:11

Thank you. I did some tests of Synthizer with Python 3.11 and everything works fine. Really good this Tcode user, who also updated Synthizer for Linux. I hope it continues also for the next versions. Thanks to his help I was able to compile the wheel on my system, but I don't know if I would be able to contribute. But I will definitely try.

2023-05-22 13:26:59

If anyone is interested Synthizer will also be compatible with Python 3.12, unless in a few months the Python ones break something. In fact I downloaded a prebuild of this version, which will be released around October, and I was able to compile a Wheel for this version.

2023-05-22 14:33:19

Thanks for keeping it up to date.

best regards
never give up on what ever you are doing.

2023-05-22 16:41:44

I really do feel obliged to point out that the entire thing here in the pr was just adding something to the CI build matrix, and that the source version of Synthizer was fine.  It should be the case that pip install synthizer on 3.11 picked up the sdist and built it.  If this isn't the case someone else can send a PR.  But the real problem as far as I know is broken C/C++ envs.

My Blog
Twitter: @ajhicks1992

2023-07-26 18:53:37

Hello.
please tell me why if I play the sound.ogg via sndfile, then the sound is played twice?

2023-07-26 19:47:13

Because libsndfile has a bug and you grabbed the version from github. Just use mp3.  I believe I put correct links in the manual if you are really going to insist on trying to get libsndfile to work, but it's not my fault.

My Blog
Twitter: @ajhicks1992