Open msakho opened 5 months ago
Which version of OpenShift AI are using? 2.8?
Can you run the following command in your terminal where you are executing the python code from and share them here?
pip list | grep kfp
As a quick test, you might also try switching to kfp-tekton
1.5.x
pip install kfp-tekton~=1.5.0
We may have had to revert that back to an older version and may have forgotten to update the instructions.
@strangiato @msakho - could this be a symptom of #16 ? If so, can you revert the env var for the TLS cert and check again?
@erwangranger - is this issue related to the one you opened about the TLS certs?
@adelton - any chance you ran into the same issue? any pointers on how to debug this?
@jramcast @rruizher @gjbianco - y'all run into this issue?
Testing in notebook terminal:
(app-root) (app-root) python
Python 3.9.16 (main, Sep 12 2023, 00:00:00)
[GCC 11.3.1 20221121 (Red Hat 11.3.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> datetime.now()
datetime.datetime(2024, 4, 17, 4, 15, 3, 224175)
however if i execute the code in the kfp-tekton packaged _client.py file
>>> datetime.datetime.now()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
same error as reported in the bug.
I am disabling and commeting out this exercise in the pipelines course until we get a proper solution. It looks like we have an API compat problem with upstream. Upgrading kfp-tekton version to fix this bug will result in other breakages in working labs.
This is probably related with a problem in the datetime
import, which was fixed last December:
The Execute Pipeline section of the following tutorial[1] is not working as expected. After downloading the pipeline, it appears that in cannot be imported. When I write it directly in a notebook and Click 'Restart Kernel and Run All Cells', it fails with the following errors:
It seems like the pipeline is not submitted to the server since nothing appears. There might be something missing on the instruction.
[1]=https://redhatquickcourses.github.io/rhods-pipelines/rhods-pipelines/1.33/chapter1/kfp.html