-----Original Message-----
From: [email protected] [mailto:tech-talk-
[email protected]] On Behalf Of Pete Jemian
Sent: 04 June 2015 14:30
To: [email protected]
Subject: Re: aravisGigE areaDetector with Basler camera
The minidom XML support in aravisGigEApp/src/makeDbAndEdl.py fails on
parsing the very first part of the XML file.
Can it be that the XML file does not start with a declaration line?
Does the support file expect this? Such as:
<?xml version="1.0" encoding="UTF-8"?>
On 06/04/2015 08:25 AM, Specht, Eliot D. wrote:
I'm trying to use aravisGigE to drive a Basler acA1920 ethernet camera
with areaDetector. I'm following the instructions at
https://github.com/areaDetector/aravisGigE to add a new camera. As
detailed below, I can get an XML file from the camera, but
makeDbAndEdl.py is not parsing this file. The XML file is large, but the
failure seems to be right at the beginning. Am I doing something stupid,
or is the Basler camera incompatible with aravisGigE?
FIRST TWO LINES OF XML FILE:
Basler-21630837
<RegisterDescription
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.genicam.org/GenApi/Version_1_0"
xsi:schemaLocation="http://www.genicam.org/GenApi/Version_1_0
http://www.genicam.org/GenApi/GenApiSchema_Version_1_0.xsd"
MajorVersion="3" MinorVersion="7" ModelName="GigECamera"
ProductGuid="1F3C6A72-7842-4edd-9130-E2E90A2058BA"
SchemaMajorVersion="1" SchemaMinorVersion="0"
SchemaSubMinorVersion="1"
StandardNameSpace="GEV" SubMinorVersion="0" ToolTip="Basler generic
GigEVision camera interface" VendorName="Basler"
VersionGuid="6512A424-1B05-4C68-99D6-91F0E31857CD">
<Category Name="Root" NameSpace="Standard">
ATTEMPT TO ADD NEW CAMERA:
[root@video aravisGigE]#
Basler_acA1920.xmltoolbin/linux-x86_64/arv-tool-0.4m
Basler-21630837
[root@video aravisGigE]# bin/linux-x86_64/arv-tool-0.4 -n
"Basler-21630837" genicam > Basler_acA1920.xml
[root@video aravisGigE]# aravisGigEApp/src/makeDbAndEdl.py
Basler_acA1920.xml Basler_acA
Traceback (most recent call last):
File "aravisGigEApp/src/makeDbAndEdl.py", line 22, in <module>
xml_root = parse(args[0])
File "/usr/lib64/python2.7/xml/dom/minidom.py", line 1921, in parse
return expatbuilder.parse(file)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/usr/lib64/python2.7/xml/dom/expatbuilder.py", line 207, in
parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
[root@video aravisGigE]#
Eliot Specht Voice: (865)574-7682
Oak Ridge National Laboratory FAX: (865)574-4913
P.O. Box 2008, MS 6064
Oak Ridge, TN 37831-6064