Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on May 29, 2019 2:55PM
Likes: 0
Replies: 4
Hi,
I am completing the "How to create a custom recipe" tutorial and am having issues using the custom recipe in flow. When I click run I get the error: "Error in Python process: At line 41: <type 'exceptions.KeyError'>: parameter_name"
[2019/05/28-15:54:58.300] [null-err-46] [INFO] [dku.utils] - *************** Recipe code failed **************
[2019/05/28-15:54:58.301] [null-err-46] [INFO] [dku.utils] - Begin Python stack
[2019/05/28-15:54:58.301] [null-err-46] [INFO] [dku.utils] - Traceback (most recent call last):
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - File "/Users/Jacqueline/Library/DataScienceStudio/dss_home/jobs/DKU_TUTORIAL_FIRSTPLUGIN/Build_output_2019-05-28T19-54-54.569/compute_output_NP/custom-python-recipe/pyout4mu5Z3gPUZcs/python-exec-wrapper.py", line 194, in <module>
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - exec(f.read())
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - File "<string>", line 41, in <module>
[2019/05/28-15:54:58.303] [null-err-46] [INFO] [dku.utils] - KeyError: 'parameter_name'
Thanks!
Same to me!
I have not seen this error in any of my python recipes at the moment.
Can you clarify the link to the tutorial?
What version of DSS are you using v7.x or v8.x or some other version? Have you changed versions recently?
What version of Python?
Is it in a specific code environments?
I'm pretty sure @itsjacqui
is talking about this tutorial: https://academy.dataiku.com/plugin-development/513342.
Typically there is some small transcription error between the code shown in the course and the code a person has in their instance. Since @nhanngo
is getting the same error, that makes me a little worried there's something wrong in the code shown in the course. I'll try to replicate and debug it later today, but other users interested in plugins are welcome to try to solve it before I do.
I got the exact issue while building the plugin. I created versions of the same plugin, so it points to the older one, which doesn't have the parameter defined. Just deleting the copies of the Plugin will resolve this issue.