Menu

PythonQt fails to build with Python 3.7

2018-08-06
2018-08-07
  • Kwashiorkor

    Kwashiorkor - 2018-08-06

    I'm getting the following compile error when trying to build PythonQt SVN with Python 3.7:

    PythonQt.cpp: In member function ‘void PythonQt::initPythonQtModule(bool, const QByteArray&)’:
    PythonQt.cpp:1738:51: error: too few arguments to function ‘int _PyImport_FixupBuiltin(PyObject*, const char*, PyObject*)’
       _PyImport_FixupBuiltin(_p->_pythonQtModule, name);
                                                       ^
    In file included from /usr/include/python3.7m/Python.h:126,
                     from PythonQtPythonInclude.h:59,
                     from PythonQt.h:45,
                     from PythonQt.cpp:42:
    /usr/include/python3.7m/import.h:115:17: note: declared here
     PyAPI_FUNC(int) _PyImport_FixupBuiltin(
                     ^~~~~~~~~~~~~~~~~~~~~~
    

    It was building fine with Python 3.6.6.

    System Information:
    OS: Arch Linux x86_64
    Qt: 5.11.1
    Python: 3.7.0
    PythonQt: SVN trunk (currently at r476)

     
  • Florian Link

    Florian Link - 2018-08-07

    I fixed this on the svn trunk, I should not have used PyImport_FixupBuiltin, since it is a private API...

     
  • Kwashiorkor

    Kwashiorkor - 2018-08-07

    I can confirm that it is fixed in the latest svn trunk.

    Thank you for fixing this.

    But now I'm havig another build issue. I'll open another topic for that.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.