Skip to content

Can't find/import 'capsule' #240

@dejancrn

Description

@dejancrn

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;

});
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions