Skip to content

(in)compatibility with pybind11 3.0.0 #82

@francesco-ballarin

Description

@francesco-ballarin

Hi,
pybind11 3.0.0 was released last week. After upgrading to that version, and using system pybind11 rather than the one shipped as a git submodule in the netgen git repo, one of my CIs started failing upon importing netgen with

root@fef5125263f2:~# python3 -c 'import ngsolve'


Caught exception:
arg(): could not convert default argument into a Python object (type not registered yet?). #define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for more information.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.11/dist-packages/ngsolve/__init__.py", line 38, in <module>
    from .ngslib import __version__, ngstd, bla, la, fem, comp, solve
ImportError: cannot import name 'fem' from 'ngsolve' (/usr/local/lib/python3.11/dist-packages/ngsolve/ngslib.so)

Can you add a test with the newest pybind on your CI?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions