且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法运行示例Python应用程序

更新时间:2022-10-14 17:57:20

嗨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.