wsharba / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 1 forks source link

pyxform 0.9.22 validation not completing #1055

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Install pyxform 0.9.22
2.Run converter
3.Conversion completes but validation does not

What is the expected output? What do you see instead?
Successful conversion and validation.  Conversion to XML completes but 
validation does not.  See attachment for error message.

What version of the product are you using? On what operating system?
pyxform 0.9.22 Windows 7 OS

Please provide any additional information below.
I could be wrong, I'm not a Unix expert; but it looks to me like this is an 
issue with a Unix specific command being included in pyxform which doesn't work 
on Windows.  It is in pyxform/odk_validate/__init__.py, the _java_installed 
function, the "which" command submitted through Popen.

+def _java_installed():
+    p = Popen(["which","java"], stdout=PIPE)
+    return len(p.stdout.readlines()) != 0

When I comment out the call for this function, converter and validation both 
work fine.

Original issue reported on code.google.com by jasi...@gmail.com on 3 Sep 2014 at 4:44

Attachments:

GoogleCodeExporter commented 9 years ago
We don't maintain pyxform. Please file at 
https://github.com/xlsform/pyxform/issues

Original comment by yano...@nafundi.com on 3 Sep 2014 at 7:17

GoogleCodeExporter commented 9 years ago
Then it is confusing to have it listed as a supported project on the Source tab.

Original comment by jasi...@gmail.com on 3 Sep 2014 at 7:25

GoogleCodeExporter commented 9 years ago
We are in the middle of a transition so sorry about that. I've updated the 
source tab.

Original comment by yano...@nafundi.com on 3 Sep 2014 at 10:20