<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><p>I am writing to the scribus-dev list because the main register page was disabled. <br></p><p>I am trying to import XML into Scribus, using FormatXML, without success.<br></p><p>Whilst I have plenty of computing experience, I am a total novice when it comes to Scribus, publishing packages in general, Python, Python scripts, etc so would appreciate some help. I wish to import XML into Scribus.<br><br>I have tried to create a Python script "FormatXML", taken from the page <br><a class="bbc_link" href="https://wiki.scribus.net/canvas/Formatxml">https://wiki.scribus.net/canvas/Formatxml</a><br><br>I copied the complete code in the box headed Source, without any change, into a .txt file using notepad and changed the extension to py. I then tried to execute the script in Scribus but got the following error.<br><br>Traceback (most recent call last):<br> File "<string>", line 8, in <module><br> File "C:\XML script\FormatXML.py", line 179, in <module><br> main_wrapper()<br> File "C:\XML script\FormatXML.py", line 165, in main_wrapper<br> main()<br> File "C:\XML script\FormatXML.py", line 148, in main<br> xml_file = getFile("XML File", 'XML (*.xml)')<br>TypeError: getFile() takes exactly 4 arguments (2 given)<br><br>Unfortunately, this means nothing to me. I can only find two references to FormatXML, without the extension .py and cannot find any reference to py</p><p>I posted the problem to the Scribus forum, but so far have only had one response from a member of the forum who wrote -<br></p><p>________________<br></p><p>The above quoted part is the error message. In line 148 in your file there is a call to the getFile() function with to few arguments.<br><br>To me it looks as a bug in the code.<br><br>The call is<br></p><p>Code: <a class="codeoperation">[Select]</a><br></p><pre style="margin: 0; padding: 0;"><em> xml_file = getFile("XML File", 'XML (*.xml)')</em></pre><p><br>but the function is defined as<br></p><p>Code: <a class="codeoperation">[Select]</a><br></p><pre style="margin: 0; padding: 0;"><em>def getFile(caption, filter, defaultname, issave):</em></pre><p><br>But I don't know enough Python to know if there is some settings telling that some arguments are optional.</p><p>_________________________<br></p><p><br></p><p>Please could you tell me what to do. I am most anxious to start to use Scribus but am totally stuck at present. I imagine that others have managed to import XML into Scribus.<br></p><p>I understand that Adobe's inDesign has an option for importing XML without using a script and perhaps this is something that you might consider for the future.<br></p><p>Many thanks,<br></p><p>Rob Dixon<br></p></body></html>