java.lang.RuntimeException: Error: coverage module could not be imported Please make sure that the coverage module (http://nedbatchelder.com/code/coverage/) is properly installed in your interpreter: C:\Python27\python.exe Traceback (most recent call last): File "C:\eclipse\plugins\org.python.pydev.debug\_2.4.0.2012020116\pysrc\pydev\_coverage.py", line 34, in execute import coverage \#@UnresolvedImport ImportError: No module named coverage

pydev | barkingmadt | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    interaction with code coverage lost

    pydev | 5 years ago | barkingmadt
    java.lang.RuntimeException: Error: coverage module could not be imported Please make sure that the coverage module (http://nedbatchelder.com/code/coverage/) is properly installed in your interpreter: C:\Python27\python.exe Traceback (most recent call last): File "C:\eclipse\plugins\org.python.pydev.debug\_2.4.0.2012020116\pysrc\pydev\_coverage.py", line 34, in execute import coverage \#@UnresolvedImport ImportError: No module named coverage
  2. 0

    code coverage throws RuntimeException

    pydev | 1 decade ago | rzoz
    java.lang.RuntimeException: java.lang.RuntimeException: We can only get information on a dir.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Error: coverage module could not be imported Please make sure that the coverage module (http://nedbatchelder.com/code/coverage/) is properly installed in your interpreter: C:\Python27\python.exe Traceback (most recent call last): File "C:\eclipse\plugins\org.python.pydev.debug\_2.4.0.2012020116\pysrc\pydev\_coverage.py", line 34, in execute import coverage \#@UnresolvedImport ImportError: No module named coverage

      at org.python.pydev.core.log.Log.log()
    2. org.python.pydev
      ProgressOperation.execute
      1. org.python.pydev.core.log.Log.log(Log.java:99)
      2. org.python.pydev.debug.codecoverage.PyCoverage.refreshCoverageInfo(PyCoverage.java:203)
      3. org.python.pydev.debug.codecoverage.PyCodeCoverageView.executeRefreshAction(PyCodeCoverageView.java:243)
      4. org.python.pydev.debug.codecoverage.PyCodeCoverageView$RefreshAction.run(PyCodeCoverageView.java:220)
      5. org.python.pydev.utils.ProgressOperation.execute(ProgressOperation.java:48)
      5 frames
    3. Eclipse UI
      WorkspaceModifyOperation$1.run
      1. org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
      1 frame
    4. Core Resource Management
      Workspace.run
      1. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
      1 frame
    5. Eclipse UI
      WorkspaceModifyOperation.run
      1. org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
      1 frame
    6. JFace
      ProgressMonitorDialog.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      3. org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
      3 frames
    7. org.python.pydev
      PyCodeCoverageView$9.drop
      1. org.python.pydev.utils.ProgressOperation.startAction(ProgressOperation.java:67)
      2. org.python.pydev.debug.codecoverage.PyCodeCoverageView.setSelectedContainer(PyCodeCoverageView.java:457)
      3. org.python.pydev.debug.codecoverage.PyCodeCoverageView$9.drop(PyCodeCoverageView.java:801)
      3 frames
    8. RWT
      DropTarget$3.method6
      1. org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
      6. org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
      7. org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:456)
      8. org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
      8 frames
    9. org.eclipse.swt
      COM.DoDragDrop
      1. org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
      2. org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
      2 frames
    10. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
      2. org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
      3. org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
      4. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
      6. org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
      7. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
      7 frames
    11. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
      4 frames
    12. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    13. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
      1 frame
    14. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    15. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
      1 frame
    16. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    17. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    19. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1410)
      3 frames