[Python API] Error installing python API

3 posts / 0 new
Last post
Offline
Last seen: 1 year 5 months ago
Joined: 11/23/2021
Posts: 32
[Python API] Error installing python API

Hello @all,

when installing the python api using the command C:\Python311\python.exe configure.py x64Win64VS2017 I always get the following error code:


        File "<string>", line 221, in run
        File "c:\python311\Lib\subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['C:\\Users\\\AppData\\Local\\Temp\\pip-build-env-0l2hofar\\overlay\\Lib\\site-packages\\cmake\\data\\bin\\cmake', '--build', '.', '--config', 'Release', '--', '/p:CL_MPcount=1']' returned non-zero exit status 1.
      [end of output]

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

 

Has anyobdy any idea what I can do?

Thanks in advance! Regards,

Marc

Offline
Last seen: 2 months 1 week ago
Joined: 04/02/2013
Posts: 196

The API is currently supported with Python 3.6-3.10, but it is possible to make it work with Python 3.11. You just need to install a newer version of pybind11 before building the API:

pip install pybind11==2.10.1 

Offline
Last seen: 1 year 5 months ago
Joined: 11/23/2021
Posts: 32

Thanks, alexc for the reply!

Switching to Python Version 3.10.9 and installing pybind 2.10.3 fixed the issue.

Regards,

Marc