Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01.train-models.ipynb cannot import AmlCompute from Azure Notebooks #107

Closed
tvuylsteke opened this issue Nov 30, 2018 · 2 comments
Closed

Comments

@tvuylsteke
Copy link

Running the 01.train-models.ipynb from Azure Notebooks and keep running into this error:


ImportError Traceback (most recent call last)
in
----> 1 from azureml.core.compute import AmlCompute
2 from azureml.core.compute import ComputeTarget
3 import os
3

ImportError: cannot import name 'AmlCompute'

ComputeTarget imports just fine. Got a workaround from a colleague by using BatchAiCompute

@erjosito
Copy link

erjosito commented Dec 5, 2018

I think this is a glitch because of the upgrade to GA. Check this:

  • You have the GA version of Azure ML in your kernel. You can verify this with print(azureml.core.VERSION). If it is lower than 1.0.2, upgrade it by having a separate cell running pip --upgrade azureml azureml-sdk, and restarting the kernel.
  • You have the latest version of the notebook from Github. Note that the correct case is now AmlCompute (and not AMLCompute)

@tvuylsteke
Copy link
Author

I recreated the project and now it's working. Only difference I see that the version for the SDK is now 0.1.80 where before it was 0.1.70 (I think).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants