Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in demo--simple_base.py #31

Open
HoukJangBNL opened this issue Apr 1, 2022 · 0 comments
Open

error in demo--simple_base.py #31

HoukJangBNL opened this issue Apr 1, 2022 · 0 comments

Comments

@HoukJangBNL
Copy link

HoukJangBNL commented Apr 1, 2022

Hi @denisenkom

I am trying to use your package to get a image from Olympus sc180 camera.
I could find the device but cannot get the image.
Whenever I call
source.RequestAcquire(0,0)
it returns "Unexpected result: 2"

I tried with your demo code--simple_base.py
I added following four lines on to our code:
asdf = TwainBase()
asdf.Initialise()
asdf.OpenScanner()
dd = asdf.AcquireNatively()

still it returns same error as following:

Exception has occurred: Exception
Unexpected result: 2
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 86, in _Acquire
self.SD.RequestAcquire(0, 0) # 1,1 to show scanner user interface
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 95, in AcquireNatively
return self._Acquire()
File "C:\Users\Stacker\Downloads\pytwain-master\pytwain-master\demo\simple_base.py", line 191, in
dd = asdf.AcquireNatively()

is there any way to overcome?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant