Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compatibility with Python 3.12
QtWS25 Last Chance

Compatibility with Python 3.12

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
python3qt6
3 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jiapei1000J Offline
    jiapei1000J Offline
    jiapei1000
    wrote on last edited by jiapei1000
    #1

    For example import imp brought me the error:

    ModuleNotFoundError: No module named 'imp'
    

    Hmmm... Looking forward to the compatibility...

    Thank you ...

    A nobody in computer vision & AI

    Christian EhrlicherC 1 Reply Last reply
    0
    • jiapei1000J jiapei1000

      For example import imp brought me the error:

      ModuleNotFoundError: No module named 'imp'
      

      Hmmm... Looking forward to the compatibility...

      Thank you ...

      Christian EhrlicherC Online
      Christian EhrlicherC Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @jiapei1000 said in Compatibility with Python 3.12:

      For example import imp brought me the error:

      Where do you do this? On a python console? If so - what's the relation to Qt?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      jiapei1000J 1 Reply Last reply
      1
      • Christian EhrlicherC Christian Ehrlicher

        @jiapei1000 said in Compatibility with Python 3.12:

        For example import imp brought me the error:

        Where do you do this? On a python console? If so - what's the relation to Qt?

        jiapei1000J Offline
        jiapei1000J Offline
        jiapei1000
        wrote on last edited by
        #3

        @Christian-Ehrlicher

        Yeah, I'm trying to build Qt-6.6.1 from console.
        It looks there are some 3rdparty libraries that have Python interfaces to be built. Particularly:

        • qtwebengine-chromium
        • qtwebengine
        [46/24233] ACTION //third_party/catapult/tracing:generate_about_tracing(/opt/qt/qtwebengine/build/src/core/target_toolchain:target)
        FAILED: gen/content/browser/tracing/about_tracing.js gen/content/browser/tracing/about_tracing.html 
        /home/lvision/.pyenv/shims/python3 ../../../../../src/3rdparty/chromium/third_party/catapult/tracing/bin/generate_about_tracing_contents --outdir gen/content/browser/tracing
        Traceback (most recent call last):
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/html_module.py", line 28, in Parse
            parser_results = parse_html_deps.HTMLModuleParser().Parse(self.contents)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py", line 298, in Parse
            return HTMLModuleParserResults(html)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/parse_html_deps.py", line 164, in __init__
            self._soup = bs4.BeautifulSoup(html, 'html5lib')
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/third_party/beautifulsoup4-4.9.3/py3k/bs4/__init__.py", line 243, in __init__
            raise FeatureNotFound(
        bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
        
        During handling of the above exception, another exception occurred:
        
        Traceback (most recent call last):
          File "/opt/qt/qtwebengine/build/src/core/Release/x86_64/../../../../../src/3rdparty/chromium/third_party/catapult/tracing/bin/generate_about_tracing_contents", line 14, in <module>
            sys.exit(generate_about_tracing_contents.Main(sys.argv[1:]))
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/tracing/tracing_build/generate_about_tracing_contents.py", line 32, in Main
            load_sequence = vulcanizer.CalcLoadSequenceForModuleNames(names)
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/project.py", line 146, in CalcLoadSequenceForModuleNames
            modules = [self.loader.LoadModule(module_name=name,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/resource_loader.py", line 145, in LoadModule
            m.Parse(excluded_scripts)
          File "/opt/qt/qtwebengine/src/3rdparty/chromium/third_party/catapult/common/py_vulcanize/py_vulcanize/html_module.py", line 30, in Parse
            raise Exception('While parsing %s: %s' % (self.name, str(ex)))
        Exception: While parsing tracing.ui.extras.about_tracing.about_tracing: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
        [95/24233] CXX obj/third_party/cld_3/src/src/cld_3/nnet_language_identifier.o
        ninja: build stopped: subcommand failed.
        make[2]: *** [src/core/CMakeFiles/QtWebEngineCore_Release_x86_64.dir/build.make:77: src/core/Release/x86_64/QtWebEngineCore.stamp] Error 1
        make[2]: Leaving directory '/opt/qt/qtwebengine/build'
        make[1]: *** [CMakeFiles/Makefile2:1472: src/core/CMakeFiles/QtWebEngineCore_Release_x86_64.dir/all] Error 2
        make[1]: Leaving directory '/opt/qt/qtwebengine/build'
        make: *** [Makefile:149: all] Error 2
        

        A nobody in computer vision & AI

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved