Wikipedia talk:AutoWikiBrowser/Mono and Wine

From Wikipedia, the free encyclopedia
Jump to: navigation, search

don't work with wine--Ákos97 (talk) 13:29, 28 October 2015 (UTC)

I routinely use AWB under Wine, with the caveats noted here - David Gerard (talk) 20:13, 29 October 2015 (UTC)

Wine and external processing script[edit]

AWB is working under wine on Mint in a VirtualBox - and "successfully" runs an external script (Tools->external processing) however there is a problem with the Output file. AWB doesn't see or pick it up after the script exits. I've tried many different things but not luck. Here's the relevant section from my AWB settings xml:

<ExternalProgram>

 <Program>/home/adminuser/wi/wi.csh</Program>
 <Parameters>%%title%%</Parameters> 
 <PassAsFile>true</PassAsFile>
 <OutputFile>Z:\home\adminuser\wi\article.txt</OutputFile>

</ExternalProgram>

When running, AWB gives a pop-up box error: the top label says "External processing error" and the message in the box body says "Object reference not set to an instance of an object". The script nonetheless runs successfully and deposits the updated article.txt in the right place, but AWB doesn't read it back in. -- GreenC 16:28, 11 January 2016 (UTC)

Try with the output file as /home/adminuser/wi/article.txt, AWB won't know about the virtual Z drive that wine creates. Rjwilmsi 20:51, 11 January 2016 (UTC)
That was my original try, but it generates an error that it can't find "z:\home\adminuser\wi\home\adminuser\wi\article.txt" (or something like it, going from memory). It's a garbled path, a drive letter added and the forwardslashes converted to backslashes. That's what made me think it needed the drive letter and backslashes. -- GreenC 22:34, 11 January 2016 (UTC)
OK, so "Object reference not set to an instance of an object" is because System.Diagnostics.Process.WaitForExit doesn't work under wine. After that, yes file paths are problematic. AWB code change rev 11780 creates a version that works. Script and I/O file need to have full Linux file paths, so in your case, /home/adminuser/wi/wi.csh and /home/adminuser/wi/article.txt, things work for me that way (testing with a .sh script). Rjwilmsi 11:36, 12 January 2016 (UTC)
Hey that's awesome thanks for the quick patch! Wait for a next release and it will be incorporated, or does it need to be submitted for approval and go through a process? In the mean time I set up a system (method 2) that is working but is awkward, though useful in case someone can't get Wine working, or for whatever reason wants to use the native Windows version of AWB. -- GreenC 16:06, 12 January 2016 (UTC)