无法运行示例Python应用程序 [英] Unable to run sample Python Apps

查看:93
本文介绍了无法运行示例Python应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经能够成功地按照说明在我的RPI上执行示例Hello World!,Hello Blinky,Blinky Webserver和Console Apps,但我无法运行任何Python示例应用程序。  我已经多次遵循Python安装
说明,以确保我没有遗漏任何步骤,但我仍然无法使任何Python示例应用程序正常工作。从我所读到的,其他人已经能够让他们工作。也许我错过了某个地方的一个步骤,但我不确定哪个
一个。


下面是我从Visual Studio构建和调试样本中得到的输出的副本Hello World Python App。


构建输出


所有软件包都已安装,无需恢复。

NuGet包恢复完成。

------构建开始:项目:BackgroundApplication3,配置:调试ARM ------
$
C :\ Program Program(x86)\ MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1978,5):警告MSB3785:未找到任何SDK。 SDKReference项目将无法解析。如果您的应用程序需要这些引用,则可能存在编译错误。

C:\Program Files(x86)\ MSBuild\Microsoft\VisualStudio \v14.0\AppxPackage\Microsoft。 AppXPackage.Targets(1529,9):警告APPX2101:找不到文件'ilc.exe'或者不是可执行文件。

------已启动部署:项目:BackgroundApplication3,配置:Debug ARM ------
$
创建一个新的干净布局...

复制文件:布局总计21 mb ...

注册要从布局运行的应用程序...

部署完成(21082ms)。完整包名:"BackgroundApplication3_1.0.0.0_arm__v4wpdszsxxgqt"&
==========构建:1成功,0失败,0最新,0跳过=== =======
$
==========部署:1成功,0失败,0跳过==========


DEBUG OUTPUT


'BACKGROUNDTASKHOST.EXE'(Win32):已加载'C:\ Windows \system32 \BACKGROUNDTASKHOST.EXE "。无法找到或打开PDB文件。
$
'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \NTDLL.DLL'。无法找到或打开PDB文件。
$
'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \ KERNELBASE.DLL'。无法找到或打开PDB文件。

'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \ MSVCRT.DLL'。无法找到或打开PDB文件。
$
'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \ COMBASE.DLL'。无法找到或打开PDB文件。

'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \RPCRT4.DLL'。无法找到或打开PDB文件。

'AutgroundTASKHOST.EXE'(Win32):已加载'C:\ Windows \ system32 \ KERNEL32LEGACY.DLL'。找不到或打开PDB文件。


我想知道我的问题是什么吗?



谢谢,Mark。



解决方案

嗨Mark,


到目前为止,我还没有机会测试Python样本。我没有看到您遇到的SDK错误,但我确实看到了有关ilc.exe的消息。当我将它部署到设备上时,它似乎挂起了。


我会联系产品组,看看我是否可以为您提供更多信息。


I have been able to successfully follow the instructions to execute the sample Hello World!, Hello Blinky, Blinky Webserver and Console Apps on my RPI, but I have been unable to run any of the Python sample apps.  I have followed the Python install instructions several times to make sure I am not missing any steps, but I am still unable to get any of the Python sample Apps working. From what I have read, others have been able to get them working. Maybe I am missing a step somewhere, but am not sure which one.

Below is a copy of the output I get from the Visual Studio build and debug for the sample Hello World Python App.

BUILD OUTPUT

All packages are already installed and there is nothing to restore.
NuGet package restore finished.
------ Build started: Project: BackgroundApplication3, Configuration: Debug ARM ------
C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1978,5): warning MSB3785: No SDKs were found. SDKReference items will not be resolved. If your application requires these references there may be compilation errors.
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\AppxPackage\Microsoft.AppXPackage.Targets(1529,9): warning APPX2101: File 'ilc.exe' is not found or is not an executable file.
------ Deploy started: Project: BackgroundApplication3, Configuration: Debug ARM ------
Creating a new clean layout...
Copying files: Total 21 mb to layout...
Registering the application to run from layout...
Deployment complete (21082ms). Full package name: "BackgroundApplication3_1.0.0.0_arm__v4wpdszsxxgqt"
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========

DEBUG OUTPUT

'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\BACKGROUNDTASKHOST.EXE'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\NTDLL.DLL'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\KERNELBASE.DLL'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MSVCRT.DLL'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\COMBASE.DLL'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\RPCRT4.DLL'. Cannot find or open the PDB file.
'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\KERNEL32LEGACY.DLL'. Cannot find or open the PDB file.

Any idea as to what my problem may be?

Thanks, Mark.

解决方案

Hi Mark,

I hadn't had an opportunity to test the Python samples up until now. I don't see the SDK error you encountered but I do see the message about ilc.exe. When I deployed it to the device it just appeared to hang.

I'll contact the product group and see if I can come up with more information for you.


这篇关于无法运行示例Python应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆