Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. pyside6-project.exe build can not parse source file list in pyproject.toml correctly on Windows
Forum Updated to NodeBB v4.3 + New Features

pyside6-project.exe build can not parse source file list in pyproject.toml correctly on Windows

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 95 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.
  • R Offline
    R Offline
    Ross Gao
    wrote last edited by
    #1

    The source file list of project in pyporject.toml can not be devided into lines.
    If the source file list a in one line it work fine.
    [tool.pyside6-project]
    files = ["main.py","database/db_manager.py","i18n/pos_en.ts"]

    But if I split the file list into multiple lines . It would fail.
    [tool.pyside6-project]
    files = [
    "main.py",
    "database/db_manager.py",
    "i18n/pos_en.ts"
    ]
    when is run pyside6-project build in terminal or build in QCreator it fail with
    " No project file found in the current directory. "

    1 Reply Last reply
    0
    • F Offline
      F Offline
      friedemannkleint
      wrote last edited by
      #2

      What Python version are you using? Starting from 3.11, tomllib is used which should be able to handle it. For older versions, a manual parser is used, which may fail.

      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