Cannot install Cloud9 onto an EC2 instance

0

Having followed the guide to install Cloud9 onto an existing EC2 instance, found at: https://docs.aws.amazon.com/cloud9/latest/user-guide/installer.html

I did the following:

  • made a VPC with the required settings
  • met the SSH host requirements
  • installed python & node
  • ran curl -L https://d3kgj69l4ph6w4.cloudfront.net/static/c9-install-2.0.0.sh | bash
  • encountered an error, resolved by running sudo yum -y groupinstall "Development Tools"
  • ran again curl -L https://d3kgj69l4ph6w4.cloudfront.net/static/c9-install-2.0.0.sh | bash

which results in the following error message:

ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/ec2-user/.c9/tmp/pip-download-br6myy53/codeintel/setup.py'"'"'; __file__='"'"'/home/ec2-user/.c9/tmp/pip-download-br6myy53/codeintel/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /home/ec2-user/.c9/tmp/pip-pip-egg-info-nu56edr7
         cwd: /home/ec2-user/.c9/tmp/pip-download-br6myy53/codeintel/
    Complete output (8 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/ec2-user/.c9/tmp/pip-download-br6myy53/codeintel/setup.py", line 7, in <module>
        import codeintel
      File "/home/ec2-user/.c9/tmp/pip-download-br6myy53/codeintel/codeintel/__init__.py", line 204
        resource.setrlimit(resource.RLIMIT_AS, (2 * GB, -1L))
                                                          ^
    SyntaxError: invalid syntax
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

I've tried a few things, such as running python3 -m pip install --upgrade setuptools wheel and python3 -m pip install codeintel, but this results in different errors. It would make sense to me that the AWS instructions would work off the bat — but in my case they don't seem to. Has anybody else struggled installing cloud9 onto an existing ec2 instance?

Martin
asked a year ago343 views
1 Answer
0

After contacting AWS support on the matter, the fix is this one liner: sudo yum install -y python2-pip-20.2.2-1.amzn2.0.3.noarch

Martin
answered a year 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