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

PackageNotFoundError: scramp when using redshift_connector library in glue #219

Open
learncode1146 opened this issue Apr 25, 2024 · 1 comment

Comments

@learncode1146
Copy link

learncode1146 commented Apr 25, 2024

In aws glue shell job , i am using a wheel file which has all the libraries needed for aws wrangler, redshift-connector and i do see scramp library part of the wheel file. However when i install this wheel during glue python shell job i am getting the following error event though scramp library is installed.

Glue python version 3.9
aws wrangler version = 3.7.3
redshift-connector version = 2.1.1

I am trying to connect to redshift serverless using the above libraries and here

`

from redshift_connector.core import BINARY, Connection, Cursor File "/glue/lib/installation/redshift_connector/core.py", line 18, in | from redshift_connector.core import BINARY, Connection, Cursor File "/glue/lib/installation/redshift_connector/core.py", line 18, in -- | --

from scramp import ScramClient # type: ignore File "/glue/lib/installation/scramp/init.py", line 12, in |

version = version("scramp") File "/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py", line 560, in version |  
 
return Distribution.from_name(distribution_name) File "/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py",

"/.pyenv/versions/3.9.10/lib/python3.9/importlib/metadata.py", line 187, in from_name

raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: scramp

`
@kkadiyam
Copy link

I am stuck on same issue, You got any luck with this ?

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

2 participants