ImportError: cannot import name protocol

Issue #134 closed
Nils Guillermin
created an issue

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

Traceback (most recent call last):
  File "test/runtests.py", line 8, in <module>
    from test_video import *
  File "/Users/megablanc/Developer/mirovideoconverter3/test/test_video.py", line 8, in <module>
    from mvc import video
  File "test/../mvc/__init__.py", line 5, in <module>
    from mvc import conversion
  File "test/../mvc/conversion.py", line 12, in <module>
    from mvc.video import get_thumbnail_synchronous
  File "test/../mvc/video.py", line 8, in <module>
    from mvc.widgets import idle_add
  File "test/../mvc/widgets/__init__.py", line 7, in <module>
    from .osx import widgetset
  File "test/../mvc/widgets/osx/widgetset.py", line 45, in <module>
    from .layout import VBox, HBox, Alignment, Table, Scroller, Expander, TabContainer, DetachedWindowHolder
  File "test/../mvc/widgets/osx/layout.py", line 49, in <module>
    import tableview
  File "test/../mvc/widgets/osx/tableview.py", line 50, in <module>
    import tablemodel
  File "test/../mvc/widgets/osx/tablemodel.py", 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