Apologies for spamming but here goes another quest...
# ask-the-community
a
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
Can you reinstall flytekit?
a
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
which version of plugin are you using?
a
Version 1.7.0
s
Are you saying when you install both
flytekit
and
flytekitplugins-deck-standard
, Flyte's throwing a circular import error?
a
Yeah
s
It works in my case. I installed the two libraries and ran the code locally.
a
hmm weird. Ok let me try it again. May I know what versions did you use?
k
I have tried v1.7.1b0 and 1.7.0. both work for me.
a
what about the flytekit version? Is it 1.4.2?
s
The flytekit version is 1.7.0 as well.
a
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!
154 Views