Hello,<br><br>I&#39;m using this wordpress library for Python (<a href="http://www.blackbirdblog.it/programmazione/progetti/28#english" target="_blank">http://www.blackbirdblog.it/programmazione/progetti/28#english</a>). When I use it through the Python shell, or any other program, it runs just fine. However when I use it through the GUI I&#39;ve prepared it gives the following error:<br>


<br>Traceback (most recent call last):<br>&nbsp; File &quot;project.py&quot;, line 230, in postWordpress<br>&nbsp;&nbsp;&nbsp; wp = wordpresslib.WordPressClient(<div>wordpress, username, password)<br>&nbsp; File &quot;/home/dcelasun/pyqt/proje/wordpresslib.py&quot;, line 129, in __init__<br>


&nbsp;&nbsp;&nbsp; self._server = xmlrpclib.ServerProxy(self.url)<br>&nbsp; File &quot;/usr/lib/python2.5/xmlrpclib.py&quot;, line 1409, in __init__<br>&nbsp;&nbsp;&nbsp; type, uri = urllib.splittype(uri)<br>&nbsp; File &quot;/usr/lib/python2.5/urllib.py&quot;, line 1023, in splittype<br>


&nbsp;&nbsp;&nbsp; match = _typeprog.match(url)<br>TypeError: buffer size mismatch<br><br><br>I&#39;ve googled for quite some time but couldn&#39;t find anything. Here&#39;s the function that does the actual work. Again, the following works in the shell, but gives the above error with PyQt<br>
<br>&nbsp;&nbsp;&nbsp; def postWordpress(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wordpress = ui.lineEdit.text()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; username = ui.lineEdit_2.text()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; password = ui.lineEdit_3.text()<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; post_title = ui.lineEdit_4.text()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; post_body = ui.textEdit.toPlainText()<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # prepare client object <br><div class="Ih2E3d">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wp = wordpresslib.WordPressClient(wordpress, username, password) <br>&nbsp;<br></div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # select blog id <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wp.selectBlog(0) <br><br><div id=":1a4" class="ArwC7c ckChnd">
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; # create post object <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;post = wordpresslib.WordPressPost() <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;post.title = post_title <br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;post.description = post_body<br>&nbsp;&nbsp; &nbsp; <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;# publish post <br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;idNewPost = wp.newPost(post, True)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ui.label_12.setText(&quot;Your post is successfully published!&quot;)
</div><br><br>What do you think is wrong?<br><br>Thanks,<br>Can<br></div><br>