Pyreverse on multiple modules
Pylint-1.7.1 is installed here and runs with python-3.6.5. I have a directory with 5 modules (not my project) and I want to understand the logic using pyreverse. It's not working for me and the pyreverse web page hasn't helped me learn how to use it successfully. The directory contains these modules: controller.py, main.py, addModRecord.py, commonDlgs.py, model.py Invoking pyreverse yields a ValueError: $ pyreverse -o png -f ALL -cAS -p ./main.py addModRecord.py commonDlgs.py controller.py model.py parsing addModRecord.py... parsing commonDlgs.py... parsing controller.py... parsing model.py... Traceback (most recent call last): File "/usr/bin/pyreverse", line 11, in <module> load_entry_point('pylint==1.7.1', 'console_scripts', 'pyreverse')() File "/usr/lib/python3.6/site-packages/pylint/__init__.py", line 24, in run_pyreverse Run(sys.argv[1:]) File "/usr/lib/python3.6/site-packages/pylint/pyreverse/main.py", line 110, in __init__ sys.exit(self.run(args)) File "/usr/lib/python3.6/site-packages/pylint/pyreverse/main.py", line 125, in run diadefs = handler.get_diadefs(project, linker) File "/usr/lib/python3.6/site-packages/pylint/pyreverse/diadefslib.py", line 223, in get_diadefs diagrams.append(generator.class_diagram(project, klass)) File "/usr/lib/python3.6/site-packages/pylint/pyreverse/diadefslib.py", line 185, in class_diagram module, klass = klass.rsplit('.', 1) ValueError: not enough values to unpack (expected 2, got 1) Pyreverse is looking at ../pyreverse/main.py rather than the main.py module in the code I want analyzed. I need to learn how to write the command line so pyreverse shows me the relationships among modules, classes, and methods, and I've not found docs or a web site discussion that shows me how to do this. Regards, Rich
participants (1)
-
Rich Shepard