Open zhangYQHBAU opened 10 months ago
Hello @zhangYQHBAU,
I think I encountered the same issue, and if it's the same as mine, the actual error is not c_POSITION_TYPE
not being a type identifier. In fact, if you scroll to the top of the long list of errors (quite too long), you would find out that the actual error is that pyzed/sl_c.pxd
wasn't found by pyzed/sl.pyx
.
The way to test whether this is the actual error or not, is to go to pyzed/sl.pyx
, to this line:
zed-python-api/src/pyzed/sl.pyx::28:: from sl_c cimport ( String, to_str, Camera as c_Camera, ERROR_CODE as c_ERROR_CODE, toString
And add before it:
import sys
sys.path.append('/PATH-TO-ZED-API-LOCATION/zed-python-api/src')
from pyzed.sl_c cimport ( String, to_str, Camera as c_Camera, ERROR_CODE as c_ERROR_CODE, toString
Hopefully this would solve it for you.
Preliminary Checks
Description
When installing on an ubuntu system, the command used when compiling is: python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem?
Steps to Reproduce
When installing on an ubuntu system, the command used when compiling is: python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem?
Expected Result
When installing on an ubuntu system, the command used when compiling is: python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem?
Actual Result
When installing on an ubuntu system, the command used when compiling is: python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem?
ZED Camera model
ZED
Environment
Anything else?
When installing on an ubuntu system, the command used when compiling is: python 3 setup. py build, display error: pyzed/sl. pyx: 10455:161 "c_position_type" is not a type identifier, how to solve this problem?