I'm following a tutorial that uses castra and dask to read in reddit comments.
I have installed the latest versions of dask and pandas using anaconda and castra using pip. My pandas version is '0.22.0', and I have installed msgpack using pip install pandas-msgpack -U
I am using Python 3.6.
Trying to import castra gives me the following error:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-16-fcdf7be49118> in <module>()
32 from pandas import Timestamp, NaT, DataFrame
33 from toolz import dissoc
---> 34 from castra import Castra
35 from toolz import peek, partition_all
36 import time
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/__init__.py in <module>()
----> 1 from .core import Castra
2
3 __version__ = '0.1.7'
/Users/edefilippis/anaconda/lib/python3.6/site-packages/castra/core.py in <module>()
22 import pandas as pd
23
---> 24 from pandas import msgpack
25
26
ImportError: cannot import name 'msgpack'
According to https://pandas-msgpack.readthedocs.io/en/latest/install.html try:
as you might be missing some dependencies. Also see pip vs conda:
What is the difference between pip and conda?