Hi, I am using ArchGenXML to create Archetypes for a plone site. I have followed the instructions that come with the ArchGenXML download but it is still not working. I created an zuml file called inventory.xmi and am trying to convert it into an archetype for plone by doing this
Code:
./ArchGenXML.py inventory.xmi
to create an archetype for a plone site. However this is the result of running that code:
Code:
ArchGenXML 1.4.0-beta2
(c) 2003-2005 BlueDynamics KEG, under GNU General Public License 2.0 or later
INFO Parsing...
INFO Directory in which we're generating the files: ''.
INFO Generating...
INFO Starting new Product: 'model 1'.
INFO Generating class 'inventory'.
***
***Error while reparsing the file ./model_1/__init__.py
***
Traceback (most recent call last):
File "./ArchGenXML.py", line 80, in ?
main()
File "./ArchGenXML.py", line 77, in main
gen.parseAndGenerate()
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2818, in parseAndGenerate
self.generateProduct(root)
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2738, in generateProduct
self.generatePackage(root)
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2469, in generatePackage
self.generateStdFiles(package)
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2086, in generateStdFiles
self.generateStdFilesForProduct(package)
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2305, in generateStdFilesForProduct
self.generateProductInitPy(package)
File "/home/jharvey/ArchGenXML/ArchetypesGenerator.py", line 2212, in generateProductInitPy
parsed = self.parsePythonModule(package.getFilePath (), '__init__.py')
File "/home/jharvey/ArchGenXML/BaseGenerator.py", line 152, in parsePythonModule
parsed = PyParser.PyModule(targetPath)
File "/home/jharvey/ArchGenXML/PyParser.py", line 53, in __init__
self.ast = parser.suite(self.filebuf)
File "<string>", line 32
from Products.model 1.config import *
^
SyntaxError: invalid syntax
I do not know what any of this error message means. Does anyone know how I can fix this or someone else who can help me fix this? Thanks