I have the following script (simplified) -
conn = boto.sqs.connect_to_region("my_region",aws_access_key_id="my_key",
messages = 
q = conn.get_queue("my_queue")
rs = q.get_messages(10)
if len(rs) == 0:
for m in rs:
When I run it with -
python test.py everything works as expected. When I run it with
spark-submit --py-files deploy.zip test.zip I get -
[Errno 20] Not a directory:
Although when I unzip deploy.zip it includes boto and endpoints.json inside.
deploy.zip includes the requirements from my script (
pip install -r req.txt -t lib and then zip)
Would appreciate any help, thanks in advance.