Getting error while installing Oncall
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.3k
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
During Oncall instalation top of the tree, it is bailing out. I tries on Ubuntu 18.04 and 16.04 LTS. Both have similar issues.
python setup.py develop
STACK TRACE BELOW:
-----------------------------------
sudo python setup.py develop
running develop
running egg_info
writing requirements to src/oncall.egg-info/requires.txt
writing src/oncall.egg-info/PKG-INFO
writing top-level names to src/oncall.egg-info/top_level.txt
writing dependency_links to src/oncall.egg-info/dependency_links.txt
reading manifest file 'src/oncall.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/oncall.egg-info/SOURCES.txt'
running build_ext
Creating /usr/local/lib/python2.7/dist-packages/oncall.egg-link (link to src)
oncall 1.1.0 is already the active version in easy-install.pth
Installed /home/avutuc/projects/oncall/src
Processing dependencies for oncall==1.1.0
Searching for aiohttp>3.5.2
Reading https://pypi.python.org/simple/aiohttp/
Downloading https://files.pythonhosted.org/packages/ef/54/8926aef41c43f9126c65359eab8b0260fd53da29102ceeffe654e88215cc/aiohttp-4.0.0a0.tar.gz#sha256=371a5f1bb604fc262ba32893931f5aad3bb3e797dbebcf2b5b2c36f97603e4c7
Best match: aiohttp 4.0.0a0
Processing aiohttp-4.0.0a0.tar.gz
Writing /tmp/easy_install-K4C3ZC/aiohttp-4.0.0a0/setup.cfg
Running aiohttp-4.0.0a0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-K4C3ZC/aiohttp-4.0.0a0/egg-dist-tmp-Qbxxnc
Traceback (most recent call last):
Traceback (most recent call last):
File "setup.py", line 35, in
'pymsteams'
File "/usr/lib/python2.7/dist-packages/setuptools/__init__.py", line 129, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 36, in run
self.install_for_development()
File "/usr/lib/python2.7/dist-packages/setuptools/command/develop.py", line 152, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 771, in process_distribution
[requirement], self.local_index, self.easy_install
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 774, in resolve
replace_conflicting=replace_conflicting
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1057, in best_match
return self.obtain(req, installer)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1069, in obtain
return installer(requirement)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 698, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 724, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 909, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1177, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1163, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/contextlib.py", line 35, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 44, in _execfile
code = compile(script, filename, 'exec')
File "/tmp/easy_install-K4C3ZC/aiohttp-4.0.0a0/setup.py", line 24
print("Install cython when building from git clone", file=sys.stderr)
^
SyntaxError: invalid syntax
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py and the dependency resolution shown in the traceback, especially the aiohttp version selected during `python setup.py develop`. Reproduce the installation failure on the reported Ubuntu/Python 2.7 environment and verify that the documented installation path completes without the shown SyntaxError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100