"Unhandled exception in script" message when installing DeviceHub for Windows in ShipAccel

There are multiple reasons that the message "Unhandled exception in script" may appear when installing DeviceHub for Windows.

Products affected: ShipAccel

Issue

When installing DeviceHub for Windows, the message "Unhandled exception in script" appears.

Resolution

If the message says "No module named 'tokenize'", then the error is due to a previous version of DeviceHub that needs to be uninstalled.

  1. Uninstall the previous version of DeviceHub. Before proceeding, make sure that the C:\ProgramData\PB\ folder was removed. For instructions, see:
  2. Install the latest version of DeviceHub. For instructions, see:

If the message says "This version of Windows is not supported", then the error is due to an unsupported version of the Windows operating system. DeviceHub for Windows is only supported with Windows 10 or higher.
DeviceHub This version of Windows is not supported error message

If the message says "[Errno 13] Permission denied", then the error is caused by Windows security or third-party anti-virus protection that is blocking access to DeviceHub. Contact your IT department or Windows System Administrator and have them review the DeviceHub networking requirements:


DeviceHub [Errno 13] Permission denied error message

UPDATED: October 10, 2024