locked
Problem deploying Python apps on Raspberry Pi RRS feed

  • Question

  • Hi there, 

    I installed VS 2015 RC and Windows 10 IoT on my Raspberry Pi. So far I was successful in deploying node.js code. Unfortunately I can not deploy any Python code:

    '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.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\KERNEL.APPCORE.DLL'. Cannot find or open the PDB file.
    The thread 0x8c8 has exited with code 0 (0x0).
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\PROCTHREADEXTHOST.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\BCRYPTPRIMITIVES.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\CRYPTSP.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\BCRYPT.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\TWINAPI.APPCORE.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SECHOST.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\DCOMP.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\USERENV.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\PROFAPI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MINUSER.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\GDI32.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\RSAENH.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WINTYPES.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\CRYPTBASE.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SHCORE.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MRMCORER.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\ACTXPRXY.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\BIWINRT.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\pyuapbackgroundservice.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\ucrtbased.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\vccorlib140d_app.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\vcruntime140d_app.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\OLEAUT32.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\Python35_d.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\msvcp140d_app.dll'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WS2_32.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\NSI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WINDOWS.APPLICATIONMODEL.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WINDOWS.STORAGE.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\ADVAPI32LEGACY.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SHLWAPI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SHLWAPI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SHLWAPI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\POWRPROF.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\SSPICLI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Unloaded 'C:\Windows\system32\SHLWAPI.DLL'
    'BACKGROUNDTASKHOST.EXE' (Win32): Unloaded 'C:\Windows\system32\SHLWAPI.DLL'
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\PROPSYS.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\COREUICOMPONENTS.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\COREMESSAGING.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MSXML6.DLL'. Cannot find or open the PDB file.
    Python debugger is present
    Python arguments: Python.exe visualstudio_py_remote_launcher.py 5678 d9497041-7a9c-44f7-9abc-f799d8dea511 --redirect-output StartupTask.py
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\CRYPTOWINRT.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\CRYPT32.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\NCRYPT.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\NTASN1.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MSASN1.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WINDOWS.STORAGE.APPLICATIONDATA.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\_socket_d.pyd'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\select_d.pyd'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\USERS\DefaultAccount\APPDATA\Local\DevelopmentFiles\BackgroundApplication5VS.Debug_ARM.Johannes\_ctypes_d.pyd'. Cannot find or open the PDB file.
    The thread 0xf94 has exited with code 0 (0x0).
    Remote launcher starting ptvsd attach wait with File: StartupTask.py, Port: 5678, Id: d9497041-7a9c-44f7-9abc-f799d8dea511

    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\MSWSOCK.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\WSHBTH.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\DNSAPI.DLL'. Cannot find or open the PDB file.
    'BACKGROUNDTASKHOST.EXE' (Win32): Loaded 'C:\Windows\system32\NLAAPI.DLL'. Cannot find or open the PDB file.
    Hello World
    Hello World
    The program '[4028] python @ tcp://192.168.2.103:5678/?sd=C%3a%5cUsers%5cJohannes%5cDesktop%5capp%5cBackgroundApplication5%5cBackgroundApplication5&td=C%3a%5cUsers%5cDefaultAccount%5cAppData%5cLocal%5cDevelopmentFiles%5cBackgroundApplication5VS.Debug_ARM.Johannes&host=uap' has exited with code -1 (0xffffffff).
    'BACKGROUNDTASKHOST.EXE' (Win32): Unloaded 'C:\Windows\system32\WSHBTH.DLL'
    'BACKGROUNDTASKHOST.EXE' (Win32): Unloaded 'C:\Windows\system32\NLAAPI.DLL'
    Python script completed execution: Success
    The thread 0xfdc has exited with code 1 (0x1).
    The thread 0xc1c has exited with code 1 (0x1).
    The thread 0xd4c has exited with code 1 (0x1).
    The thread 0xd48 has exited with code 1 (0x1).
    The thread 0xf70 has exited with code 1 (0x1).
    The thread 0xc40 has exited with code 1 (0x1).
    The thread 0xf98 has exited with code 1 (0x1).
    The thread 0x864 has exited with code 1 (0x1).
    The thread 0xc2c has exited with code 1 (0x1).
    The thread 0xf8c has exited with code 1 (0x1).
    The program '[4028] BACKGROUNDTASKHOST.EXE' has exited with code 1 (0x1).


    Is anyone familiar with this kind of error message?

    Any help will be appreciated!

    Tuesday, May 5, 2015 5:41 PM

Answers

All replies

  • As a first question, did you download and install the Python tools for Visual Studio?

    PTVS IoT Preview VS 2015.zip

    Also, have you gone thru the Python Hello World sample to make sure you can build and deploy that without any issues?

    https://developer.microsoft.com/en-us/windows/iot/win10/samples/python

    Hopefully there might just be a step in the above that you had missed which will resolve the problem for you.  If it doesn’t, please let me know.


    Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.


    Tuesday, May 5, 2015 7:03 PM
  • Hi! 

    Thanks for your help! I reinstalled all the tools (PTVS IoT and the SDK) and now everything is working fine :)

    The only issue I am having is that I can not interact with the Python UAP interactive:

    Python UAP cannot be started because the path to the interpreter has not been configured.
    Please update the environment in Tools->Options->Python Tools->Environment Options
    Current interactive window is disconnected.
    >>> 

    One last question: Is it possible to install python packages on the Pi?

    Thanks!

    Wednesday, May 6, 2015 5:51 PM
  • Hi Joe,

      Sorry for the delay in getting back to you on this but I had to track down the right Python experts.

      There is no Python interactive window for the UWP projects at this point.  A PTVS interactive window is there, but at this time it will just support local (development machine) installed Python.  (Nor do we support PIP).

      If the extension is pure python, then it should be just added as content files to the project.  If the extension is a C module, we’re looking at ways to document adding it in the future but it’s not available for the current tool release from //Build.

      I hope this helps.


    Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

    Wednesday, May 13, 2015 5:24 PM
  • If the extension is pure python, then it should be just added as content files to the project.  If the extension is a C module, we’re looking at ways to document adding it in the future but it’s not available for the current tool release from //Build.

     It would be really handy if I could see some examples of this, my aim is to work with Windows IoT in Python for a small educational project.

    Monday, August 24, 2015 1:43 PM
  • Is that mean we cannot deploy python script to windows 10 IoT without Visual Studio? Like what asked here.
    Monday, May 2, 2016 2:23 AM
  • Hi Rizky,

    The documented way to deploy Python scripts is through Visual Studio. See the Python section at  https://developer.microsoft.com/en-us/windows/iot/win10/appdeployment.  All application development for Windows 10 is supported through Visual Studio 2015.

    However, that does not mean that once your device is configured to run Python Scripts, you could launch them as suggested in your other thread. 

    Sincerely,

    IoTGirl


    Monday, May 2, 2016 6:12 PM