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

Can't find/import 'capsule' #240

Open
dejancrn opened this issue Jan 22, 2025 · 0 comments
Open

Can't find/import 'capsule' #240

dejancrn opened this issue Jan 22, 2025 · 0 comments

Comments

@dejancrn
Copy link

dejancrn commented Jan 22, 2025

I'm having an issue similar to https://github.com/sizmailov/pybind11-stubgen/issues/86

It seems that py::capsule is not recognized correctly.
`
cls.def_static("from_raw_interface", [](py::capsule rawInterface)
{
if (std::strcmp(rawInterface.name(), "raw_interface") != 0)
throw std::invalid_argument("Invalid capsule");

daq::IBaseObject* obj = rawInterface.get_pointer<daq::IBaseObject>();
return obj;

});
`

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

No branches or pull requests

1 participant