pawelsalawa / sqlitestudio

A free, open source, multi-platform SQLite database manager.

Home Page:https://sqlitestudio.pl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails: error: no member named 'frame' in '_ts'; did you mean 'cframe'? (SQLiteStudio isn't compatible with Python-3.11)

yurivict opened this issue · comments

Details

scriptingpython.cpp:423:34: warning: loop variable 'item' of type 'const QVariant &' binds to a temporary constructed from type 'QString &' [-Wrange-loop-construct]
            for (const QVariant& item : list)
                                 ^
scriptingpython.cpp:423:18: note: use non-reference type 'QVariant' to make construction explicit or type 'const QString &' to prevent copying
            for (const QVariant& item : list)
                 ^~~~~~~~~~~~~~~~~~~~~~
scriptingpython.cpp:585:17: error: no member named 'frame' in '_ts'; did you mean 'cframe'?
    if (!state->frame)
                ^~~~~
                cframe
/usr/local/include/python3.11/cpython/pystate.h:110:16: note: 'cframe' declared here
    _PyCFrame *cframe;
               ^
scriptingpython.cpp:591:33: error: no member named 'frame' in '_ts'
    PyFrame_FastToLocals(state->frame);
                         ~~~~~  ^
scriptingpython.cpp:592:31: error: no member named 'frame' in '_ts'
    PyObject* locals = state->frame->f_locals;
                       ~~~~~  ^
scriptingpython.cpp:593:32: error: no member named 'frame' in '_ts'
    PyObject* globals = state->frame->f_globals;
                        ~~~~~  ^
1 warning and 4 errors generated.

log

Steps to reproduce

Regular build.

Operating system

FreeBSD 14.0

SQLiteStudio version

3.4.4

Python-3.11: I believe that our switch to Python-3.11 caused builds to fail.

Fixed in #4782.