[PyQt] uic compilUi error
Keith Lostracco
keith at intentdev.io
Sun Mar 18 15:52:53 GMT 2018
Ah yeah my bad. Here is all the info.
Windows 10
Python 3.6
PyQt 5.10.1
Qt Creator 4.5.2
Based on Qt 5.10.1
uic invoke statement:
from PyQt5 import uic
uiFile = 'QtCreator/signalProc/mainwindow.ui'
pyFile = 'mainwindow.py'
uic.compileUi(uiFile, pyFile)
On Sun, Mar 18, 2018 at 3:44 AM, Hans-Peter Jansen <hpj at urpla.net> wrote:
> 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
>
>
--
Keith Lostracco
*Interactive Developer*
*Intent Productions, Inc.*
m: 250 505 2444
w: IntentDev.io e: Keith at IntentDev.io
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20180318/1e2dc1aa/attachment.html>
More information about the PyQt
mailing list