Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

past.builtins ImportError

📅 2019-May-12 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ caffe2, error, future ⬩ 📚 Archive


Calling a Caffe2 Python call gave this error:

$ python -c "from caffe2.python import core"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/caffe2/python/", line 9, in <module>
    from past.builtins import basestring
ImportError: No module named past.builtins


This requires the future package. Installing that solved the problem:

$ pip install --user future

Tried with: Raspbian 9

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧