<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><span>on: May 09, 2016, 04:04:18 pm I have seen one post asking about:</span><br></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><div><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">I have tried to create a Python script "FormatXML", taken from the page</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><a href="https://wiki.scribus.net/canvas/Formatxml" class="ydp82cb23e3bbc_link" style="color: rgb(53, 110, 166); border-bottom: 1px solid rgb(168, 182, 207); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);" rel="nofollow" target="_blank">https://wiki.scribus.net/canvas/Formatxml</a><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">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.</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">Traceback (most recent call last):</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> File "<string>", line 8, in <module></span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> File "C:\XML script\FormatXML.py", line 179, in <module></span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> main_wrapper()</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> File "C:\XML script\FormatXML.py", line 165, in main_wrapper</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> main()</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> File "C:\XML script\FormatXML.py", line 148, in main</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"> xml_file = getFile("XML File", 'XML (*.xml)')</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">TypeError: getFile() takes exactly 4 arguments (2 given)</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">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</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">I hope that someone is kind enough to put me out of my misery!</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">Many thanks</span><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);">Rob Dixon</span></div><div><span style="color: rgb(68, 68, 68); font-family: Verdana, sans-serif; font-size: 12.48px; background-color: rgb(217, 228, 239);"><br></span></div><div dir="ltr" data-setdir="false"><div><div dir="ltr" data-setdir="false" style="color: rgb(0, 0, 0); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;">Same problem I am facing now on the same script which I downloaded from the same place. Is there any update available for that, because someone from Scribus provided him one updated script</div><div><br></div></div><div dir="ltr" data-setdir="false">regards,</div><div dir="ltr" data-setdir="false">Srikrishnan</div></div></div></div></body></html>