This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Power Profiler Kit ppk.py is not starting: pyqtgraph problem

I cannot start Power Profiler Kit software. I followed the installing instructions, but ended up with the following:

>python.exe ppk.py
Traceback (most recent call last):
  File "ppk.py", line 19, in <module>
    missing = str(ie).split("named ")[1]
IndexError: list index out of range

By modifying the ppk.py I found out that the problem is probably with the lines:

import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui

The error message seems to be:

DLL load failed: %1 is not a valid Win32 application

Sounds strange, a missing DLL, or what could be the solution for this problem?

This problem happened with a Windows 7 and a Windows 8.1 machine.

Parents
  • This happens when you are using 64bit python.

    DLL load failed: %1 is not a valid Win32 application comes from pynrfjprog, which tries to load the 32bit SEGGER DLL. When using a 64bit application, the DLL is not compatible and raises this error.

    To verify this, just run python from a command line. My output is then as follows:

    Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
    

    I guess your's will report 64 bit.

    Also, a small python script like this can help you determine what you are running

    import platform 
    print platform.architecture()[0]
    

    Try uninstalling the current version you have, and make sure you download and install the 32bit version of Python 2 (link to x86 MSI installer)

Reply
  • This happens when you are using 64bit python.

    DLL load failed: %1 is not a valid Win32 application comes from pynrfjprog, which tries to load the 32bit SEGGER DLL. When using a 64bit application, the DLL is not compatible and raises this error.

    To verify this, just run python from a command line. My output is then as follows:

    Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
    

    I guess your's will report 64 bit.

    Also, a small python script like this can help you determine what you are running

    import platform 
    print platform.architecture()[0]
    

    Try uninstalling the current version you have, and make sure you download and install the 32bit version of Python 2 (link to x86 MSI installer)

Children
Related