Personal tools
You are here: Home Products ArchGenXML Documentation Error reference CRITICAL Error while reparsing file 'Content/Auto.py'.
Document Actions

CRITICAL Error while reparsing file 'Content/Auto.py'.

This Error Reference applies to: Any version.

You're generating your code again and suddenly archgenxml complains about errors in a file.

When you get an error looking like this it can have three reasons.

  • You edited the file and made a python error. Missing closing ] or so.
  • Archgenxml might be generating wrong code based on your tagged values; as it tries to read in the file it just generated it can check for errors like this.
  • A third reason might be that the file was originally generated on windows and you're running archgenxml on linux/mac now; the python parser tends to be bit picky on this when run by archgenxml. In this case the error can look like this:
     CRITICAL Error while reparsing file '/Content/Auto.py'.
     Traceback (most recent call last):
       File "ArchGenXML/ArchGenXML.py", line 80, in ?
         main()
       File "ArchGenXML/ArchGenXML.py", line 77, in main
         gen.parseAndGenerate()
       File "/home/mirella/flexrent/Products/ArchGenXML/ArchetypesGenerator.py", 
       line 3094, in parseAndGenerate
         self.generateProduct(root)
       File "/home/mirella/flexrent/Products/ArchGenXML/ArchetypesGenerator.py", 
        line 3014, in generateProduct
         self.generatePackage(root)
       File "/home/mirella/flexrent/Products/ArchGenXML/ArchetypesGenerator.py", 
        line 2737, in generatePackage
         self.generatePackage(p,recursive=1)
       File "/home/mirella/flexrent/Products/ArchGenXML/ArchetypesGenerator.py", 
        line 2672, in generatePackage
         mod=PyParser.PyModule(filename)
       File "/home/mirella/flexrent/Products/ArchGenXML/PyParser.py", 
        line 53, in __init__
         self.ast = parser.suite(self.filebuf)
       File "<string>", line 21
         __author__  = ''' <>, '''
    
by Reinout van Rees last modified December 22, 2005 - 14:07

Fix for reason #3?

Posted by Kevin Worth at April 25, 2006 - 17:30

I'm working with someone who uses Windows, and I'm on a Mac. Is there something I can do to get around this?

yes

Posted by Reinout van Rees at April 25, 2006 - 22:30
you'll have to convert the lineendings to the mac/unix formats. There are a number of tools for this. In case you're using subversion or so: make sure you're setting the lineending-behaviour correctly. Search plone.org (or alternatively zope.org) for subversion instructions.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by