I managed to fix the problem using the following pyinstaller command:
pyinstaller --recursive-copy-metadata puresnmp \ --collect-all puresnmp \ --collect-all puresnmp_plugins \ --noconfirm --onefile --clean your_main_module.py