I developed a Python program for use on multiple computers. The program is a counter that calculates time splits for every time a barcode scanner reads a QR code, and writes these time splits to CSV files an updates a dashboard with the count. Python does not have focus for this use, which is why pyHook is necessary to receive the barcode scans. Python 2.7 is installed on every computers' hard drive, and the Python program itself is on our network drive so it can write CSV files to the network.
I could not find an installer for pyHook for Windows (64 bit), so I just copied the necessary module file into the site-packages folder in Python on the hard drive.
The issue I'm running into is that the program has worked on every computer multiple times but it's a coin flip whether it will work or not on any given try, which makes no sense to me and is why it's incredibly difficult to troubleshoot.
The program first opens an input window, and then based on the inputs creates a dashboard with tkinter. The user then goes to a different web program for scanning, so the dashboard doesn't have focus at this point, and then starts to scan. Even when the program fails, it gets this far and then nothing from the barcode scanner is read in.
Does anyone have any ideas on why this inconsistent error happens? Do I need to do something else to install pyHook properly? Is there an issue with access to the modules that I can fix?