Hey, I'm trying to get some stuff done with `kedro...
# questions
v
Hey, I'm trying to get some stuff done with
kedro micropkg
, but failing so far 😕. So I've built that custom Dataset class
MyDataset
. I'd love to share it as a micro-package with a colleague of mine. This should be possible, as the micro-packaging docs say :
A micro-package can be any part of Python code in a Kedro project [...].
But running
kedro micropkg package src/my_project/extras/datasets/my_folder/my_dataset.py
only yields me the following error message:
Copy code
kedro.framework.cli.utils.KedroCliError: The micro-package location you provided is not a valid Python module path
Run with --verbose to see the full exception
Error: The micro-package location you provided is not a valid Python module path
I tried running with
--verbose
, but it's not a valid argument for any of kedro, micropkg or package. So that didn't help. Neither do I understand how
my_dataset.py
is not a valid Python module 😢. Any of you have an idea how one would go about resolving this issue? Thanks in advance!
d
Try
kedro micropkg package <http://extra.datasets.my|extra.datasets.my>_folder
?
v
Cool, that worked like a charm 🎉❤️! Thank you :)
I feel like the docs as well as the --help-pages could use some examples to make this more clear. Is this worth raising an issue on github?
👍 3
d
Aha! I was about to type this up. We could may be change the wording to classpath? would that be more intuitive?
Please raise an issue @Vici - @Jo Stichbury would love to help here 🙂
v
Perfect, I will do so! Everybody's help is appreciated 😊
d
I think just an example would help, like there is for
pull
. I looked at the Behave integration tests for Kedro since I forget this syntax sometimes. 😄
🥳 1
👍 1
v
I agree with @Deepyaman Datta. Unfortunately I'm quite busy this week, so I'll raise this issue next week if it's still relevant then.
K 1
🥳 2
j
Thanks @Vici @Deepyaman Datta and @datajoely! I've added an issue to extend the docs with at least one example. Can you think of any other cases/different ways to issue the command? If so, please feel free to extend my existing text, and I'll get this added ASAP.
🎉 1