0

I am trying to get a simple Blaze example, working on Ubuntu, inside an Anaconda installation (Python 3.3).

import blaze
from blaze import array
from datashape import dshape

# array creation
arr1 = array(3.142)
arr2 = array([[1, 2], [3, 4]])
print(arr1)
print(arr2)

But running gives me this error:

  import blaze
  File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/__init__.py", line 10, in <module>
    from . import catalog
  File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/__init__.py", line 4, in <module>
    from . import catalog_config
  File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_config.py", line 6, in <module>
    from .catalog_dir import is_abs_bpath, CatalogCDir
  File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_dir.py", line 5, in <module>
    from .catalog_arr import load_blaze_array
  File "/root/anaconda/envs/py3k/lib/python3.3/site-packages/blaze/catalog/catalog_arr.py", line 9, in <module>
    from datashape.type_equation_solver import matches_datashape_pattern
ImportError: No module named 'datashape.type_equation_solver'

However, I am able to import datashape, using

python -c "import datashape"

And when I try to conda install <pkgname>, I get that the dependencies are satisfied. I think that this is related to this question, but I find that advice impenetrable.

Any help is appreciated.

waitingkuo
  • 89,478
  • 28
  • 112
  • 118
tchakravarty
  • 10,736
  • 12
  • 72
  • 116

2 Answers2

2

The particular error you're getting looks like it's from blaze being built from a more recent checkout than datashape. If you update both of them to the latest master from github, the blaze import should work.

mwiebe
  • 275
  • 1
  • 7
0

Make sure there's no file or directory named blaze under your current working directory.

waitingkuo
  • 89,478
  • 28
  • 112
  • 118