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

ImportError: numpy.core.multiarray failed to import #3011

Open
LBogolubov1 opened this issue Oct 31, 2024 · 2 comments
Open

ImportError: numpy.core.multiarray failed to import #3011

LBogolubov1 opened this issue Oct 31, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@LBogolubov1
Copy link

Describe the bug

Our Glue jobs suddenly started to fail with ImportError: numpy.core.multiarray failed to import

How to Reproduce

Just use pandas

Expected behavior

Numpy should be imported properly

Your project

No response

Screenshots

image (3)

OS

Linux

Python version

3.10

AWS SDK for pandas version

3.10.0

Additional context

No response

@LBogolubov1 LBogolubov1 added the bug Something isn't working label Oct 31, 2024
@jaidisido
Copy link
Contributor

jaidisido commented Oct 31, 2024

Release 3.10.0 of the library enabled support for numpy 2.0. Sadly, AWS Glue does not currently support numpy 2+. Two options are available to you in your Glue job configuration:

  1. Install a lower version of awswrangler (3.9.1 or lower)
  2. Install numpy 1.26.1<2.x with awswrangler 3.10+:
--additional-python-modules: numpy==1.26.1,awswrangler==3.10.0

@jaidisido jaidisido pinned this issue Oct 31, 2024
@worksofindustry
Copy link

worksofindustry commented Oct 31, 2024

Having the exact same issue the fix is --additional-python-modules'] = redshift_connector,awswrangler==3.9.1'

Also downgrading to Glue 3.0 can resolve the issue, but you'll be losing the advantages of Glue 4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants