What steps will reproduce the problem?
1. Install pygraphviz from svn
2. ./manage.py graph_models -a -g -o my_project_visualized.png
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
340, in execute_manager
utility.execute()
File
"/usr/lib/python2.5/site-packages/django/core/management/__init__.py", line
295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 77, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/lib/python2.5/site-packages/django/core/management/base.py",
line 96, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.5/site-packages/django_extensions/management/commands/graph_mo
dels.py",
line 32, in handle
self.render_output(dotdata, **options)
File
"/usr/lib/python2.5/site-packages/django_extensions/management/commands/graph_mo
dels.py",
line 46, in render_output
if [int(v) for v in pygraphviz.__version__.split('.')]<(0,36):
ValueError: invalid literal for int() with base 10: '37-svn'
Note: I am using the last version of django-command-extensions from svn.
Solution: I attach a patch that solvs the problem.
Original issue reported on code.google.com by jjconti@gmail.com on 24 Oct 2008 at 2:00
Original issue reported on code.google.com by
jjconti@gmail.com
on 24 Oct 2008 at 2:00Attachments: