[PyQt] uic compilUi error

Hans-Peter Jansen hpj at urpla.net
Sun Mar 18 10:44:20 GMT 2018


On Samstag, 17. März 2018 22:20:58 Keith Lostracco wrote:
> Hello, I'm having an issue using uic. I get the following error when trying
> to compile a .ui file
> 
>   File
> "C:\ProgramData\Miniconda3\envs\catalyst\lib\site-packages\PyQt5\uic\__init_
> _.py", line 162, in compileUi
>     pyfile.write(_header % (uifname, PYQT_VERSION_STR))
> AttributeError: 'str' object has no attribute 'write'

Imagine, you're getting this from somebody else?

Hint, it is missing _everything_ to reproduce the issue.

Python,Qt, PyQt versions, uic invoke...

Cheers,
Pete


More information about the PyQt mailing list