Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1552

pyside6-lupdate is Not Found

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.0.3
    • PySide
    • None
    • Ubuntu 20.04.2 LTS
    • Linux/Other display system, Windows

    Description

      The executable pyside6-lupdate cannot be found after clean I install PySide6 in virtualenv.

      In Windows, there is a lupdate.exe instead of pyside6-lupdate.exe in site-packages/PySide6/. In Linux (Ubuntu), there is not any lupdate related executable in the package installation directory, and compare to PySide2, there is a pyside2-lupdate in the directory.

      It seems the tool is not correctly copied in the setup.py mentioned in this comment.

      I know that pyside6-lupdate is deprecated. However, I think this issue is relatively easy to fix by adding or adjusting the entrypoints in setup.py.

      The error log is displayed when running pyside6-lupdate directly after installation.

      $ pyside6-lupdate --help
      Traceback (most recent call last):
        File "/**/project/.venv/bin/pyside6-lupdate", line 8, in <module>
          sys.exit(main())
        File "/**/project/.venv/lib/python3.8/site-packages/PySide6/scripts/pyside_tool.py", line 55, in main
          sys.exit(subprocess.call(command))
        File "/**/installs/python/3.8.8/lib/python3.8/subprocess.py", line 340, in call
          with Popen(*popenargs, **kwargs) as p:
        File "/**/installs/python/3.8.8/lib/python3.8/subprocess.py", line 858, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/**/installs/python/3.8.8/lib/python3.8/subprocess.py", line 1706, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: '/**/project/.venv/lib/python3.8/site-packages/PySide6/scripts/../pyside6-lupdate'
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            alan13wake Sean Wu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes