<div dir="ltr"><div>Hi list</div><div><br></div><div>I am trying to build my library with PyQt6 but it fails with the error message shown below [1]</div><div>It builds without problems for PyQt5 and I did compile Qscintilla for Qt5/6 on the same system so the setup should be ok.<br></div><div><br></div><div>I invoke the build with [2]<br></div><div><br></div><div>All source code can be found at:</div><div><a href="https://github.com/GauiStori/PyQt-Qwt/tree/test">https://github.com/GauiStori/PyQt-Qwt/tree/test</a></div><div><br></div><div>I tried to debug the sip-build script in eric but without success. Can anyone please help me on how to get more information about this AtttributeError?</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">"AttributeError: 'NoneType' object has no attribute 'default_metatype'</span>"</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Regards</span></div><div><span style="font-family:monospace">Gudjon<br></span></div><div><span style="font-family:monospace"><br></span></div><div><br></div><div><br></div><div>[1]<br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">sip-build: An internal error occurred...
</span><br>Traceback (most recent call last):
<br> File "/usr/bin/sip-build", line 33, in <module>
<br> sys.exit(load_entry_point('sip==6.7.7', 'console_scripts', 'sip-build')())
<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<br> File "/usr/lib/python3/dist-packages/sipbuild/tools/build.py", line 37, in main
<br> handle_exception(e)
<br> File "/usr/lib/python3/dist-packages/sipbuild/exceptions.py", line 81, in handle_exception
<br> raise e
<br> File "/usr/lib/python3/dist-packages/sipbuild/tools/build.py", line 34, in main
<br> project.build()
<br> File "/usr/lib/python3/dist-packages/sipbuild/project.py", line 244, in build
<br> self.builder.build()
<br> File "/usr/lib/python3/dist-packages/sipbuild/builder.py", line 48, in build
<br> self._generate_bindings()
<br> File "/usr/lib/python3/dist-packages/sipbuild/builder.py", line 277, in _generate_bindings
<br> buildable = bindings.generate()
<br> ^^^^^^^^^^^^^^^^^^^
<br> File "/usr/lib/python3/dist-packages/sipbuild/bindings.py", line 172, in generate
<br> resolve(spec, modules)
<br> File "/usr/lib/python3/dist-packages/sipbuild/generator/resolver/resolver.py", line 94, in resolve
<br> _set_mro(spec, klass, error_log)
<br> File "/usr/lib/python3/dist-packages/sipbuild/generator/resolver/resolver.py", line 763, in _set_mro
<br> klass.metatype = klass.iface_file.module.default_metatype
<br> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<br>AttributeError: 'NoneType' object has no attribute 'default_metatype<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">[2]</span></div><div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">python3.11 /usr/bin/sip-build \
</span><br> --verbose --no-make --pep484-pyi \
<br> --qmake /usr/bin/qmake6 \
<br> --qmake-setting 'QMAKE_CXXFLAGS += "-g -O2
-ffile-prefix-map=/home/gudjon/debian/PyQwt/PyQt-Qwt=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2"'<br> \
<br> --qmake-setting 'QMAKE_LFLAGS += "-Wl,-z,relro"' \
<br> --target-dir /usr/lib/python3/dist-packages \
<br> --build-dir build-qt6 \
<br> --qwt-lib=qwt-qt6 \
<br> --qwt-incdir=/usr/include/qwt \
<br> --api-dir /usr/share/qt6/api/python3</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br><br></span></div><span style="font-family:monospace"></span></div><div><span style="font-family:monospace"><br></span></div></div>