DrDub / uml-to-django

Automatically exported from code.google.com/p/uml-to-django
0 stars 0 forks source link

problem with step nb 6 (can't find '__main__' module in 'uml2dj' ") #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
hi,
I am quite new to django but I liked the idea of generating the model from the 
UML and so I was looking forward to use this "uml-to-django", but I have failed 
after few steps - please help me with it (as I am new I put quite exhaustive 
description what I did):

What steps will reproduce the problem?
1. I have Python 2.7.1 & django & libxml2-python-2.7.7.win32-py2.7 and also 
ArgoUML installed
2. I have a new django project called "mysite" (under .\mysite\) with an empty 
application called APP (under .\mysite\APP\)... and I can successfully run both 
'python manage.py syncdb' and 'python manage.py runserver' in that directory 
(NOTE:I have closed server for next steps)
3. I have downloaded the uml-to-django.zip and unzipped it into .\mysite\uml2dj\
4. I have opened .\mysite\uml2dj\uml2dj.zargo in ArgoUML (draw 2 associated 
classes inside MyApplication board) and saved it as APP.zargo (in the same 
.\mysite\uml2dj\ folder)
5. I have exported in as .\mysite\APP.xmi
6... when I do the 'python uml2dj APP' I have following error in command line:

" .\mysite>python uml2dj APP
C:\Program Files\Python27\python.exe: can't find '__main__' module in 'uml2dj' "

=== Additional info ===
a) I have tried it with AlgoUML both turned on & off as well - same message
b) I have following files in my .\mysite\uml2dj\ folder (while running step.6):
a.txt
APP.zargo
APP.zargo~
uml2dj.zargo
uml2djlib.py
xmi2djadmin.xsl
xmi2djadmin_custom.xsl
xmi2djadmin_generic.xsl
xmi2djmodels.xsl
xmi2djmodels_generic.xsl
xmilib.xsl
__init__.py (which seems to be empty)

thanks a lot in advance,
Borys

Original issue reported on code.google.com by Borys.Bl...@gmail.com on 11 Apr 2011 at 3:47

makera commented 8 years ago

6... when I do the 'python uml2dj APP' I have following error in command line: you must do 'python uml2dj.py APP'