.NET runtime environment required in a python code, so how do I deploy it as an Azure App Service?

Wasim Bijili A S 0 Reputation points
2024-05-10T15:27:01.0666667+00:00

2024-05-10T08:10:16.972810276Z Traceback (most recent call last): 2024-05-10T08:10:16.972823177Z File "/tmp/8dc70c645302e9a/antenv/lib/python3.10/site-packages/pythonnet/init.py", line 77, in create_runtime_from_spec 2024-05-10T08:10:16.972844078Z return clr_loader.get_coreclr(**params) 2024-05-10T08:10:16.972848778Z File "/tmp/8dc70c645302e9a/antenv/lib/python3.10/site-packages/clr_loader/init.py", line 121, in get_coreclr 2024-05-10T08:10:16.972853478Z dotnet_root = find_dotnet_root() 2024-05-10T08:10:16.972857879Z File "/tmp/8dc70c645302e9a/antenv/lib/python3.10/site-packages/clr_loader/util/find.py", line 57, in find_dotnet_root 2024-05-10T08:10:16.972862379Z raise RuntimeError("Can not determine dotnet root") 2024-05-10T08:10:16.972866879Z RuntimeError: Can not determine dotnet root 2024-05-10T08:10:16.972871179Z 2024-05-10T08:10:16.972875380Z The above exception was the direct cause of the following exception: 2024-05-10T08:10:16.972880080Z 2024-05-10T08:10:16.972884280Z Traceback (most recent call last): 2024-05-10T08:10:16.972888680Z File "/tmp/8dc70c645302e9a/antenv/lib/python3.10/site-packages/stock_indicators/cslib/init.py", line 15, in

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,841 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
258 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 65,131 Reputation points
    2024-05-10T17:09:26.88+00:00

    the python webapp hosting is a Linux environment and does not have the .net core runtime installed. while you could try to include as native library, I don't believe web app define the linux distro.

    you should switch to azure web app for docker, and build a docker image that supports python and .net core.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.