PyUMLGraph: Python debugger produces UML output (WINDOWS INSTALL)

Brad Clements bkc at Murkworks.com
Fri Oct 17 10:55:04 EDT 2003


install on win2k with python 2.3

F:\temp\PyUMLGraph-0.1.2>python setup.py install
Traceback (most recent call last):
  File "setup.py", line 15, in ?
    from src.Version import PROGRAM_VERSION
ImportError: No module named src.Version


F:\temp\PyUMLGraph-0.1.2>touch src\__init__.py
Touch  Version 4.2  Copyright (c) 1998 Borland International


F:\temp\PyUMLGraph-0.1.2>python setup.py install
running install
running build
running build_py

<snip>

Argh, pyumlgraph isn't copied over..

F:\temp\PyUMLGraph-0.1.2>copy src\pyumlgraph
d:\Python23\lib\site-packages\PyUMLGraph\pyumlgraph.py
        1 file(s) copied.

F:\temp\PyUMLGraph-0.1.2>d:\Python23\lib\site-packages\PyUMLGraph\pyumlgraph
.py -o sample.dot examples\simple.py


F:\temp\PyUMLGraph-0.1.2>dotty sample.dot

it works!

so. . we need __init__.py in src directory, and add pyumlgraph to manifest
to copy it somewhere, and if you don't put a .py extension on it, windows
won't run it.


--
Novell DeveloperNet Sysop #5

_
"Adam Feuer" <adamf at pobox.com> wrote in message
news:20031015180537.B4845 at sunflower.zipcon.net...
> Folks,
>   This is an announcement of the initial release of PyUMLGraph, a
> Python debugger that produces UML output in Graphviz's dot format. You
> can find out more about it here:
>
> http://www.pobox.com/~adamf/software/PyUmlGraph/
>
>   The idea is to use the UML diagrams as a way to understand complex
> Python software- since the diagrams are generated from running code,
> they are always up to date. The more coverage you have of the program
> through a test suite (such as unittest or PyUnit) the more complete
> your diagrams will be.
>   Since PyUMLGraph is a debugger, it has full access to Python type
> information, and can display that information in the UML diagrams- for
> instance, for class attributes and method return types.
>
>   PyUMLGraph is released under the GPL.
>
> cheers
> adam
> --
> Adam Feuer <adamf at pobox dot com>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>








More information about the Python-list mailing list