You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to install this library on elasticbeanstalk where python version is 2.7 and requests version is 2.9.1 and futures version is 3.2.0 but I am getting the below error. Kindly can anyone tell why this is happening and how to resolve this?
Collecting requests-futures>=1.0.0
Downloading requests-futures-1.0.0.tar.gz (10 kB)
ERROR: Command errored out with exit status 1:
command: /opt/python/run/venv/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ESsE8X/requests-futures/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ESsE8X/requests-futures/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 /tmp/pip-pip-egg-info-h_E3Vo
cwd: /tmp/pip-install-ESsE8X/requests-futures/
Complete output (51 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ESsE8X/requests-futures/setup.py", line 51, in <module>
'Programming Language :: Python :: 3.5',
File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 315, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 361, in fetch_build_eggs
replace_conflicting=True,
File "/opt/python/run/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 850, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1122, in best_match
return self.obtain(req, installer)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1134, in obtain
return installer(requirement)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/dist.py", line 429, in fetch_build_egg
return cmd.easy_install(req)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 665, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 695, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 876, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1115, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1101, in run_setup
run_setup(setup_script, args)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 236, in run_setup
with setup_context(setup_dir):
File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 198, in setup_context
yield
File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 169, in save_modules
saved_exc.resume()
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 144, in resume
six.reraise(type, exc, self._tb)
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 157, in save_modules
yield saved
File "/opt/python/run/venv/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 197, in setup_context
__import__('setuptools')
File "setuptools/__init__.py", line 16, in <module>
File "/opt/python/run/venv/local/lib/python2.7/site-packages/pkg_resources/extern/__init__.py", line 43, in load_module
__import__(extant)
File "pkg_resources/__init__.py", line 1380
raise SyntaxError(e) from e
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The text was updated successfully, but these errors were encountered:
I was trying to install this library on elasticbeanstalk where python version is 2.7 and requests version is 2.9.1 and futures version is 3.2.0 but I am getting the below error. Kindly can anyone tell why this is happening and how to resolve this?
The text was updated successfully, but these errors were encountered: