Unable to Generate Python

  • George F. Rice

    George F. Rice - 2006-09-06

    Using the Feb 2006 release (called 1.4 on the web but 1.3 on the splash screen), I created a simple class diagram (two classes - Line and Point - with simple constructors, a couple of attributes, and a method) and selected Export -> Python; selected a folder to hold the code; then received the following exception in the console window:

    Using version 8  of the exporter
    Traceback (most recent call last):
      File "/home/ricegf/pyut/pyut-1.4.0/src/AppFrame.py", line 1621, in OnExport
      File "/home/ricegf/pyut/pyut-1.4.0/src/plugins/PyutIoPlugin.py", line 249, in doExport
      File "/home/ricegf/pyut/pyut-1.4.0/src/plugins/IoPython.py", line 564, in write
        self._logMessage("IoPython", "Saving...")
    AttributeError: IoPython instance has no attribute '_logMessage'

    Segmentation fault

    Any idea what went wrong?

    • newalp

      newalp - 2007-06-07

      I had the same issue.
      You just have to rename the method
      def logMessage(self, module, msg):
      def _logMessage(self, module, msg):
      in the file "\pyut-1.4.0\src\plugins\PyutPlugin.py" (l.31).


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks