Menu

#169 Got error in Windows 11 installation

WontFix
chrisko
None
Medium
Windows 11
Other
2025-02-17
2025-02-14
Fuyun Ling
No

Got the following error during a new W11 installation: "Preparing metadata (pyproject.toml) ... error".
C:\Users\fuyunling>pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
Collecting sip
Using cached sip-6.10.0-1-py3-none-any.whl.metadata (5.3 kB)
Collecting PyQt5
Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
Collecting PyOpenGL
Using cached PyOpenGL-3.1.9-py3-none-any.whl.metadata (3.3 kB)
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
Collecting cx-Freeze
Using cached cx_Freeze-7.2.10-cp312-cp312-win_amd64.whl.metadata (10 kB)
Collecting configobj
Using cached configobj-5.0.9-py2.py3-none-any.whl.metadata (3.2 kB)
Collecting packaging (from sip)
Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting setuptools>=69.5 (from sip)
Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
Collecting PyQt5-sip<13,>=12.15 (from PyQt5)
Using cached PyQt5_sip-12.17.0-cp312-cp312-win_amd64.whl.metadata (492 bytes)
Collecting PyQt5-Qt5<5.16.0,>=5.15.2 (from PyQt5)
Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl.metadata (552 bytes)
Collecting click (from pyqt5-tools)
Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
Collecting PyQt5
Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5-tools
Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
Collecting PyQt5
Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
Traceback (most recent call last):
File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in <module>
main()
File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
project.setup(pyproject, tool, tool_description)
File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
self.apply_user_defaults(tool)
File "C:\Users\fuyunling\AppData\Local\Temp\pip-install-vo271q79\pyqt5_15cbf076462345a69c6eb7924d051275\project.py", line 63, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
super().apply_user_defaults(tool)
File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[end of output]</module>

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Related

Tickets: #169

Discussion

  • chrisko

    chrisko - 2025-02-14

    This is a problem while installing pyQT i guess. How did you install dxf2gcode, pleas explain your steps to do so.

     
    • Fuyun Ling

      Fuyun Ling - 2025-02-16

      I just folowed instructions in the readme.txt for windows:
      C:> pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
      Fuyun
      On Friday, February 14, 2025 at 10:57:28 AM PST, chrisko christi_ko@users.sourceforge.net wrote:

      This is a problem while installing pyQT i guess. How did you install dxf2gcode, pleas explain your steps to do so.

      [tickets:#169] Got error in Windows 11 installation

      Status: New
      Created: Fri Feb 14, 2025 01:54 AM UTC by Fuyun Ling
      Last Updated: Fri Feb 14, 2025 01:54 AM UTC
      Owner: nobody

      Got the following error during a new W11 installation: "Preparing metadata (pyproject.toml) ... error".
      C:\Users\fuyunling>pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
      Collecting sip
      Using cached sip-6.10.0-1-py3-none-any.whl.metadata (5.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
      Collecting PyOpenGL
      Using cached PyOpenGL-3.1.9-py3-none-any.whl.metadata (3.3 kB)
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
      Collecting cx-Freeze
      Using cached cx_Freeze-7.2.10-cp312-cp312-win_amd64.whl.metadata (10 kB)
      Collecting configobj
      Using cached configobj-5.0.9-py2.py3-none-any.whl.metadata (3.2 kB)
      Collecting packaging (from sip)
      Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
      Collecting setuptools>=69.5 (from sip)
      Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting PyQt5-sip<13,>=12.15 (from PyQt5)
      Using cached PyQt5_sip-12.17.0-cp312-cp312-win_amd64.whl.metadata (492 bytes)
      Collecting PyQt5-Qt5<5.16.0,>=5.15.2 (from PyQt5)
      Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl.metadata (552 bytes)
      Collecting click (from pyqt5-tools)
      Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
      INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [26 lines of output]
      pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
      Traceback (most recent call last):
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in <module>
      main()
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
      self.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-install-vo271q79\pyqt5_15cbf076462345a69c6eb7924d051275\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
      raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]</module>

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      × Encountered error while generating package metadata.
      ╰─> See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/dxf2gcode/tickets/169/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #169

    • Fuyun Ling

      Fuyun Ling - 2025-02-16

      I solved the previous problem by using Python 3.9 instead of 3.12.  However, when doing the compilation, I had the two following errors:
      1.C:\dxf2gcode>python.exe ./make_tr.pyUsing Windows platform tools "C:\Python39\Scripts/pylupdate5.exe" and "C:\Program Files (x86)\Qt Designer\lrelease.exe"
      Updating translations from source files...C:\Python39\Scripts/pylupdate5.exe dxf2gcode.proRemoving sourcecode references from translation files...    Removing <location> tags from i18n/dxf2gcode_de.ts    Removing <location> tags from i18n/dxf2gcode_fr.ts    Removing <location> tags from i18n/dxf2gcode_ru.tsCompiling translation files to binary .qm format...C:\Program Files (x86)\Qt Designer\lrelease.exe i18n/dxf2gcode_de.ts i18n/dxf2gcode_fr.ts i18n/dxf2gcode_ru.tsTraceback (most recent call last):  File "C:\dxf2gcode\make_tr.py", line 185, in <module>    subprocess.check_call(cmd)  File "C:\Python39\lib\subprocess.py", line 368, in check_call    retcode = call(popenargs, kwargs)  File "C:\Python39\lib\subprocess.py", line 349, in call    with Popen(popenargs, **kwargs) as p:  File "C:\Python39\lib\subprocess.py", line 947, in init    self._execute_child(args, executable, preexec_fn, close_fds,  File "C:\Python39\lib\subprocess.py", line 1416, in _execute_child    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,FileNotFoundError: [WinError 2] The system cannot find the file specified
      2.C:\dxf2gcode>python.exe setup.py bdist_msiC:\Python39\lib\site-packages\setuptools\dist.py:330: InformationOnly: Normalizing '2024.11.02' to '2024.11.2'  self.metadata.version = self._normalize_version(self.metadata.version)running bdist_msirunning buildrunning build_exeerror: cannot find file/directory named i18n\dxf2gcode_de.qm
      Please take a look.  Thanks!
      Fuyun
      =================================================================================
      On Friday, February 14, 2025 at 10:57:28 AM PST, chrisko christi_ko@users.sourceforge.net wrote: </module></location></location></location>

      This is a problem while installing pyQT i guess. How did you install dxf2gcode, pleas explain your steps to do so.

      [tickets:#169] Got error in Windows 11 installation

      Status: New
      Created: Fri Feb 14, 2025 01:54 AM UTC by Fuyun Ling
      Last Updated: Fri Feb 14, 2025 01:54 AM UTC
      Owner: nobody

      Got the following error during a new W11 installation: "Preparing metadata (pyproject.toml) ... error".
      C:\Users\fuyunling>pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
      Collecting sip
      Using cached sip-6.10.0-1-py3-none-any.whl.metadata (5.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
      Collecting PyOpenGL
      Using cached PyOpenGL-3.1.9-py3-none-any.whl.metadata (3.3 kB)
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
      Collecting cx-Freeze
      Using cached cx_Freeze-7.2.10-cp312-cp312-win_amd64.whl.metadata (10 kB)
      Collecting configobj
      Using cached configobj-5.0.9-py2.py3-none-any.whl.metadata (3.2 kB)
      Collecting packaging (from sip)
      Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
      Collecting setuptools>=69.5 (from sip)
      Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting PyQt5-sip<13,>=12.15 (from PyQt5)
      Using cached PyQt5_sip-12.17.0-cp312-cp312-win_amd64.whl.metadata (492 bytes)
      Collecting PyQt5-Qt5<5.16.0,>=5.15.2 (from PyQt5)
      Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl.metadata (552 bytes)
      Collecting click (from pyqt5-tools)
      Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
      INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [26 lines of output]
      pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
      Traceback (most recent call last):
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in <module>
      main()
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
      self.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-install-vo271q79\pyqt5_15cbf076462345a69c6eb7924d051275\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
      raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]</module>

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      × Encountered error while generating package metadata.
      ╰─> See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/dxf2gcode/tickets/169/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #169

  • chrisko

    chrisko - 2025-02-16

    That's what i expected. The "new" error seems to come from some missing files. Nothing critical.

     
  • chrisko

    chrisko - 2025-02-16
    • status: New --> WontFix
    • assigned_to: chrisko
    • Priority: High --> Medium
    • OpSys: --> Windows 11
    • Type: Patch --> Other
     
    • Fuyun Ling

      Fuyun Ling - 2025-02-16

      Hi, chrisko:  Please take a look into the latest email that I sent on Sat, Feb 15 at 11:25 PM.  The two new problems that I mentioned there were not mentioned in your two latest replies you sent here.Thanks!Fuyun
      On Sunday, February 16, 2025 at 04:32:17 AM PST, chrisko christi_ko@users.sourceforge.net wrote:

      • status: New --> WontFix
      • assigned_to: chrisko
      • Priority: High --> Medium
      • OpSys: --> Windows 11
      • Type: Patch --> Other

      [tickets:#169] Got error in Windows 11 installation

      Status: WontFix
      Created: Fri Feb 14, 2025 01:54 AM UTC by Fuyun Ling
      Last Updated: Sun Feb 16, 2025 12:31 PM UTC
      Owner: chrisko

      Got the following error during a new W11 installation: "Preparing metadata (pyproject.toml) ... error".
      C:\Users\fuyunling>pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
      Collecting sip
      Using cached sip-6.10.0-1-py3-none-any.whl.metadata (5.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
      Collecting PyOpenGL
      Using cached PyOpenGL-3.1.9-py3-none-any.whl.metadata (3.3 kB)
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
      Collecting cx-Freeze
      Using cached cx_Freeze-7.2.10-cp312-cp312-win_amd64.whl.metadata (10 kB)
      Collecting configobj
      Using cached configobj-5.0.9-py2.py3-none-any.whl.metadata (3.2 kB)
      Collecting packaging (from sip)
      Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
      Collecting setuptools>=69.5 (from sip)
      Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting PyQt5-sip<13,>=12.15 (from PyQt5)
      Using cached PyQt5_sip-12.17.0-cp312-cp312-win_amd64.whl.metadata (492 bytes)
      Collecting PyQt5-Qt5<5.16.0,>=5.15.2 (from PyQt5)
      Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl.metadata (552 bytes)
      Collecting click (from pyqt5-tools)
      Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
      INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [26 lines of output]
      pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
      Traceback (most recent call last):
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in <module>
      main()
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
      self.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-install-vo271q79\pyqt5_15cbf076462345a69c6eb7924d051275\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
      raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]</module>

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      × Encountered error while generating package metadata.
      ╰─> See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/dxf2gcode/tickets/169/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #169

  • chrisko

    chrisko - 2025-02-17

    Hi Fuyung, did you check if the translations files have been copied to the expected locataion according to the failure message?

    https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/source/i18n/

    I use the python version 3.11, could be also a compatibility problem with your version. Can you try python 3.11 ...

     
    • Fuyun Ling

      Fuyun Ling - 2025-02-18

      Hi, As I said before, I solved the previous problem by using Python 3.9 instead of 3.12.  However, when doing the compilation, I had the two following errors. Let's look at the first one first.  The second one may the result of the first one.1.C:\dxf2gcode>python.exe ./make_tr.py
      Using Windows platform tools "C:\Python39\Scripts/pylupdate5.exe" and "C:\Program Files (x86)\Qt Designer\lrelease.exe"
      Updating translations from source files...C:\Python39\Scripts/pylupdate5.exe dxf2gcode.proRemoving sourcecode references from translation files...        Removing <location> tags from i18n/dxf2gcode_de.ts        Removing <location> tags from i18n/dxf2gcode_fr.ts        Removing <location> tags from i18n/dxf2gcode_ru.tsCompiling translation files to binary .qm format...C:\Program Files (x86)\Qt Designer\lrelease.exe i18n/dxf2gcode_de.ts i18n/dxf2gcode_fr.ts i18n/dxf2gcode_ru.tsTraceback (most recent call last):   File "C:\dxf2gcode\make_tr.py", line 185, in <module>     subprocess.check_call(cmd)   File "C:\Python39\lib\subprocess.py", line 368, in check_call     retcode = call(popenargs, kwargs)   File "C:\Python39\lib\subprocess.py", line 349, in call     with Popen(popenargs, **kwargs) as p:   File "C:\Python39\lib\subprocess.py", line 947, in init     self._execute_child(args, executable, preexec_fn, close_fds,   File "C:\Python39\lib\subprocess.py", line 1416, in _execute_child     hp, ht, pid, tid = _winapi.CreateProcess(executable, args,FileNotFoundError: [WinError 2] The system cannot find the file specified
      I decompressed the attached fine and put them in to a directory C:\dxf2gcode and worked from that directory.</module></location></location></location>

      On Monday, February 17, 2025 at 04:53:58 AM PST, chrisko <christi_ko@users.sourceforge.net> wrote:
      

      Hi Fuyung, did you check if the translations files have been copied to the expected locataion according to the failure message?

      https://sourceforge.net/p/dxf2gcode/sourcecode/ci/develop/tree/source/i18n/

      I use the python version 3.11, could be also a compatibility problem with your version. Can you try python 3.11 ...

      [tickets:#169] Got error in Windows 11 installation

      Status: WontFix
      Created: Fri Feb 14, 2025 01:54 AM UTC by Fuyun Ling
      Last Updated: Sun Feb 16, 2025 12:32 PM UTC
      Owner: chrisko

      Got the following error during a new W11 installation: "Preparing metadata (pyproject.toml) ... error".
      C:\Users\fuyunling>pip3 install sip PyQt5 PyOpenGL pyqt5-tools cx-Freeze configobj
      Collecting sip
      Using cached sip-6.10.0-1-py3-none-any.whl.metadata (5.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.11-cp38-abi3-win_amd64.whl.metadata (2.1 kB)
      Collecting PyOpenGL
      Using cached PyOpenGL-3.1.9-py3-none-any.whl.metadata (3.3 kB)
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.9.3.3-py3-none-any.whl.metadata (8.3 kB)
      Collecting cx-Freeze
      Using cached cx_Freeze-7.2.10-cp312-cp312-win_amd64.whl.metadata (10 kB)
      Collecting configobj
      Using cached configobj-5.0.9-py2.py3-none-any.whl.metadata (3.2 kB)
      Collecting packaging (from sip)
      Using cached packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
      Collecting setuptools>=69.5 (from sip)
      Using cached setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
      Collecting PyQt5-sip<13,>=12.15 (from PyQt5)
      Using cached PyQt5_sip-12.17.0-cp312-cp312-win_amd64.whl.metadata (492 bytes)
      Collecting PyQt5-Qt5<5.16.0,>=5.15.2 (from PyQt5)
      Using cached PyQt5_Qt5-5.15.2-py3-none-win_amd64.whl.metadata (552 bytes)
      Collecting click (from pyqt5-tools)
      Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.9-cp37-abi3-win_amd64.whl.metadata (2.2 kB)
      INFO: pip is looking at multiple versions of pyqt5-tools to determine which version is compatible with other requirements. This could take a while.
      Collecting pyqt5-tools
      Using cached pyqt5_tools-5.15.4.3.2-py3-none-any.whl.metadata (8.3 kB)
      Collecting PyQt5
      Using cached PyQt5-5.15.4.tar.gz (3.3 MB)
      Installing build dependencies ... done
      Getting requirements to build wheel ... done
      Preparing metadata (pyproject.toml) ... error
      error: subprocess-exited-with-error

      × Preparing metadata (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [26 lines of output]
      pyproject.toml: line 7: using '[tool.sip.metadata]' to specify the project metadata is deprecated and will be removed in SIP v7.0.0, use '[project]' instead
      Traceback (most recent call last):
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in <module>
      main()
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
      json_out["return_val"] = hook(**hook_input["kwargs"])
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 178, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\api.py", line 28, in build_wheel
      project = AbstractProject.bootstrap('wheel',
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\abstract_project.py", line 74, in bootstrap
      project.setup(pyproject, tool, tool_description)
      File "C:\Users\fl\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 629, in setup
      self.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-install-vo271q79\pyqt5_15cbf076462345a69c6eb7924d051275\project.py", line 63, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\project.py", line 51, in apply_user_defaults
      super().apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\sipbuild\project.py", line 243, in apply_user_defaults
      self.builder.apply_user_defaults(tool)
      File "C:\Users\fuyunling\AppData\Local\Temp\pip-build-env-agxywctn\overlay\Lib\site-packages\pyqtbuild\builder.py", line 49, in apply_user_defaults
      raise PyProjectOptionException('qmake',
      sipbuild.pyproject.PyProjectOptionException
      [end of output]</module>

      note: This error originates from a subprocess, and is likely not a problem with pip.
      error: metadata-generation-failed

      × Encountered error while generating package metadata.
      ╰─> See above for output.

      note: This is an issue with the package mentioned above, not pip.
      hint: See above for details.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/dxf2gcode/tickets/169/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #169


Log in to post a comment.

MongoDB Logo MongoDB