New file won't run, have tried saving as .py or .txt first, trouble with that as well.

0

First time user, scavenged the web on this previously. Starting my environment it keeps showing this error message when I hit run top or in the terminal.

/usr/bin/python3: can't find 'main' module in ''

Ive been following this guide https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-python.html I can't figure out how to even complete step 1 because this save issue

asked 2 years ago247 views
1 Answer
0

Hey! It's unfortunate you're facing this issue.

I have just created a new Cloud9 EC2 environment and was able to successfully complete steps 1, 2 and 3 of https://docs.aws.amazon.com/cloud9/latest/user-guide/sample-python.html.

I've tried this with both Amazon Linux 2 and Ubuntu Server 18.04.

You mention you are not able to complete step 1 (Install Python). What do you see if you run python3 --version? Do you see that error as well?

And is there any difference after you run steps 1.2 and 1.3 of the guide?

  • 1.2
    • Amazon Linux: sudo yum -y update
    • Ubuntu Server: sudo apt update
  • 1.3
    • Amazon Linux: sudo yum -y install python3
    • Ubuntu Server: sudo apt-get install python3
AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions