marek-simonik / record3d

Accompanying library for the Record3D iOS app (https://record3d.app/). Allows you to receive RGBD stream from iOS devices with TrueDepth camera(s).
https://record3d.app/
GNU Lesser General Public License v2.1
379 stars 55 forks source link

Install error for Record3D python package for Win1, Python 3.10 #47

Closed qxray closed 1 year ago

qxray commented 1 year ago

During installation of the latest revision for Record3D python streaming I get an error when compiling Record3DStream.cpp: [...]\record3d\python-bindings\pybind11\include\pybind11\cast.h(442,36): error C2027: use of undefined type '_frame' [[...]\record3d\build\temp.win-amd64-cpython-311\Release\record3d_py.vcxproj] C:\Python\Python311\include\pytypedefs.h(22): message : see declaration of '_frame' [C[...]\record3d\build\temp.win-am d64-cpython-311\Release\record3d_py.vcxproj]

Any hints what could be the reason?

marek-simonik commented 1 year ago

Thanks for spotting this. Based on the error output, it looks like you are using Python 3.11 and the error seems to be related to interoperability of Python 3.11 with the (outdated) headers of pybind11 in this directory https://github.com/marek-simonik/record3d/tree/master/python-bindings/pybind11

I fixed the error by updating the pybind11 headers to version 20.10.1 and I also updated the PyPI record3d package (updated the source code for version 1.3.1 and uploaded a new wheel distribution for Python 3.11 for Windows).

Can you please confirm you were able to install the record3d library now?

marek-simonik commented 1 year ago

I assume you were eventually able to get the Python demo to work after I updated pybind11 and uploaded a new Windows pip package. Feel free to reopen this issue if you still experience the same error.