Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5240

Python • Re: I got a massive error and have no idea what it means

$
0
0
One of the imported libraries in your python code is trying to run a program called dumpkeys with the command line argument --keys-only.

The program is failing. Try running

Code:

dumpkeys --keys-only
on the command line.

I tried dumpkeys on a Raspberry Pi 5 running Bookworm and get

Code:

% dumpkeys --keys-onlyCouldn't get a file descriptor referring to the console.
Running with sudo works

Code:

% sudo dumpkeys --keys-onlykeymaps 0-2,4-5,8,12keycode   1 = Escape           Escape        alt     keycode   1 = Meta_Escape...        
Try running your python code as root using sudo

Statistics: Posted by AndyD — Wed May 15, 2024 9:36 pm



Viewing all articles
Browse latest Browse all 5240

Trending Articles