Skip to content
New issue

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

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

Already on GitHub? # to your account

cannot assign to non-static data member 'state' with const-qualified type 'const PyGILState_STATE' #2258

Open
yurivict opened this issue Jul 23, 2022 · 0 comments

Comments

@yurivict
Copy link

Build fails:

In file included from /disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/tomviz/PythonUtilities.cxx:18:
In file included from /disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/thirdparty/pybind11/include/pybind11/pybind11.h:44:
In file included from /disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/thirdparty/pybind11/include/pybind11/attr.h:13:
In file included from /disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/thirdparty/pybind11/include/pybind11/cast.h:16:
/disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/thirdparty/pybind11/include/pybind11/detail/internals.h:254:39: error: cannot assign to non-static data member 'state' with const-qualified type 'const PyGILState_STATE'
        ~gil_scoped_acquire_local() { PyGILState_Release(state); }
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/paraview-5.10/vtkPython.h:110:43: note: expanded from macro 'PyGILState_Release'
#define PyGILState_Release(state) (state) = ((PyGILState_STATE)0)
                                  ~~~~~~~ ^
/disk-samsung/freebsd-ports/science/tomviz/work/tomviz-1.10.0/thirdparty/pybind11/include/pybind11/detail/internals.h:255:32: note: non-static data member 'state' declared const here
        const PyGILState_STATE state;
        ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
1 error generated.

Version-1.10.0
clang-13.1
FreeBSD 13.1

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

No branches or pull requests

1 participant