twosigma / flint

A Time Series Library for Apache Spark
Apache License 2.0
993 stars 184 forks source link

"Rankers" Import error #41

Closed gbaettig closed 5 years ago

gbaettig commented 5 years ago

I can successfully open the PySpark shell with the command provided on your python/README.md file

pyspark --master=local --jars /path/to/assembly/flint-assembly-0.6.0-SNAPSHOT.jar --py-files /path/to/assembly/flint-assembly-0.2.0-SNAPSHOT.jar

However, when I try to import the ts.flint module with the command

import ts.flint

I always get the error

cannot import name 'rankers'

Am I missing something? The file python/ts/flint/dataframe.py contains the statement

from . import rankers

but I cannot find any such file in the repository.

Any help would be appreciated.

icexelloss commented 5 years ago

Hi,

I think you need to pass --py-files /path/to/assembly/flint-assembly-0.6.0-SNAPSHOT.jar

rankers has been removed in a recent commit, you can try pulling from the latest?

gbaettig commented 5 years ago

Thanks for your reply, I will pull the latest version and let you know if the error disappeared.

gbaettig commented 5 years ago

The error seems to have disappeared. Pulling the latest version worked. Thank you.