1

I want to connect to Microsoft SQL Server using python script which I will execute on AWS Glue. I added JOb parameter at Security configuration->script libraries->job parameters (optional) section as below :

Key : --additional-python-modules
Value: pyodbc==4.0.32,s3://bucketname/python_scripts/python-libs/pyodbc-4.0.32-cp37-cp37m-win32.whl

When I execute the job I am getting below error :

com.amazonaws.services.glue.PythonModuleInstaller   [main]  ERROR: pyodbc-4.0.32-cp37-cp37m-win32.whl is not a supported wheel on this platform.

I tried python2 and python3 wheels as well but same error !

Sam
  • 392
  • 1
  • 6
  • 18

1 Answers1

0

Can you try to use the --extra-py-files instead of the --additional-python-modules flag for your wheel?

Robert Kossendey
  • 6,733
  • 2
  • 12
  • 42
  • I tried as below but no luck ! ```--extra-py-files s3://bucket/python_scripts/python-libs/pyodbc-4.0.32-cp37-cp37m-win32.whl``` ```--extra-py-files pyodbc==4.0.32,s3://bucket/python_scripts/python-libs/pyodbc-4.0.32-cp37-cp37m-win32.whl``` still it says module not found! – Sam Oct 22 '21 at 15:45