You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.
I ran into the same problem today on Ubuntu 20.04. I've had issues in the past with autorest not installing its Python modules correctly and resolved it by manually installing dependencies; see a similar workaround below. The command I run for the CodeGen is autorest --version=3.0.6370 --az <...> (from within a virtualenv containing azure-cli, azdev) as in the sample command from the docs.
cd to ~/.autorest/@[email protected]/node_modules/@autorest/python to find the dependencies listed in setup.py. It looks like
install_requires=[
"json-rpc",
"Jinja2 >= 2.11", # I need "include" and auto-context + blank line are not indented by default
"pyyaml",
"m2r",
],
Note there are later versions of autorest_python available, but this version of autorest will try to use this one. I think there might be a flag for picking the autorest_python version but I don't remember it and it didn't show under --help; using a different version could also resolve the dependency installation issue.
We'll need to install the above dependencies into the venv found in the @autorest/python folder.
a. venv/bin/python3 -m pip install json-rpc
b. venv/bin/python3 -m pip install Jinja2
c. venv/bin/python3 -m pip install pyyaml (this might already be installed)
d. m2r is trickier because of a breaking API change in the mistune dependency that will cause the m2r installation to fail. As described in this GitHub issue, run venv/bin/python3 -m pip install mistune==0.8.4 to revert mistune to a compatible version. Then, venv/bin/python3 -m pip install m2r to install m2r.
Swagger spec being used: https://github.com/zhaomuzhi/azure-rest-api-specs/tree/8d9b6a0d3040feaf8ccaf18e5cabceb0820767bd/specification/machinelearningservices/resource-manager
Repro steps:
Output:
We're seeing this issue in an internal Azure DevOps ubuntu 18 pipeline, but I am able to repro locally on Windows 10.
The text was updated successfully, but these errors were encountered: