ImportError: cannot import name protocol

Issue #134 closed
Nils Guillermin created an issue

I get this error running $ python2.7 test/ as well as $ python2.7 -m mvc.ui.widgets

Traceback (most recent call last):
  File "test/", line 8, in <module>
    from test_video import *
  File "/Users/megablanc/Developer/mirovideoconverter3/test/", line 8, in <module>
    from mvc import video
  File "test/../mvc/", line 5, in <module>
    from mvc import conversion
  File "test/../mvc/", line 12, in <module>
    from import get_thumbnail_synchronous
  File "test/../mvc/", line 8, in <module>
    from mvc.widgets import idle_add
  File "test/../mvc/widgets/", line 7, in <module>
    from .osx import widgetset
  File "test/../mvc/widgets/osx/", line 45, in <module>
    from .layout import VBox, HBox, Alignment, Table, Scroller, Expander, TabContainer, DetachedWindowHolder
  File "test/../mvc/widgets/osx/", line 49, in <module>
    import tableview
  File "test/../mvc/widgets/osx/", line 50, in <module>
    import tablemodel
  File "test/../mvc/widgets/osx/", line 34, in <module>
    from AppKit import (NSDragOperationNone, NSDragOperationAll, NSTableViewDropOn,
ImportError: cannot import name protocols

on OS X 10.10.4, installed pyobjc via pip.

Comments (3)

  1. Ronald Oussoren repo owner

    That's odd. What version of PyObjC was installed (pip list installed). The error seems to indicate that a mixture of older and newer packages is installed somehow. Older versions of PyObjC included sub packages named "protocols", but newer versions don't.

    BTW. I have no idea what mvc.ui.widgets is.

  2. Log in to comment