Problem initiating code generation

  • Tefnet

    Tefnet - 2009-06-08


    I have conducted following steps to try to generate some code:

    1. Installed eclipse and some additional "software" as shown here:

    2. Set up Window -> Preferences -> Pydev -> Interpreter - Python like this:

    3. File -> New -> Other -> Pydev Project -> Next: and then Finish

    now the workspace looks like this:

    4. Right-clicked on root item in "Pydev Package Explorer" (tefserwis)  and selected "Create/Synchronize UML Model" (first from four pyuml icon does nothing) to get:
    The uml editor did _not_ open automatically.

    5. Right-clicked on tefserwis -> PyUML -> tefserwis.uml and selected "Initialize Class Diagram", clicked Finish

    6. Editor got opened, I have created a new package:

    7. Double clicked on a rectangle above core package's name and created a TefObject class with an "id" attribute:

    8. Saved and closed the diagrams

    9. Second pyuml icon (with a green snake) did nothing

    10. Right-clicked on root item in "Pydev Package Explorer" (tefserwis) and selected "Create/Synchronize Code", but nothing has appeared under src (an information window popped up for a fraction of a second).

    after 10. eclipse spits out an exception on stderr:

        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
        at org.eclipse.ui.internal.PluginAction.runWithEvent(
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
        at org.eclipse.jface.action.ActionContributionItem.access$2(
        at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(
        at org.eclipse.swt.widgets.EventTable.sendEvent(
        at org.eclipse.swt.widgets.Widget.sendEvent(
        at org.eclipse.swt.widgets.Display.runDeferredEvents(
        at org.eclipse.swt.widgets.Display.readAndDispatch(
        at org.eclipse.ui.internal.Workbench.runEventLoop(
        at org.eclipse.ui.internal.Workbench.runUI(
        at org.eclipse.ui.internal.Workbench.access$4(
        at org.eclipse.ui.internal.Workbench$
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.eclipse.equinox.launcher.Main.invokeFramework(
        at org.eclipse.equinox.launcher.Main.basicRun(
    Caused by: java.lang.NoSuchMethodError: org.python.pydev.core.IPythonPathNature.getProjectSourcePathSet()Ljava/util/Set;
        at pyUML.backend.EclipseHelperMethods.getPythonSrcDirs(
        at pyUML.pythonTree.PythonTreeRoot.<init>(
        at pyUML.actions.SyncCodeAction.doSync(
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(
        ... 31 more

    Does anybody happen to have any suggestions about making it work :)?

    Filip Zyzniewski

    • Martin Dittmar

      Martin Dittmar - 2009-06-08

      Hello Filip,

      thanks for your request!

      The problem is that pyDev released the new version 1.4.6 that changed the interface and is no longer compatible to PyUML.

      I created a new PyUML version 1.2.1 that works with pyDev 1.4.6.

      Please use the update manager to install PyUML 1.2.1, then everything should work again!



    • Tefnet

      Tefnet - 2009-06-10

      Thanks for help, it works now :).


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks