On Apr 5, 2010, at 1:51 AM, jvandal wrote:
> Just trying the PyCon tutorial and I am trying to run
> ------------------------
> import dabo
> app = dabo.dApp()
> app.start()
> ----------------
> This is the execution of this file
> What am I doing wrong???
>
> Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)]
> on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import simple
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "simple.py", line 3, in <module>
> app.start()
> File "C:\python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\dApp.py",
> line 3
> 83, in start
> self.setup()
[snip]
> File
> "C:\python25\lib\site-packages\dabo-0.9.2-py2.5.egg\dabo\lib\connParser.p
> y", line 79, in importConnections
> xml.sax.parse(f, ch)
> File "C:\Python25\lib\xml\sax\__init__.py", line 33, in parse
> parser.parse(source)
> File "C:\Python25\lib\xml\sax\expatreader.py", line 107, in parse
> xmlreader.IncrementalParser.parse(self, source)
> File "C:\Python25\lib\xml\sax\xmlreader.py", line 123, in parse
> self.feed(buffer)
> File "C:\Python25\lib\xml\sax\expatreader.py", line 211, in feed
> self._err_handler.fatalError(exc)
> File "C:\Python25\lib\xml\sax\handler.py", line 38, in fatalError
> raise exception
> xml.sax._exceptions.SAXParseException:
> C:\dab\dabo\projects\FileName.cnxml:1:0:
> syntax error
It looks like you have a file named 'FileName.cnxml' in your projects
folder that apparently is not well-formed XML. What is that file, and how was
it created?
I think I'm going to change Dabo so that if it encounters a
poorly-formed .cnxml file, it simply records it in the error log instead of
crashing like this.
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]