No module named 'scipy' when using Object Detection Analysis
I got the error message after attempting to train the module:
-------------------------------------------------------------------------------------------------------
Training failed
If anyone can advise on how to install missing modules that'd be great, thanks.
Operating system used: Windows 10
Operating system used: Windows 10
Best Answer
-
Hi @AshleyKaru
,The error message indicates that the code environment selected for the training does not have the required python module called scipy installed.You could change the code environment from the model's design page > Runtime environment > Code environment and select one code environment that does have the package.If you don't have a code environment with this module, then you can create or modify one by going to Administration > Code Env and add the scipy package in the Requested packages (Pip) textbox in the 'Pacakges to install' tab of the code environment.
Answers
-
AshleyKaru Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 7 ✭
Hi Catalina thank you for your reply.
Dataiku told me to install a code environment specifically for object detection.
I now switched to it thanks to your advice but I get the same error (no scipy).
When I inspect the code environment I'm told to use, there is no SciPy listed and there are no options concerning 'Requested packages' like in your image.
How should I proceed?
-
AshleyKaru Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 7 ✭
Hi just following up my last reply.
I have made my own code environment based on the suggested object detection one and
added scipy manually as shown below underlined in red:
I then click update, go to my flow, select my new env (obj_detect_custom) and then run the object detection recipe again.
Unfortunately I still get the same error (ModuleNotFound) which is very confusing because I am certainly now using an env that contains scipy.
Do you know what could be causing this?
Any help appreciated, thanks in advance.
-
You can check if scipy was successfully installed in this code environment on the Currently installed packages tab. Do you see scipy and its version in the list on Currently installed packages?
-
AshleyKaru Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 7 ✭
yes it is listed as currently installed:
I have made sure that 'object_detect_custom' is my active code env as well.
-
The screenshot confirms that scipy==1.2.3 is installed in the code environment.
Did you update the code environment on the models training settings and then redeploy the new version to the flow?
For further assistance I would suggest you open a support ticket on support.dataiku.com and provide job diagnostic and code environment diagnostic.
-
AshleyKaru Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 7 ✭
That's it, I did not update the code environment on the models training settings and then redeploy the new version to the flow.
I have now done that and it's not asking for scipy anymore (now it wants sklearn but I understand how to fix this).
Thankyou!