Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 11 Apr 2011 at 3:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant