[Nanocubes-discuss] Problem running example

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Nanocubes-discuss] Problem running example

Jeff Storey
I downloaded and installed nanocubes and I'm trying to run the example on ubuntu 13.10, and when I run the script command:

 python csv2Nanocube.py --catcol='Primary Type' crime50k.csv | NANOCUBE_BIN=../src  ../src/ncserve --rf=100000 --threads=100

I get the following errors:

VERSION: 2014.03.25_13:26
Traceback (most recent call last):
  File "csv2Nanocube.py", line 321, in <module>
    main(sys.argv)
  File "csv2Nanocube.py", line 317, in main
    ncinput = NanocubeInput(args)    
  File "csv2Nanocube.py", line 44, in __init__
    self.readcsv(args.InputFile)
  File "csv2Nanocube.py", line 126, in readcsv
    compression=comp)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 400, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 198, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 479, in __init__
    self._make_engine(self.engine)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 592, in _make_engine
    self._engine = klass(self.f, **self.options)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 1201, in __init__
    raise Exception("usecols not supported with engine='python'"
Exception: usecols not supported with engine='python' or multicharacter separators (yet).
Dimensions: 
Variables:  
Could not find program: ../src/nc


If I don't try to pipe it to the nanocube binary and just try to run the python script, I still get the first error about usecols. If I explicitly specify a separator of commas, I get a different error:

Traceback (most recent call last):
  File "csv2Nanocube.py", line 321, in <module>
    main(sys.argv)
  File "csv2Nanocube.py", line 317, in main
    ncinput = NanocubeInput(args)    
  File "csv2Nanocube.py", line 44, in __init__
    self.readcsv(args.InputFile)
  File "csv2Nanocube.py", line 131, in readcsv
    data = self.processData(data)
  File "csv2Nanocube.py", line 154, in processData
    data = self.processDate(data)
  File "csv2Nanocube.py", line 214, in processDate
    format=self.datefmt)
TypeError: to_datetime() got an unexpected keyword argument 'infer_datetime_format'


Any help in how to proceed would be appreciated! Thanks.

Jeff
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Nanocubes-discuss] Problem running example

Jeff Storey
Turned out I just had an old version of some packages installed. It is working now.


On Fri, Apr 18, 2014 at 10:42 AM, Jeff Storey <[hidden email]> wrote:
I downloaded and installed nanocubes and I'm trying to run the example on ubuntu 13.10, and when I run the script command:

 python csv2Nanocube.py --catcol='Primary Type' crime50k.csv | NANOCUBE_BIN=../src  ../src/ncserve --rf=100000 --threads=100

I get the following errors:

VERSION: 2014.03.25_13:26
Traceback (most recent call last):
  File "csv2Nanocube.py", line 321, in <module>
    main(sys.argv)
  File "csv2Nanocube.py", line 317, in main
    ncinput = NanocubeInput(args)    
  File "csv2Nanocube.py", line 44, in __init__
    self.readcsv(args.InputFile)
  File "csv2Nanocube.py", line 126, in readcsv
    compression=comp)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 400, in parser_f
    return _read(filepath_or_buffer, kwds)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 198, in _read
    parser = TextFileReader(filepath_or_buffer, **kwds)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 479, in __init__
    self._make_engine(self.engine)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 592, in _make_engine
    self._engine = klass(self.f, **self.options)
  File "/usr/lib/python2.7/dist-packages/pandas/io/parsers.py", line 1201, in __init__
    raise Exception("usecols not supported with engine='python'"
Exception: usecols not supported with engine='python' or multicharacter separators (yet).
Dimensions: 
Variables:  
Could not find program: ../src/nc


If I don't try to pipe it to the nanocube binary and just try to run the python script, I still get the first error about usecols. If I explicitly specify a separator of commas, I get a different error:

Traceback (most recent call last):
  File "csv2Nanocube.py", line 321, in <module>
    main(sys.argv)
  File "csv2Nanocube.py", line 317, in main
    ncinput = NanocubeInput(args)    
  File "csv2Nanocube.py", line 44, in __init__
    self.readcsv(args.InputFile)
  File "csv2Nanocube.py", line 131, in readcsv
    data = self.processData(data)
  File "csv2Nanocube.py", line 154, in processData
    data = self.processDate(data)
  File "csv2Nanocube.py", line 214, in processDate
    format=self.datefmt)
TypeError: to_datetime() got an unexpected keyword argument 'infer_datetime_format'


Any help in how to proceed would be appreciated! Thanks.

Jeff

Loading...