Skip to content

Serial error - Permission denied when accessing COM port and script silently exiting on Windows #21

Description

@MrEggy

I am trying to get the Python controller running on a Windows machine. when I run controller.py it appears to connect to the keypad successfully. It retrieves the info from the keypad. However when it enters the main loop I get the following error:

Error: <class 'AttributeError'>
I will retry in three seconds...
Connecting to COM6 .
Serial error: could not open port 'COM6': PermissionError(13, 'Access is denied.', None, 5)

If I enable debug mode I get the following traceback:

Traceback (most recent call last):
File "D:\Downloads\DIY\Macro Keypad\inkkeys-main\python-controller\controller.py", line 110, in tryUsingPort
work() #Success, enter main loop
^^^^^^
File "D:\Downloads\DIY\Macro Keypad\inkkeys-main\python-controller\controller.py", line 85, in work
pollInterval = mode.poll(device)
^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'poll'

Any assistance that you can offer would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions