Skip to content

Commit ca29be8

Browse files
authored
Update how-to-inference-server-http.md
Added information to handle an error "TypeError: register() takes 3 positional arguments but 4 were given". based on https://eng.ms/docs/cloud-ai-platform/ai-platform/ai-platform-ml-platform/project-vienna-services/azure-machine-learning-runbook/operational/inferencing/tsg/server/inferencing-server#common-errors.
1 parent 8885a41 commit ca29be8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

articles/machine-learning/how-to-inference-server-http.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ TypeError: register() takes 3 positional arguments but 4 were given
169169
170170
You have **Flask 2** installed in your python environment but are running a server (< 0.7.0) that does not support Flask 2. To resolve, please upgrade to the latest version of server.
171171
172+
> [!TIP]
173+
> If you have `azureml-inference-server-http==0.7.x` installed but are running a server before `0.7.0`, you are probably on an older version of the training image. Please use a training image after (not including) 20220601. If you can't switch to the new training image, you can also resolve the issue by specifying `azureml-defaults==1.43` or `azureml-inference-server-http~=0.4.13` in your dependencies. You can check the image version by running `docker run <FULL_IMAGE_NAME> cat /IMAGE_INFORMATION`.
174+
172175
### 2. I encountered an ``ImportError`` or ``ModuleNotFoundError`` on modules ``opencensus``, ``jinja2``, ``MarkupSafe``, or ``click`` during startup like the following:
173176

174177
```bash
@@ -188,4 +191,4 @@ The Azure Machine Learning inference server runs on Windows & Linux based operat
188191
## Next steps
189192
190193
* For more information on creating an entry script and deploying models, see [How to deploy a model using Azure Machine Learning](how-to-deploy-managed-online-endpoints.md).
191-
* Learn about [Prebuilt docker images for inference](concept-prebuilt-docker-images-inference.md)
194+
* Learn about [Prebuilt docker images for inference](concept-prebuilt-docker-images-inference.md)

0 commit comments

Comments
 (0)