pytwain
pytwain copied to clipboard
Type Error on import twain
I am facing issue right on the first line.
OS : Windows 10 64-bit
import twain
Traceback (most recent call last):
File "C:\Users\DELL\PycharmProjects\DocScanner1\main.py", line 1, in
What is your Python version? You are probably using unsupported version, oldest supported version is 3.8
Preivously, I had python 3.8 installed but still same issue so i upgraded to python 3.12 and got it running. But now when i click scan button, below error pops up, can you help me here?
INFO:twain:attempting to load dll: twaindsm.dll
ERROR:twain:load failed with error Could not find module 'twaindsm.dll' (or one of its dependencies). Try using the full path with constructor syntax
Here https://pytwain.readthedocs.io/en/latest/ you can find some information on how to install twaindsm.dll