Closed praateekmahajan closed 4 years ago
Thanks @selitvin that makes sense. The only reason I created this PR, I thought it's faster than an issue, as it shows the requested code change. However that might have not been a good decision, so I can move it to an issue if you want.
I updated my PR to reflect what the issue is, which is
pip install petastorm
from petastorm.spark import X, Y, Z
and I get the error
ModuleNotFoundError : No module named 'petastorm.spark'
Petastorm does not have a spark subpackage (there is new petastorm.spark package in the next release, but not in the existing public one). What were you trying to import?
Oh I see, the subpackage/release part makes sense. I can close the PR and wait out the next release. Out of curiosity where are subpackages defined?
I was trying to do the following (from the example)
from petastorm.spark import SparkDatasetConverter, make_spark_converter
.
Hey @praateekmahajan, running import petastorm.spark
also gives me the error
ModuleNotFoundError : No module named 'petastorm.spark'
Not quite understanding your fix, any advice?
Issue
pip install petastorm
from petastorm.spark import X, Y, Z
and I get the errorFix
I'm not sure if this is the right way, since there are nuances about releases and how petastorm currently does python module management.