print "{}: {}".format(exception_type.__name__, exception)
- Dominant language
- Python
- Stars
- 12
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
OS: sles15sp1
kernel: 4.12.14-197.15-default
# python3 setup.py install
running install
running bdist_egg
running egg_info
creating gwtop.egg-info
writing gwtop.egg-info/PKG-INFO
writing dependency_links to gwtop.egg-info/dependency_links.txt
writing top-level names to gwtop.egg-info/top_level.txt
writing manifest file 'gwtop.egg-info/SOURCES.txt'
reading manifest file 'gwtop.egg-info/SOURCES.txt'
writing manifest file 'gwtop.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/gwtop
copying gwtop/__init__.py -> build/lib/gwtop
creating build/lib/gwtop/collectors
copying gwtop/collectors/__init__.py -> build/lib/gwtop/collectors
copying gwtop/collectors/pcp_provider.py -> build/lib/gwtop/collectors
creating build/lib/gwtop/UI
copying gwtop/UI/__init__.py -> build/lib/gwtop/UI
copying gwtop/UI/appmode.py -> build/lib/gwtop/UI
copying gwtop/UI/datamanager.py -> build/lib/gwtop/UI
copying gwtop/UI/textmode.py -> build/lib/gwtop/UI
creating build/lib/gwtop/utils
copying gwtop/utils/__init__.py -> build/lib/gwtop/utils
copying gwtop/utils/data.py -> build/lib/gwtop/utils
copying gwtop/utils/kbd.py -> build/lib/gwtop/utils
creating build/lib/gwtop/config
copying gwtop/config/__init__.py -> build/lib/gwtop/config
copying gwtop/config/ceph.py -> build/lib/gwtop/config
copying gwtop/config/generic.py -> build/lib/gwtop/config
copying gwtop/config/lio.py -> build/lib/gwtop/config
copying gwtop/config/local.py -> build/lib/gwtop/config
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/gwtop
copying build/lib/gwtop/__init__.py -> build/bdist.linux-x86_64/egg/gwtop
creating build/bdist.linux-x86_64/egg/gwtop/collectors
copying build/lib/gwtop/collectors/__init__.py -> build/bdist.linux-x86_64/egg/gwtop/collectors
copying build/lib/gwtop/collectors/pcp_provider.py -> build/bdist.linux-x86_64/egg/gwtop/collectors
creating build/bdist.linux-x86_64/egg/gwtop/UI
copying build/lib/gwtop/UI/__init__.py -> build/bdist.linux-x86_64/egg/gwtop/UI
copying build/lib/gwtop/UI/appmode.py -> build/bdist.linux-x86_64/egg/gwtop/UI
copying build/lib/gwtop/UI/datamanager.py -> build/bdist.linux-x86_64/egg/gwtop/UI
copying build/lib/gwtop/UI/textmode.py -> build/bdist.linux-x86_64/egg/gwtop/UI
creating build/bdist.linux-x86_64/egg/gwtop/utils
copying build/lib/gwtop/utils/__init__.py -> build/bdist.linux-x86_64/egg/gwtop/utils
copying build/lib/gwtop/utils/data.py -> build/bdist.linux-x86_64/egg/gwtop/utils
copying build/lib/gwtop/utils/kbd.py -> build/bdist.linux-x86_64/egg/gwtop/utils
creating build/bdist.linux-x86_64/egg/gwtop/config
copying build/lib/gwtop/config/__init__.py -> build/bdist.linux-x86_64/egg/gwtop/config
copying build/lib/gwtop/config/ceph.py -> build/bdist.linux-x86_64/egg/gwtop/config
copying build/lib/gwtop/config/generic.py -> build/bdist.linux-x86_64/egg/gwtop/config
copying build/lib/gwtop/config/lio.py -> build/bdist.linux-x86_64/egg/gwtop/config
copying build/lib/gwtop/config/local.py -> build/bdist.linux-x86_64/egg/gwtop/config
byte-compiling build/bdist.linux-x86_64/egg/gwtop/UI/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/UI/appmode.py to appmode.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/UI/datamanager.py to datamanager.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/UI/textmode.py to textmode.cpython-36.pyc
File "build/bdist.linux-x86_64/egg/gwtop/UI/textmode.py", line 182
print "breaking from thread"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("breaking from thread")?byte-compiling build/bdist.linux-x86_64/egg/gwtop/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/collectors/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/collectors/pcp_provider.py to pcp_provider.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/config/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/config/ceph.py to ceph.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/config/generic.py to generic.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/config/lio.py to lio.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/config/local.py to local.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/utils/__init__.py to __init__.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/utils/data.py to data.cpython-36.pyc
byte-compiling build/bdist.linux-x86_64/egg/gwtop/utils/kbd.py to kbd.cpython-36.pyc
File "build/bdist.linux-x86_64/egg/gwtop/utils/kbd.py", line 50
print "Press q to quit..."
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Press q to quit...")?creating build/bdist.linux-x86_64/egg/EGG-INFO
installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts
running install_scripts
running build_scripts
creating build/scripts-3.6
copying and adjusting gwtop.py -> build/scripts-3.6
changing mode of build/scripts-3.6/gwtop.py from 644 to 755
creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts
copying build/scripts-3.6/gwtop.py -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts
changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/gwtop.py to 755
copying gwtop.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gwtop.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gwtop.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
copying gwtop.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/gwtop-2.1-py3.6.egg' and adding 'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing gwtop-2.1-py3.6.egg
Copying gwtop-2.1-py3.6.egg to /usr/lib/python3.6/site-packages
Adding gwtop 2.1 to easy-install.pth file
Installing gwtop script to /usr/binInstalled /usr/lib/python3.6/site-packages/gwtop-2.1-py3.6.egg
Processing dependencies for gwtop==2.1
Finished processing dependencies for gwtop==2.1
node003:~/ceph-iscsi-tools-2.1 # gwtop -h
Traceback (most recent call last):
File "/usr/bin/gwtop", line 4, in
__import__('pkg_resources').run_script('gwtop==2.1', 'gwtop')
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 661, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1447, in run_script
script_code = compile(script_text, script_filename, 'exec')
File "/usr/lib/python3.6/site-packages/gwtop-2.1-py3.6.egg/EGG-INFO/scripts/gwtop", line 67
print "{}: {}".format(exception_type.__name__, exception)
^
SyntaxError: invalid syntax
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the gwtop.py entry point and inspect the Python 2 print statements reported in gwtop/UI/textmode.py and gwtop/utils/kbd.py. Run python3 setup.py install, then invoke gwtop -h; done means installation and the help command complete without the shown SyntaxError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100