External python libraries in a AWS Glue python shell job

0

I am trying to use geopandas in a python shell job, but can't get it working.

I have tried following this guide: https://repost.aws/knowledge-center/glue-import-error-no-module-named and also providing a zip file of the library as well. In the first case it says 'No module named shapely' (with or without shapely in install_requires in setup.py). In the second case, it says 'No module named shapely.lib'

Any help would be appreciated. Thanks!

Guts
已提問 1 個月前檢視次數 152 次
1 個回答
0

The easiest thing is just to use --additional-python-modules=shapely so it installs from pip.
If you use a zip, make sure the module inside is correct (you can unzip it locally, start a Python interpreter on the same directory and see if you can import it and it)

profile pictureAWS
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南