I can't run the command as in the tutorial (Academy Dataiku)

ML Practitioner
> Time Series Analysis & Forecasting > Train and deploy a forecasting modelAfter I click "Train", the system shows an error with the following log:
Failed to train : <class 'AttributeError'> : module 'numpy' has no attribute 'MachAr'
note :
- I use an "individual-academic" license
- Using Arc Browser
Operating system used: macOS Sequoia 15.1.1 (M1 chip)
Operating system used: macOS Sequoia 15.1.1 (M1 chip)
Best Answers
-
"fail.zip" contains env according to the tutorial, but I tried adding a new env "succeed.zip" and it suddenly worked. However, I'm afraid that something like this will happen in the future when I work on a real project.
It's okay to make this publicly accessible so that those who experience similar things can see this discussion.
Thank you for your response and direction, Yasmine. 🙏😇 -
Of course! I am glad this works for you now.
For context here the error occured in the original code env used for model training because it contains numpy==1.24.4 and statsmodels==0.12.2. The combination of these package versions is the cause of this problem.
The newly created code env contains the package with different version : numpy==1.26.4 and statsmodels==0.14.4 hence why it is successful:)
If any similar dependency error occur in the future don't hesitate to reach out so we can have a look at your code environment:)
Best,
Yasmine
Answers
-
I tried again with the Safari browser and it failed just like above.
-
Hi!
I hope that you are doing well.
Would you mind sharing a code env diag?
Go to Administration - Code Envs - open the code env - Get diagnostics.
Note that this is a public forum so this would be available publicly. If you are not comfortable with this please open a support ticket so that we can take a look at this with you.
If you are using Dataiku Cloud, the easiest way to investigate this would be to open a support chat!
Best,
Yasmine