You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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? #229
This issue is not a duplicate. Before opening a new issue, please search existing issues.
This issue is not a question, feature request, or anything other than a bug report directly related to this project.
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
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?
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?
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
Activity
Rad-hi commentedon Oct 31, 2023
Hello @zhangYQHBAU,
I think I encountered the same issue, and if it's the same as mine, the actual error is not
c_POSITION_TYPEnot 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 thatpyzed/sl_c.pxdwasn't found bypyzed/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, toStringAnd add before it:
Hopefully this would solve it for you.