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

DecodeError connecting to workspace #423

Open
JamesHWade opened this issue Aug 6, 2021 · 2 comments
Open

DecodeError connecting to workspace #423

JamesHWade opened this issue Aug 6, 2021 · 2 comments

Comments

@JamesHWade
Copy link

Describe the bug
I am unable to connect to a workspace from RStudio within Azure Machine Learning.

To Reproduce

library(azuremlsdk)
workspace = get_workspace(name = workspace_name, 
                          subscription_id = subscription_id,
                          resource_group = resource_group)

Error:
DecodeError: It is required that you pass in a value for the "algorithms" argument when calling decode().Error in value[[3L]](cond) :

image
image

@krisbock
Copy link

krisbock commented Sep 1, 2021

Hi @JamesHWade, the Azure ML R SDK is being deprecated in favour of the new approach using the v2 CLI. See Interface to the Azure Machine Learning SDK • azuremlsdk for more details.

However, if you're set on the R SDK, can you upgrde the azuremlsdk version? I can see you have the default installed version of azureml-sdk==1.10. Please try activating the r-reticulate Conda environment and upgrading the sdk to >=1.18. So pip install azureml-sdk==1.18.

@joshkyh
Copy link

joshkyh commented Sep 1, 2021

@krisbock suggestion worked for me. I am using Windows and yes, I also have azureml-sdk==1.10

If you need more details:
run this in R
reticulate:::py_config()

Find out your r-reticulate environment location.

Open CMD, cd C:/Users/jkim.HCI/Documents/.conda/envs/r-reticulate

python.exe -m pip install azureml-sdk==1.18

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

3 participants