|
|
|
|
sparky gmail
()
|
|
||||||||||||
|
Hello,
I've been trying to set up ArgoUML to use the archgenxml_profile.xmi for the drop down lists available in ArgoUML. The argouml portion seems to be working correctly. However when I try to run ArchgenXML.py against the XMI file generated I get the following error: It seems the dictionary "stereotypes[id]" is empty. Am I doing something wrong? $ ArchGenXML.py LeedsBook.xmi INFO ArchGenXML Version 2.2 (c) 2003-2009 BlueDynamics Alliance, Austria, GPL 2.0 or later INFO Parsing... INFO Parsing... Traceback (most recent call last): File "/usr/local/bin/ArchGenXML.py", line 133, in ? main() File "/usr/local/bin/ArchGenXML.py", line 114, in main gen.parseAndGenerate() File "/usr/local/lib/python2.4/site-packages/archgenxml-2.2-py2.4.egg/archgenx ml/ArchetypesGenerator.py", line 4110, in parseAndGenerate generate_datatypes=self.generate_datatypes) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 2846, in parse root = buildHierarchy(doc, packages, profile_docs=profile_docs) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 2760, in buildHierarchy res.buildClassesAndInterfaces() File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 1397, in buildClassesAndInterfaces self.buildClasses() File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 1371, in buildClasses xc = XMIClass(c, package=self) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 1559, in __init__ XMIElement.__init__(self, *args, **kw) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 833, in __init__ self.initFromDOM(domElement) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 1575, in initFromDOM XMIElement.initFromDOM(self, domElement) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 888, in initFromDOM self.calculateStereoType() File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 1097, in calculateStereoType return XMI.calculateStereoType(self) File "/usr/local/lib/python2.4/site-packages/xmiparser-1.4-py2.4.egg/xmiparser /xmiparser.py", line 665, in calculateStereoType st = stereotypes[id] KeyError: u'ArchGenXMLprofile.xmi#b460e255-58cc-5971-817b-c714181f2b5e' ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Tom Russell
()
|
|
||||||||||||
|
On Tuesday 18 August 2009, sparky gmail wrote:
> Hello, > > I've been trying to set up ArgoUML to use the archgenxml_profile.xmi > for the drop down lists available in ArgoUML. > > The argouml portion seems to be working correctly. > > However when I try to run ArchgenXML.py against the XMI file > generated I get the following error: > > It seems the dictionary "stereotypes[id]" is empty. Am I doing > something wrong? > profile, so I made sure both to install AGX using the Zope instance of python, rather than the system python, and use that installation to generate the profile. I'm not sure whether this is the issue you're having. My notes from doing this myself are included below in case it's any help. -Tom Installed AGX using instructions at: http://plone.org/documentation/manual/archgenxml2/startup/installation used zopepy in Plone install, rather than /opt/Python Looks good. Ran archgenxml on a model successfully run the ArgoUML profile generator note: this is only for my current ArgoUML (0.24). With a later version see instructions at URL above. Found instructions at: http://plone.org/documentation/manual/archgenxml2/startup/ configure-argouml-to-use-the-archgenxml-profile In FireFox ScrapBook bin/agx_generate_profile (or whatever) creates .xmi file in AGX dir (AGX dir in /opt/Plone-3.2/instance_home/archgenxml_buildout) Modified Argo startup script to grab the default profile (.xmi file) Now have AT types in Argo. Cool. And can be assured that AGX is generating code compatible (I hope) with the Plone installation, due to having run the installer with zopepy. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Vincent Fretin
()
|
|
||||||||||||
|
Hello,
You have to use the latest version 2.4.1 published on pypi. The version on plone.org is old, and I can't do a release there because of a permission issue in PloneSoftwareCenter. The only official installation procedure is at: http://plone.org/documentation/manual/archgenxml2/startup/installation You have to use ArgoUML > 0.24. 0.28 is ok. 0.28.1 was released yesterday, should be fine too. and you should use the bin/archgenxml script instead of calling ArchGenXML.py. Vincent Fretin Ecreall Site : http://vincentfretin.ecreall.com On Wed, Aug 19, 2009 at 8:04 AM, Tom <[hidden email]> wrote:
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |