usc-isi-i2 / dsbox-profiling

The data profiling TA1 component of DSBox
MIT License
5 stars 3 forks source link

Error while running dsbox profiler #13

Open yamsgithub opened 6 years ago

yamsgithub commented 6 years ago

While running the example code in the README I got the following error:

TypeError Traceback (most recent call last)

in () ----> 1 from dsbox.datapreprocessing.profiler import Profiler 2 import pandas as pd 3 4 profiler = Profiler() 5 data = pd.read_csv('/Users/yamuna/D3M/data/185_baseball/185_baseball_dataset/tables/learningData.csv', dtype=object) ~/anaconda3/lib/python3.6/site-packages/dsbox/datapreprocessing/profiler/__init__.py in () ----> 1 from .data_profile import Profiler, MyEncoder 2 3 from pkgutil import extend_path 4 __path__ = extend_path(__path__, __name__) ~/anaconda3/lib/python3.6/site-packages/dsbox/datapreprocessing/profiler/data_profile.py in () 17 18 ---> 19 class Profiler(TransformerPrimitiveBase[Input, Output]): 20 """ 21 data profiler moduel. Now only supports csv data. ~/anaconda3/lib/python3.6/typing.py in inner(*args, **kwds) 680 except TypeError: 681 pass # All real errors (not unhashable args) are raised below. --> 682 return func(*args, **kwds) 683 return inner 684 ~/anaconda3/lib/python3.6/typing.py in __getitem__(self, params) 1128 else: 1129 # Subscripting a regular Generic subclass. -> 1130 _check_generic(self, params) 1131 tvars = _type_vars(params) 1132 args = params ~/anaconda3/lib/python3.6/typing.py in _check_generic(cls, parameters) 660 if alen != elen: 661 raise TypeError("Too %s parameters for %s; actual %s, expected %s" % --> 662 ("many" if alen > elen else "few", repr(cls), alen, elen)) 663 664 TypeError: Too few parameters for primitive_interfaces.transformer.TransformerPrimitiveBase; actual 2, expected 3
yamsgithub commented 6 years ago

Realized I was running this with python 3 and hence getting the error. Is there a python 3 version of this primitive?

kyao commented 6 years ago

The master branch of this repo works with python 3, and it is the most up-to-date version.

yamsgithub commented 6 years ago

Thanks. Though it would be great if you can update your pip image. It is too time consuming if we need to checkout and setup all primitives manually. Is this part of the d3m namespace?

kyao commented 6 years ago

This primitive is part of the docker image under the d3m namespace. With the docker image you do not need to do any installation.