ImportError: No module named zope.interface

前端 未结 3 1504
轻奢々
轻奢々 2021-01-04 08:24

I am trying to run server for iphone using http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server

My machine is mac 10.6.8 Python versi

3条回答
  •  渐次进展
    2021-01-04 09:06

    The problem is that an __init__.py file is not present under zope directory so this directory is not scanned for imports.

    Creating a blank __init__.py file under zope directory will do the trick.

    I solved this error in UNIX by browsing to the zope directory by executing:

    $touch __init__.py
    

    I can confirm that this works also with virtualenv pip installation of zope interface

提交回复
热议问题