0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

pyside6-uicで.uiファイルを.pyに変換して実行するとエラーになる件

Posted at

WINDOWS上で、Qtdesignerで作られたuiファイルをpythonのpyファイルに変換したとき
pyside6-uic form.ui > form.py
とやると、import時に
"ValueError: source code string cannot contain null bytes"
になり
form.pyのみを実行すると、
"SyntaxError: unknown parsing error"
になった。

これの解決策はここに載ってた
https://stackoverflow.com/questions/53035340/pyside2-uic-null-bytes-in-output

pyside6-uic form.ui -o form.py

で実行すると解決。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?