Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Script does not seem to run on Amazon's Linux 2 AMI #4

Open
jheld67 opened this issue May 7, 2021 · 0 comments
Open

Script does not seem to run on Amazon's Linux 2 AMI #4

jheld67 opened this issue May 7, 2021 · 0 comments

Comments

@jheld67
Copy link

jheld67 commented May 7, 2021

I'm using this script as part of an AWS "https://aws.amazon.com/blogs/big-data/analysis-of-top-n-dynamodb-objects-using-amazon-athena-and-amazon-quicksight/" workshop.

I am by no means a python expert, but there seems to be an issue with the script or how I am running it. I installed the prerequisite boto3, twitter and other applications, but when I run the script it gives me errors such as "no module named boto3."

This happens for all of the prerequisite modules. When I run pip freeze, it shows all the modules installed - twitter, boto3, and so on as installed.

  1. Does the new AWS Linux 2 AMI require some extra configuration?
  2. Do I need to specify which version of python to use?
  3. Is there some kind of environment variable I need to set on EC2 to tell the script where to look for the modules?
  4. Do I need to add something extra to how I install these modules from a permissions standpoint?
  5. Should I run this script on a different AMI?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant