"Unhandled exception in script" message when installing DeviceHub for Windows in PitneyShip or PitneyShip Pro

There are multiple reasons that the message "Unhandled exception in script" may appear when installing DeviceHub for Windows.
Products affected: PitneyShip™, PitneyShip™ Pro

Issue

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

Resolution

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

  1. Uninstall the previous version of DeviceHub. For instructions, see:
  2. Install the latest version of DeviceHub. Refer to the instructions for your product:

If the message looks like this, with "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 looks like this, with "[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.
DeviceHub "[Errno 13] Permission denied" error message

If you need further assistance, please contact us.

UPDATED: August 08, 2022

Contact Us
Live Chat
Available • Closes at 8pm ET
Sales team hours are 8am-6pm ET
Live Chat
Live Chat is currently unavailable.
Chat is available Mon-Fri, 8am-8pm ET
Create a case
Submit support requests (Sign in required)