HOPSWORKS-950 breaks hops-util-py in python 2.7 environments

Description

When using the featurestore module you get the error:

This error is due to a naming conflict. Featurestore module uses the pandas package and the numpy package, when introduced two files inside hops-util-py called `pandas.py` and `numpy.py` it introduced a naming conflict, where the import inside featurestore module will not import the real pandas package but rather import the relative pandas.py helper file. Same occurs for numpy, where `import numpy as np` will import the relative numpy.py file instead of the numpy package.

"By default, Python paths are relative to the main script that is being executed. On Python 2.7 and older, imports are also relative to the module doing the importing. This means if you get weird import errors, check for name clashes."

Assignee

Kim Hammar

Reporter

Kim Hammar

Labels

None

Fix versions

Priority

High
Configure