Project

General

Profile

RE: Python & GenTL (XML parser error) ยป error msg.txt

Viacheslav Mazlin, 09/19/2022 02:09 PM

 
1
(gentl_38) C:\Users\salhadda\test_SNAP1>python snap.py
2
C:\Users\salhadda\Documents\XMLFOLDER\
3
2022-09-19 16:03:50,252 - harvesters - INFO - Added c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll to the CTI file list.
4
2022-09-19 16:03:50,254 - harvesters - INFO - Discarded the device information list.
5
2022-09-19 16:03:50,263 - harvesters - INFO - Initialized GenTL Producer, c:\Program Files\Critical Link LLC\GenTL Viewer\bin\GenTL.dll.
6
2022-09-19 16:03:50,264 - harvesters - INFO - Opened System module, criticallink/gentl.dll.
7
2022-09-19 16:03:50,264 - harvesters - INFO - Opened Interface module, Simulated.
8
2022-09-19 16:03:50,273 - harvesters - INFO - Opened Interface module, GEV.
9
2022-09-19 16:03:51,296 - harvesters - INFO - Opened Interface module, U3V.
10
2022-09-19 16:03:51,338 - harvesters - INFO - Updated the device information list.
11
Found 2 devices
12
[(id_='DMK 33GR0134:45610566', vendor='The Imaging Source Europe GmbH', model='DMK 33GR0134', tl_type='GEV', user_defined_name=None, serial_number='45610566', version='Rev 1477, FPGA GigE3:35'), (id_='1EF80000061F', vendor='Critical Link LLC', model='MityCAM-35MMFHDXS', tl_type='U3V', user_defined_name=None, serial_number='1567', version='1.0')]
13
2022-09-19 16:03:51,533 - harvesters - INFO - Opened Device module, 1EF80000061F.
14
2022-09-19 16:03:51,540 - harvesters - WARNING - Error while parsing XML stream at line 2 and column 0 : 'syntax error' : RuntimeException thrown (file 'XmlParser.cpp', line 1720)
15
Traceback (most recent call last):
16
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\harvesters\core.py", line 2313, in _get_port_connected_node_map
17
    node_map.load_xml_from_zip_file(file_path)
18
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\genicam\genapi.py", line 1826, in load_xml_from_zip_file
19
    return _genapi.NodeMap_load_xml_from_zip_file(self, ZipFileName)
20
_genapi.RuntimeException: File open failed in ParseXmlFile. Filename = 'C:\Users\salhadda\Documents\XMLFOLDER\criticallink_systemgentl.xml' : RuntimeException thrown (file 'XmlParser.cpp', line 131)
21

    
22
During handling of the above exception, another exception occurred:
23

    
24
Traceback (most recent call last):
25
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\harvesters\core.py", line 2316, in _get_port_connected_node_map
26
    node_map.load_xml_from_file(file_path)
27
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\genicam\genapi.py", line 1820, in load_xml_from_file
28
    return _genapi.NodeMap_load_xml_from_file(self, FileName)
29
_genapi.RuntimeException: Error while parsing XML stream at line 2 and column 0 : 'syntax error' : RuntimeException thrown (file 'XmlParser.cpp', line 1720)
30
2022-09-19 16:03:51,543 - harvesters - INFO - C:\Users\salhadda\Documents\XMLFOLDER\criticallink_systemgentl.xml has been removed
31
Traceback (most recent call last):
32
  File "snap.py", line 46, in <module>
33
    ia = h.create_image_acquirer(list_index=1)
34
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\harvesters\core.py", line 3379, in create_image_acquirer
35
    ia = ImageAcquirer(
36
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\harvesters\core.py", line 1769, in __init__
37
    node_map = self._get_port_connected_node_map(
38
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\harvesters\core.py", line 2336, in _get_port_connected_node_map
39
    node_map.connect(concrete_port, port.name)
40
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\genicam\genapi.py", line 1947, in connect
41
    return self._connect(*args)
42
  File "C:\Users\salhadda\Anaconda3\envs\gentl_38\lib\site-packages\genicam\genapi.py", line 1857, in _connect
43
    return _genapi.NodeMap__connect(self, *args)
44
_genapi.AccessException: Feature not present (reference not valid) : AccessException thrown (file 'NodeMapRef.h', line 497)
45
2022-09-19 16:03:51,567 - harvesters - INFO - Started resetting the Harvester object.
46
2022-09-19 16:03:51,569 - harvesters - INFO - Removed the all CTI file from the list.
47
2022-09-19 16:03:51,570 - harvesters - INFO - Discarded the device information list.
48
2022-09-19 16:03:51,571 - harvesters - INFO - Closed Interface module, Simulated.
49
2022-09-19 16:03:51,573 - harvesters - INFO - Closed Interface module, GEV.
50
2022-09-19 16:03:51,576 - harvesters - INFO - Closed Interface module, U3V.
51

    
52
(gentl_38) C:\Users\salhadda\test_SNAP1>
    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)