<small id='ac04h'></small><noframes id='ac04h'>

      <bdo id='ac04h'></bdo><ul id='ac04h'></ul>
    1. <tfoot id='ac04h'></tfoot>
    2. <legend id='ac04h'><style id='ac04h'><dir id='ac04h'><q id='ac04h'></q></dir></style></legend>

    3. <i id='ac04h'><tr id='ac04h'><dt id='ac04h'><q id='ac04h'><span id='ac04h'><b id='ac04h'><form id='ac04h'><ins id='ac04h'></ins><ul id='ac04h'></ul><sub id='ac04h'></sub></form><legend id='ac04h'></legend><bdo id='ac04h'><pre id='ac04h'><center id='ac04h'></center></pre></bdo></b><th id='ac04h'></th></span></q></dt></tr></i><div id='ac04h'><tfoot id='ac04h'></tfoot><dl id='ac04h'><fieldset id='ac04h'></fieldset></dl></div>
    4. Azure Python Web 应用程序内部服务器错误

      Azure Python Web App Internal Server Error(Azure Python Web 应用程序内部服务器错误)

      <small id='qfTDq'></small><noframes id='qfTDq'>

          <legend id='qfTDq'><style id='qfTDq'><dir id='qfTDq'><q id='qfTDq'></q></dir></style></legend>
            <tbody id='qfTDq'></tbody>
            <bdo id='qfTDq'></bdo><ul id='qfTDq'></ul>

            1. <tfoot id='qfTDq'></tfoot>

                <i id='qfTDq'><tr id='qfTDq'><dt id='qfTDq'><q id='qfTDq'><span id='qfTDq'><b id='qfTDq'><form id='qfTDq'><ins id='qfTDq'></ins><ul id='qfTDq'></ul><sub id='qfTDq'></sub></form><legend id='qfTDq'></legend><bdo id='qfTDq'><pre id='qfTDq'><center id='qfTDq'></center></pre></bdo></b><th id='qfTDq'></th></span></q></dt></tr></i><div id='qfTDq'><tfoot id='qfTDq'></tfoot><dl id='qfTDq'><fieldset id='qfTDq'></fieldset></dl></div>
                本文介绍了Azure Python Web 应用程序内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                EDIT: The problem seems to be the importing of packages in my app. All the packages are correctly installed, and i can see them in my wwwroot with kudu. But, when i import them in the scripts, i get the 500 error. The WIERDEST thing is that the problem only occurs when i import the packages this way:

                from package import something
                

                But not this way:

                import package
                

                I also get the same error, when i try to call a package function, meaning i cant access anything from the packages(?)

                It seems that there is an exception generated in web app, but not in my local machine. Any thoughts?


                I'm trying to publish a Python Web App in Azure Web Apps, but I keep failing. I'm using bottle as the web framework, and the packages i installed, along with their dependencies are:

                • Numpy
                • Scipy
                • Scikit-image

                I have configured the virtual env to match the web app (32bit/2.7), and i installed the packages using wheels as mentioned in this post: https://azure.microsoft.com/en-us/documentation/articles/web-sites-python-create-deploy-bottle-app/

                I'm deploying the app via VS and the publish wizard from Azure SDK, and everything works as expected.

                When the app is up, i get a 500 error, and the console says these things:

                My web.cofing is this:

                    <?xml version="1.0"?>
                <!-- Generated web.config for Microsoft Azure. Remove this comment to prevent
                     modifications being overwritten when publishing the project.
                -->
                <configuration>
                  <system.diagnostics>
                    <trace>
                      <listeners>
                        <add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31b....." name="AzureDiagnostics">
                          <filter type="" />
                        </add>
                      </listeners>
                    </trace>
                  </system.diagnostics>
                  <appSettings>
                    <add key="WSGI_ALT_VIRTUALENV_HANDLER" value="app.wsgi_app()" />
                    <add key="WSGI_ALT_VIRTUALENV_ACTIVATE_THIS" value="D:homesitewwwrootenvScriptsactivate_this.py" />
                    <add key="WSGI_HANDLER" value="ptvs_virtualenv_proxy.get_virtualenv_handler()" />
                    <add key="PYTHONPATH" value="D:homesitewwwroot" />
                  </appSettings>
                  <system.web>
                    <compilation debug="true" targetFramework="4.0" />
                  </system.web>
                  <system.webServer>
                    <modules runAllManagedModulesForAllRequests="true" />
                    <handlers>
                      <add name="Python FastCGI" path="handler.fcgi" verb="*" modules="FastCgiModule" scriptProcessor="D:Python27python.exe|D:Python27Scriptswfastcgi.py" resourceType="Unspecified" requireAccess="Script" />
                    </handlers>
                    <rewrite>
                      <rules>
                        <rule name="Static Files" stopProcessing="true">
                          <conditions>
                            <add input="true" pattern="false" />
                          </conditions>
                        </rule>
                        <rule name="Configure Python" stopProcessing="true">
                          <match url="(.*)" ignoreCase="false" />
                          <conditions>
                            <add input="{REQUEST_URI}" pattern="^/static/.*" ignoreCase="true" negate="true" />
                          </conditions>
                          <action type="Rewrite" url="handler.fcgi/{R:1}" appendQueryString="true" />
                        </rule>
                      </rules>
                    </rewrite>
                  </system.webServer>
                </configuration>
                

                Any help why this might happening?

                解决方案

                FINALLY, i got it working. The problem was the version of pip i was using to install the wheels. After i upgraded to pip 8.11.1 everything worked as expected.

                这篇关于Azure Python Web 应用程序内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Running .jl file from R or Python(从 R 或 Python 运行 .jl 文件)
                Running Julia .jl file in python(在 python 中运行 Julia .jl 文件)
                Using PIP in a Azure WebApp(在 Azure WebApp 中使用 PIP)
                How to run python3.7 based flask web api on azure(如何在 azure 上运行基于 python3.7 的烧瓶 web api)
                Run python dlib library on azure app service(在 azure app 服务上运行 python dlib 库)
                Django channels and azure(Django 频道和天蓝色)

                <legend id='Cr7K0'><style id='Cr7K0'><dir id='Cr7K0'><q id='Cr7K0'></q></dir></style></legend>

                <tfoot id='Cr7K0'></tfoot>

                    <small id='Cr7K0'></small><noframes id='Cr7K0'>

                      • <i id='Cr7K0'><tr id='Cr7K0'><dt id='Cr7K0'><q id='Cr7K0'><span id='Cr7K0'><b id='Cr7K0'><form id='Cr7K0'><ins id='Cr7K0'></ins><ul id='Cr7K0'></ul><sub id='Cr7K0'></sub></form><legend id='Cr7K0'></legend><bdo id='Cr7K0'><pre id='Cr7K0'><center id='Cr7K0'></center></pre></bdo></b><th id='Cr7K0'></th></span></q></dt></tr></i><div id='Cr7K0'><tfoot id='Cr7K0'></tfoot><dl id='Cr7K0'><fieldset id='Cr7K0'></fieldset></dl></div>
                          <tbody id='Cr7K0'></tbody>
                          <bdo id='Cr7K0'></bdo><ul id='Cr7K0'></ul>