<div dir="ltr"><div><div><div>Ah yeah my bad. Here is all the info.<br><br></div>Windows 10<br></div>Python 3.6<br></div>PyQt 5.10.1<br>

<p style="margin:14px 0px 12px;text-indent:0px;white-space:pre-wrap"><font size="2"><span>Qt Creator 4.5.2
</span></font></p><p style="margin:0px;text-indent:0px;white-space:pre-wrap"><font size="2">Based on Qt 5.10.1</font></p><span style="font-size:large;font-weight:600"><br></span><p></p>uic invoke statement:<br><br><div style="margin-left:40px"><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:"Courier New";font-size:9pt"><span style="color:rgb(204,120,50)">from </span>PyQt5 <span style="color:rgb(204,120,50)">import </span>uic<br><br>uiFile = <span style="color:rgb(106,135,89)">'QtCreator/signalProc/mainwindow.ui'<br></span>pyFile = <span style="color:rgb(106,135,89)">'mainwindow.py'<br></span><span style="color:rgb(106,135,89)"><br></span>uic.compileUi(uiFile<span style="color:rgb(204,120,50)">, </span>pyFile)</pre><br></div><div><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 18, 2018 at 3:44 AM, Hans-Peter Jansen <span dir="ltr"><<a href="mailto:hpj@urpla.net" target="_blank">hpj@urpla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Samstag, 17. März 2018 22:20:58 Keith Lostracco wrote:<br>
> Hello, I'm having an issue using uic. I get the following error when trying<br>
> to compile a .ui file<br>
><br>
>   File<br>
> "C:\ProgramData\Miniconda3\<wbr>envs\catalyst\lib\site-<wbr>packages\PyQt5\uic\__init_<br>
> _.py", line 162, in compileUi<br>
>     pyfile.write(_header % (uifname, PYQT_VERSION_STR))<br>
> AttributeError: 'str' object has no attribute 'write'<br>
<br>
</span>Imagine, you're getting this from somebody else?<br>
<br>
Hint, it is missing _everything_ to reproduce the issue.<br>
<br>
Python,Qt, PyQt versions, uic invoke...<br>
<br>
Cheers,<br>
Pete<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><div>
                    <div><table style="background:none;border-width:0px;border:0px;margin:0;padding:0" cellspacing="0" cellpadding="0" border="0">
<tbody><tr><td colspan="2" style="padding-bottom:5px;color:#1b5f9b;font-size:18px;font-family:Arial,Helvetica,sans-serif">Keith Lostracco</td></tr>
<tr><td colspan="2" style="color:#333333;font-size:14px;font-family:Arial,Helvetica,sans-serif"><i>Interactive Developer</i></td></tr>
<tr><td colspan="2" style="color:#333333;font-size:14px;font-family:Arial,Helvetica,sans-serif"><b>Intent Productions, Inc.</b></td></tr>
<tr><td style="vertical-align:top;width:20px;color:#1b5f9b;font-size:14px;font-family:Arial,Helvetica,sans-serif" width="20" valign="top">m:</td><td style="color:#333333;font-size:14px;font-family:Arial,Helvetica,sans-serif">250 505 2444</td></tr>
<tr><td style="vertical-align:top;width:20px;color:#1b5f9b;font-size:14px;font-family:Arial,Helvetica,sans-serif" width="20" valign="top">w:</td><td style="vertical-align:top;color:#333333;font-size:14px;font-family:Arial,Helvetica,sans-serif" valign="top"><a href="http://IntentDev.io" style="color:#a94902;text-decoration:none;font-weight:normal;font-size:14px" target="_blank">IntentDev.io</a>  <span style="color:#1b5f9b">e: </span><a href="mailto:Keith@IntentDev.io" style="color:#a94902;text-decoration:none;font-weight:normal;font-size:14px" target="_blank">Keith@IntentDev.io</a></td></tr>
</tbody></table>
</div>
                </div></span></div></div></div></div></div></div>
</div>