python 2.7 because of dependence
i have a basic code that list my scanners and its working when i execute on my pc: py ws.py
but when i create a .exe file of this code, doenst give any error apparently, but doesnt list the devices. I'm creating the .exe file with this: py -m PyInstaller --onefile .\ws1.py
-- coding: utf-8 --
import twain
try:
src_manager = twain.SourceManager(0)
devices = src_manager.GetSourceList()
print("Aqui4", devices)
except ValueError:
print(ValueError)
When i execute the code local, it gives me
Qt: Untested Windows version 6.2 detected!
('Aqui4', ['TWAIN2 FreeImage Software Scanner'])
When i execute the code from .exe it gives me (this qt Untested Windows... doenst print)
('Aqui4', [])