denisenkom

Results 51 comments of denisenkom

Can you provide full stack trace?

You can use @@identity or SCOPE_IDENTITY(): https://blog.sqlauthority.com/2007/03/25/sql-server-identity-vs-scope_identity-vs-ident_current-retrieve-last-inserted-identity-of-record/

(7, (3, 3, [100.0, 0.384, 0.15, -27136.0, 150.0, 0.512, 0.2])) here 7 means enumeration, it is equal to value of TWON_ENUMERATION first 3 is current index, this is the index...

This error means that source does not support file transfer, therefore you need to use native transfer instead via `acquire_natively` function.

That is a bug in pytwain. You can try fixing it. First you need to add close, lock, unlock parameters to _Image class constructor and save them in _close, _lock,...

I made a fix https://github.com/denisenkom/pytwain/commit/6eb7c5861c10159d6424d53f1ff2be4159d2ca5e, it should fix the below error: ``` AttributeError: '_Image' object has no attribute '_free' ``` Try it.

Hi, thank you for reporting! First issue is fixed in https://github.com/denisenkom/pytds/commit/14b0284024f32befbc1a0e17e225e83e2200403e. I will look at second issue. I noticed that you use `validate_host=False`, this makes you vulnerable to MitM attack...

What is your Python version? You are probably using unsupported version, oldest supported version is 3.8

Here https://pytwain.readthedocs.io/en/latest/ you can find some information on how to install twaindsm.dll

This library is just a wrapper around TWAIN library. Take a look at TWAIN specification for more troubleshooting ideas: http://www.twain.org/wp-content/uploads/2017/03/TWAIN-2.4-Specification.pdf Let me know if the problem is with the wrapper.