Closed miramar-labs closed 3 years ago
@miramar-labs can you please let us know which Beam and TFX version was installed?
I used virtualenv to create a python 3.6.13 virtual environment, then pip install tfx kfp
which resulted in:
apache-beam 2.27.0
kfp 1.4.0
kfp-pipeline-spec 0.1.6
kfp-server-api 1.3.0
tensorboard 2.4.1
tensorboard-plugin-wit 1.8.0
tensorflow 2.4.1
tensorflow-cloud 0.1.13
tensorflow-data-validation 0.27.0
tensorflow-datasets 3.0.0
tensorflow-estimator 2.4.0
tensorflow-hub 0.9.0
tensorflow-metadata 0.27.0
tensorflow-model-analysis 0.27.0
tensorflow-serving-api 2.4.1
tensorflow-transform 0.27.0
tfx 0.27.0
tfx-bsl 0.27.1
I also tried your requirements.txt in a clean python 3.6 virtual environment .. but that seemed to send pip off into a never ending search for dependencies... would love to know what the magic combination of versions of things are...
Ok so I think the problem for me was how I was getting PyCharm to find your 'pipelines' module (I was appending the pipelines
folder to PYTHONPATH) ... so I wrote a setup.py
to properly install it locally and got past the error :
setup.py (copy this to book root folder):
from setuptools import setup
setup(name='pipelines',
version='1.0',
description='Utility Pipeline Code',
url='https://github.com/Building-ML-Pipelines/building-machine-learning-pipelines/tree/master/pipelines',
author='Hannes Hapke',
author_email='buildingmlpipelines@gmail.com',
license='MIT',
packages=['pipelines'],
zip_safe=False)
then, from same folder as setup.py:
pip install -e .
Environment: Python 3.8.0 virtual env:
apache-beam 2.28.0 kfp 1.4.0 kfp-pipeline-spec 0.1.6 kfp-server-api 1.3.0 pip 21.0.1 pipelines 1.0 /home/aaron/building-machine-learning-pipelines tensorboard 2.4.1 tensorboard-plugin-wit 1.8.0 tensorflow 2.4.1 tensorflow-cloud 0.1.13 tensorflow-data-validation 0.27.0 tensorflow-datasets 3.0.0 tensorflow-estimator 2.4.0 tensorflow-hub 0.9.0 tensorflow-metadata 0.27.0 tensorflow-model-analysis 0.27.0 tensorflow-serving-api 2.4.1 tensorflow-transform 0.27.0 tfx 0.27.0 tfx-bsl 0.27.1
I've tried a few different versions of tfx/tensorflow/kfp/python and consistently get the following error: