Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
error al descargar Definition Files
03-25-2017, 10:51 PM (This post was last modified: 03-26-2017 12:26 AM by melchor.)
Post: #1
error al descargar Definition Files
Hola,
normalmente tengo desactivado descargar Definition Files en
.../panstamp/python_tools/lagarto/lagarto-swap/config/settings.xml
<update>False</update>

al poner
<update>True</update>

me da el siguiente error

Lo he probado en dos instalaciones diferentes

Code:
SWAP server starting...
Downloading Device Definition Files
Traceback (most recent call last):
  File "/usr/local/panstamp/python_tools/lagarto/lagarto-swap/lagarto-swap.py", line 59, in <module>
    swap_manager = SwapManager(settings)    
  File "/usr/local/panstamp/python_tools/lagarto/lagarto-swap/swapmanager.py", line 428, in __init__
    SwapInterface.__init__(self, swap_settings)
  File "/usr/local/lib/python2.7/dist-packages/swap/SwapInterface.py", line 253, in __init__
    self.server = SwapServer(self, settings, start)
  File "/usr/local/lib/python2.7/dist-packages/swap/SwapServer.py", line 744, in __init__
    self.update_definition_files()
  File "/usr/local/lib/python2.7/dist-packages/swap/SwapServer.py", line 650, in update_definition_files
    device_info = XmlDeviceDir()
  File "/usr/local/lib/python2.7/dist-packages/swap/xmltools/XmlDevice.py", line 192, in __init__
    self.read()
  File "/usr/local/lib/python2.7/dist-packages/swap/xmltools/XmlDevice.py", line 98, in read
    tree = xml.parse(self.fileName)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
    parser.feed(data)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: mismatched tag: line 70, column 2

¿Que puede ser?

He probado ha hacer una instalación nueva con el mismo resultado. salvo una linea nueva:
Code:
Unable to download devices.xml from remote server

Melchor Monleón
http://seniarq.es
http://climatiza.me
Find all posts by this user
Quote this message in a reply
03-26-2017, 06:07 AM
Post: #2
RE: error al descargar Definition Files
Parece que el error esta en el nuevo archivo devices.xml

Lo he sustituido por uno antiguo y ya funciona.

Al abrir el archivo xml en un navegador da el error:
This page contains the following errors:
error on line 70 at column 14: Opening and ending tag mismatch: developer line 0 and devices
Below is a rendering of the page up to the first error.

aunque no consigo detectar exactamente donde está este error.

Ajunto archivo defectuoso


Attached File(s)
.txt  devicesFALLO.xml.txt (Size: 3.67 KB / Downloads: 1)

Melchor Monleón
http://seniarq.es
http://climatiza.me
Find all posts by this user
Quote this message in a reply
03-27-2017, 08:02 PM
Post: #3
RE: error al descargar Definition Files
Muchas gracias Melchor. Problema solucionado.

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)