I have a Lightsail instance that I created with Node pre-installed. I would like to get Cloud9 installed because my end goal is to be able to work on a MERN stack and see the changes over a domain name immediately.
Creating a base React app and a base server was not a problem. But the next step is to get Cloud9 and it is not going well.
I am following these instructions: https://docs.aws.amazon.com/cloud9/latest/user-guide/lightsail-instances.html#lightsail-instances-setup
Step 2.8 links to this page to use the Cloud9 installer https://docs.aws.amazon.com/cloud9/latest/user-guide/installer.html#installer-download-run
This in turn says to use one of these 2 commands to pull it down and install.
curl -L https://d3kgj69l4ph6w4.cloudfront.net/static/c9-install-2.0.0.sh | bash
wget -O - https://d3kgj69l4ph6w4.cloudfront.net/static/c9-install-2.0.0.sh | bash
It appears the getting the file is not a problem but wither I use curl
or wget
I get the same error:
Collecting codeintel==0.9.3
Using cached CodeIntel-0.9.3.tar.gz (11.9 MB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/bitnami/python/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/bitnami/.c9/tmp/pip-download-ujactnl_/codeintel_6b166ed96
c3c4abea8b3820caf7af722/setup.py'"'"'; __file__='"'"'/home/bitnami/.c9/tmp/pip-download-ujactnl_/codeintel_6b166ed96c3c4abea8b3820caf7af722/setup.py'"'"';f = getattr(token
ize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /home/bitnami/.c9/tmp/pip-pip-egg-info-h_eacai8
cwd: /home/bitnami/.c9/tmp/pip-download-ujactnl_/codeintel_6b166ed96c3c4abea8b3820caf7af722/
Complete output (8 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/bitnami/.c9/tmp/pip-download-ujactnl_/codeintel_6b166ed96c3c4abea8b3820caf7af722/setup.py", line 7, in <module>
import codeintel
File "/home/bitnami/.c9/tmp/pip-download-ujactnl_/codeintel_6b166ed96c3c4abea8b3820caf7af722/codeintel/__init__.py", line 204
resource.setrlimit(resource.RLIMIT_AS, (2 * GB, -1L))
^
SyntaxError: invalid syntax
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/17/24/fdbdb494142f28d524ed81edacf5630fe97aa209b3252ae01260af0e1ad6/CodeIntel-0.9.3.tar.gz#sha256=258d25f7376c65
64f7c58d98273734b9b56e40e53ff82aacbfa5f8c8835c8419 (from https://pypi.org/simple/codeintel/). Command errored out with exit status 1: python setup.py egg_info Check the lo
gs for full command output.
ERROR: Could not find a version that satisfies the requirement codeintel==0.9.3 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.9.3, 2.0.0b10, 2.0.0b11, 2.0.0b
12, 2.0.0b13, 2.0.0b14, 2.0.0b15, 2.0.0b16, 2.0.0b19, 2.0.0b20, 2.0.0b21, 2.0.0b22, 2.0.0b23, 2.0.0b24, 2.0.0b25, 2.0.0b26, 2.0.0b27, 2.0.0b28, 2.0.0b29, 2.0.0b30, 2.0.0b3
1, 2.0.0b32, 2.0.0b33, 2.0.0b34, 2.0.0b35, 2.0.0b36, 2.0.0rc1, 2.0.0rc2, 2.0.0)
ERROR: No matching distribution found for codeintel==0.9.3
real0m2.764s
user0m2.358s
sys0m0.286s
The instance came with python 3.8.16 pre-installed, and the first page of instructions instructed to install python 2.7 using sudo apt install -y python-minimal
-- which failed, so I installed python 2.7 using sudo apt install -y python2
-- which produced no errors. I added alias python='/usr/bin/python2.7'
to ~/.bashrc and done source ~/.bashrc
and tried the same commands, with the same error as a result.
If it's relevant, NodeJS is v16.18.1
So, why is the Cloud9 installer getting hung up on codeintel here?
Note: I've visited https://pypi.org/project/CodeIntel/0.9.3/#files and codeintel does have a version 0.9.3, so the line saying "could not vind a version that satisfies" doesn't make any sense to me. I even checked the download link and the sha256 hash matches what was output there. I do not know why the listed versions in the installer's output doesn't display it. To me, that leaves the first part of the error as culprit, but I have very little familiarity with Python so I'm not sure how to parse that command. /opt/bitnami/python/bin/
is the location where all the python3 files are stored, but I guess that python
is still 2.7, bc python version
still returns 2.7.18 and which python
is /opt/bitnami/python/bin/python
so....