Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-28530

Python3 embed fails to compile with python 3.11

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 8.8.26, 8.10.8
    • Plugins
    • None

    Description

      Following compile errors on macos 12 due to the new python:

      /Users/runner/work/HPCC-Platform/HPCC-Platform/plugins/py3embed/py3embed.cpp:481:27: error: no member named 'frame' in '_ts'; did you mean 'cframe'?
      4973        if (!threadstate->frame)
      4974                          ^~~~~
      4975                          cframe
      4976/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:110:16: note: 'cframe' declared here
      4977    _PyCFrame *cframe;
      4978               ^
      4979/Users/runner/work/HPCC-Platform/HPCC-Platform/plugins/py3embed/py3embed.cpp:489:26: error: no member named 'frame' in '_ts'
      4980            threadstate->frame = frame;
      4981            ~~~~~~~~~~~  ^
      4982/Users/runner/work/HPCC-Platform/HPCC-Platform/plugins/py3embed/py3embed.cpp:498:26: error: no member named 'frame' in '_ts'
      4983        if (threadstate->frame == frame)
      4984            ~~~~~~~~~~~  ^
      4985/Users/runner/work/HPCC-Platform/HPCC-Platform/plugins/py3embed/py3embed.cpp:499:26: error: no member named 'frame' in '_ts'; did you mean 'cframe'?
      4986            threadstate->frame = NULL;
      4987                         ^~~~~
      4988                         cframe
      4989/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/cpython/pystate.h:110:16: note: 'cframe' declared here
      4990    _PyCFrame *cframe;
      4991               ^
      4992 

      Attachments

        Activity

          People

            richardkchapman Richard Chapman
            ghalliday Gavin Halliday
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: