Also, for some reason, I can't import like this: `...
# ask-metaflow
f
Also, for some reason, I can't import like this:
from metaflow import resources, conda_base
. Seems like
resources, conda_base
aren't available in my metaflow environment? I am running on metaflow 2.8.5 I think. Anybody knows why this might be? Also, I think I installed metaflow via conda and not pip. Don't know if this will be a problem?
1
c
what does
which metaflow
give you?
f
Copy code
(ml-engineer-python) wenjunsun@Wenjuns-MacBook-Air chapter5 % which metaflow

/Users/wenjunsun/opt/miniconda3/envs/ml-engineer-python/bin/metaflow
by the way, I can import stuff like
FlowSpec, step, Parameter
just fine.
c
hmm ok, what do you mean by not being available, is there import error?
f
are you using pycharm by chance? I've noticed that with jetbrains IDEs as well, the import works but for some reason the introspection isn't there
f
@flaky-plumber-70709 Ahhhh! Yeah I think that is it. Just ran the python file with import statements and it didn't error out! Seems like it is only a IDE issue. (red squiggly lines) I do use PyCharm.
interesting 1
Thanks for the help guys!!!
c
Anytime!
❤️ 1
d
It’s because those things are not actual functions but dynamically created. I need to get back to that pyi generator thing I had a while back. That had solved it by generating fake stubs for these things.
❤️ 1