Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-570

codec import error on python 3.3.2 / os x 10.8.5

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: 2.6.2
    • Component/s: None
    • Labels:
    • Environment:
      Mac OS X 10.8.5, Python 3.3.2

      $curl -O http://python-distribute.org/distribute_setup.py
      $python3 distribute_setup.py
      $sudo ln -s /Library/Frameworks/Python.framework/Versions/3.3/bin/easy_install-3.3 /usr/local/bin/
      $sudo easy_install-3.3 pymongo

      $ python3
      Python 3.3.2 (v3.3.2:d047928ae3f6, May 13 2013, 13:52:24)
      [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import pymongo
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pymongo-2.6.2-py3.3-macosx-10.6-intel.egg/pymongo/_init_.py", line 80, in <module>
      from pymongo.connection import Connection
      File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pymongo-2.6.2-py3.3-macosx-10.6-intel.egg/pymongo/connection.py", line 39, in <module>
      from pymongo.mongo_client import MongoClient
      File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/pymongo-2.6.2-py3.3-macosx-10.6-intel.egg/pymongo/mongo_client.py", line 44, in <module>
      from bson.py3compat import b
      File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages/bson-0.3.3-py3.3.egg/bson/_init_.py", line 54, in <module>
      from codec import *
      ImportError: No module named 'codec'
      >>>

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            appleguru Adam Urban
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: