https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Albert Wibowo

06/23/2023, 1:29 PM
Apologies for spamming but here goes another question: I tried to use FrameProfilingRenderer but I got circular import error:
Copy code
ImportError: cannot import name 'lazy_module' from partially initialized module 'flytekit' (most likely due to a circular import)
Any idea on how to fix this? Thanks!
s

Samhita Alla

06/23/2023, 2:06 PM
Can you reinstall flytekit?
a

Albert Wibowo

06/23/2023, 2:25 PM
Yup I tried. It worked. But when I tried to install flytekit and the standard deck pluggins at the same time, it did not work. Do I need to reinstall flytekit every time then?
I tried to install whylogs pluggins and the same circular import occurred:
Copy code
ImportError: cannot import name 'DummyMod' from partially initialized module 'IPython.core.interactiveshell' (most likely due to a circular import) (/opt/venv/lib/python3.10/site-packages/IPython/core/interactiveshell.py)
k

Kevin Su

06/23/2023, 8:58 PM
which version of plugin are you using?
a

Albert Wibowo

06/24/2023, 7:08 AM
Version 1.7.0
s

Samhita Alla

06/24/2023, 7:21 AM
Are you saying when you install both
flytekit
and
flytekitplugins-deck-standard
, Flyte's throwing a circular import error?
a

Albert Wibowo

06/24/2023, 7:31 AM
Yeah
s

Samhita Alla

06/26/2023, 3:44 PM
It works in my case. I installed the two libraries and ran the code locally.
a

Albert Wibowo

06/26/2023, 8:25 PM
hmm weird. Ok let me try it again. May I know what versions did you use?
k

Kevin Su

06/26/2023, 9:02 PM
I have tried v1.7.1b0 and 1.7.0. both work for me.
a

Albert Wibowo

06/26/2023, 9:43 PM
what about the flytekit version? Is it 1.4.2?
s

Samhita Alla

06/27/2023, 4:55 AM
The flytekit version is 1.7.0 as well.
a

Albert Wibowo

06/28/2023, 8:56 AM
ok looks like
flytekitplugins-deck-standard
does not work with
flytekit
version 1.4.2. My company uses internal python package and due to conflicting dependencies we can only use version 1.4.2. But I've resolved the conflict and it's working. Thanks @Samhita Alla @Kevin Su!
73 Views