The first line is printed by something in aravis, so this is not Basler's fault. However, the fact it doesn't start with <?xml ... probably is...
Thanks,
Tom Cobb
> -----Original Message-----
> From: Pete Jemian [mailto:[email protected]]
> Sent: 04 June 2015 14:38
> To: Cobb, Tom (DLSLtd,RAL,TEC); [email protected]; [email protected]
> Subject: Re: aravisGigE areaDetector with Basler camera
>
> Basler should be informed that this file, with a .xml extension, is not
> "well-formed". The first line "Basler-21630837" certainly breaks the
> XML API.
>
> On 06/04/2015 08:35 AM, [email protected] wrote:
> > It does indeed expect this. Aravis also started printing the camera name at
> the top of the genicam file which is not very helpful, so you should remove
> the line:
> >
> > Basler-21630837
> >
> > and replace it with:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> >
> > I should really fix the script to be robust to this...
> >
> > Thanks,
> > Tom Cobb
> >
> >
> >> -----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
> >>>
>
> --
> ----------------------------------------------------------
> Pete R. Jemian, Ph.D. <[email protected]>
> Beam line Controls and Data Acquisition, Group Leader
> Advanced Photon Source, Argonne National Laboratory
> Argonne, IL 60439 630 - 252 - 3189
> -----------------------------------------------------------
> Education is the one thing for which people
> are willing to pay yet not receive.
> -----------------------------------------------------------
--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
- References:
- aravisGigE areaDetector with Basler camera Specht, Eliot D.
- Re: aravisGigE areaDetector with Basler camera Pete Jemian
- RE: aravisGigE areaDetector with Basler camera tom.cobb
- Re: aravisGigE areaDetector with Basler camera Pete Jemian
- Navigate by Date:
- Prev:
Re: aravisGigE areaDetector with Basler camera Pete Jemian
- Next:
RE: aravisGigE areaDetector with Basler camera (solved) Specht, Eliot D.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: aravisGigE areaDetector with Basler camera Pete Jemian
- Next:
RE: aravisGigE areaDetector with Basler camera (solved) Specht, Eliot D.
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|