Mendeley / mrec

A recommender systems development and evaluation package by Mendeley
Other
563 stars 174 forks source link

`mrec_train` error: `AttributeError: 'list' object has no attribute 'get'` #16

Closed nzw0301 closed 6 years ago

nzw0301 commented 7 years ago

When I executed mrec_train -n4 --input_format tsv --train "splits/u.data.train.*" --outdir models in here, the error appeared.

$ mrec_train -n4 --input_format tsv --train "splits/u.data.train.*" --outdir models
/Users/nzw/.pyenv/versions/miniconda2-latest/lib/python2.7/site-packages/ipython-4.0.0-py2.7.egg/IPython/parallel.py:13: ShimWarning: The `IPython.parallel` package has been deprecated. You should import from ipyparallel instead.
  "You should import from ipyparallel instead.", ShimWarning)
Traceback (most recent call last):
  File "/Users/nzw/.pyenv/versions/miniconda2-latest/bin/mrec_train", line 11, in <module>
    load_entry_point('mrec==0.3.1', 'console_scripts', 'mrec_train')()
  File "build/bdist.macosx-10.7-x86_64/egg/mrec/examples/train.py", line 22, in main
ImportError: cannot import name Client

To run correctly, I installed ipyparallel.

But, there is the other error:

$ mrec_train -n4 --input_format tsv --train "splits/u.data.train.*" --outdir models
...
File "/Users/nzw/.pyenv/versions/miniconda2-latest/bin/mrec_train", line 11, in <module>
    load_entry_point('mrec==0.3.1', 'console_scripts', 'mrec_train')()
File "build/bdist.macosx-10.7-x86_64/egg/mrec/examples/train.py", line 137, in main
File "build/bdist.macosx-10.7-x86_64/egg/mrec/parallel/item_similarity.py", line 39, in run
AttributeError: 'list' object has no attribute 'get'

I also tried to use only ipython. So, I installed some old ipythons (4.1.1 and 3.2.1) , but both failed.