Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
zhangYQHBAU opened this issue Oct 28, 2023 · 1 comment
Labels

Comments

@zhangYQHBAU
Copy link

Preliminary Checks

  • 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?

@Rad-hi
Copy link

Rad-hi commented 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_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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants