Closed paldana closed 1 year ago
Hi Paul,
Lambda does not support a proper module installation so package manager is empty, while python-tds needs it. Not much can be done unless hacking the source.
Run the following on your Mac:
import pkg_resources pkg_resources.get_distribution('python-tds').version '1.11.0'
Hardcode line 46 of init.py with this value.
Regards, Tako
Hi Tako,
Thanks for your response! Hardcoding the version number worked. Hopefully there will be a better way to do this in the future.
For future reference, I had to download the source code and include pytds directory with the lambda handler function to make it work.
Thanks again!
Best,
Paul
Hi, I'm trying to use pytds on a lambda function to connect to an MS SQL database. Everything works fine when I run the code locally on a MacOS computer. However, when I try to test it on the actual Lambda function on AWS Console, I'm getting the "DistributionNotFound" error. Below is the complete log
How should I resolve this issue?
Thanks,
Paul