It’s long, I’m sorry:
[root@centbox homeassistant]# scl enable rh-python35 bash
[root@centbox homeassistant]# source /opt/homeassistant/bin/activate
(homeassistant)[root@centbox homeassistant]# pylint wink.py
bash: pylint: command not found
(homeassistant)[root@centbox homeassistant]# pip3 install pylint
Collecting pylint
Downloading pylint-1.7.2-py2.py3-none-any.whl (644kB)
100% |████████████████████████████████| 647kB 387kB/s
Requirement already satisfied (use --upgrade to upgrade): six in ./lib/python3.5/site-packages (from pylint)
Collecting isort>=4.2.5 (from pylint)
Downloading isort-4.2.15-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 45kB 2.9MB/s
Collecting mccabe (from pylint)
Downloading mccabe-0.6.1-py2.py3-none-any.whl
Collecting astroid>=1.5.1 (from pylint)
Downloading astroid-1.5.3-py2.py3-none-any.whl (269kB)
100% |████████████████████████████████| 270kB 851kB/s
Collecting lazy-object-proxy (from astroid>=1.5.1->pylint)
Downloading lazy-object-proxy-1.3.1.tar.gz
Collecting wrapt (from astroid>=1.5.1->pylint)
Downloading wrapt-1.10.10.tar.gz
Building wheels for collected packages: lazy-object-proxy, wrapt
Running setup.py bdist_wheel for lazy-object-proxy
Complete output from command /opt/homeassistant/bin/python3 -c "import setuptools;__file__='/tmp/pip-build-w819b2gx/lazy-object-proxy/setup.py';exec(compile(open(__fil e__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp69jrdmdcpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/lazy_object_proxy
copying src/lazy_object_proxy/__init__.py -> build/lib.linux-x86_64-3.5/lazy_object_proxy
copying src/lazy_object_proxy/slots.py -> build/lib.linux-x86_64-3.5/lazy_object_proxy
copying src/lazy_object_proxy/simple.py -> build/lib.linux-x86_64-3.5/lazy_object_proxy
copying src/lazy_object_proxy/compat.py -> build/lib.linux-x86_64-3.5/lazy_object_proxy
copying src/lazy_object_proxy/utils.py -> build/lib.linux-x86_64-3.5/lazy_object_proxy
running egg_info
writing src/lazy_object_proxy.egg-info/PKG-INFO
writing dependency_links to src/lazy_object_proxy.egg-info/dependency_links.txt
writing top-level names to src/lazy_object_proxy.egg-info/top_level.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'src/lazy_object_proxy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '.isort.cfg'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dylib' found anywhere in distribution
writing manifest file 'src/lazy_object_proxy.egg-info/SOURCES.txt'
copying src/lazy_object_proxy/cext.c -> build/lib.linux-x86_64-3.5/lazy_object_proxy
running build_ext
building 'lazy_object_proxy.cext' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/src
creating build/temp.linux-x86_64-3.5/src/lazy_object_proxy
gcc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp -buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python35/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -f exceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/lazy_object_proxy -I/opt/ rh/rh-python35/root/usr/include/python3.5m -c src/lazy_object_proxy/cext.c -o build/temp.linux-x86_64-3.5/src/lazy_object_proxy/cext.o
gcc -pthread -shared -L/opt/rh/rh-python35/root/usr/lib64-Wl,-z,relro build/temp.linux-x86_64-3.5/src/lazy_object_proxy/cext.o -L/opt/rh/rh-python35/root/usr/lib64 -lp ython3.5m -o build/lib.linux-x86_64-3.5/lazy_object_proxy/cext.cpython-35m-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/__init__.py -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/slots.py -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/simple.py -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/compat.py -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/utils.py -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/cext.c -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
copying build/lib.linux-x86_64-3.5/lazy_object_proxy/cext.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/lazy_object_proxy
running install_egg_info
Copying src/lazy_object_proxy.egg-info to build/bdist.linux-x86_64/wheel/lazy_object_proxy-1.3.1-py3.5.egg-info
running install_scripts
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-w819b2gx/lazy-object-proxy/setup.py", line 115, in <module>
for root, _, _ in os.walk('src')
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 213, in run
archive_basename = self.get_archive_basename()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 161, in get_archive_basename
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 155, in get_tag
assert tag == supported_tags[0]
AssertionError
----------------------------------------
Failed building wheel for lazy-object-proxy
Running setup.py bdist_wheel for wrapt
Complete output from command /opt/homeassistant/bin/python3 -c "import setuptools;__file__='/tmp/pip-build-w819b2gx/wrapt/setup.py';exec(compile(open(__file__).read(). replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp4wvueddmpip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/wrapt
copying src/wrapt/__init__.py -> build/lib.linux-x86_64-3.5/wrapt
copying src/wrapt/arguments.py -> build/lib.linux-x86_64-3.5/wrapt
copying src/wrapt/decorators.py -> build/lib.linux-x86_64-3.5/wrapt
copying src/wrapt/importer.py -> build/lib.linux-x86_64-3.5/wrapt
copying src/wrapt/wrappers.py -> build/lib.linux-x86_64-3.5/wrapt
running build_ext
building 'wrapt._wrappers' extension
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/src
creating build/temp.linux-x86_64-3.5/src/wrapt
gcc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp -buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -I/opt/rh/rh-python35/root/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -f exceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/opt/rh/rh-python35/root/usr/ include/python3.5m -c src/wrapt/_wrappers.c -o build/temp.linux-x86_64-3.5/src/wrapt/_wrappers.o
gcc -pthread -shared -L/opt/rh/rh-python35/root/usr/lib64-Wl,-z,relro build/temp.linux-x86_64-3.5/src/wrapt/_wrappers.o -L/opt/rh/rh-python35/root/usr/lib64 -lpython3. 5m -o build/lib.linux-x86_64-3.5/wrapt/_wrappers.cpython-35m-x86_64-linux-gnu.so
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/__init__.py -> build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/arguments.py -> build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/decorators.py -> build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/importer.py -> build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/wrappers.py -> build/bdist.linux-x86_64/wheel/wrapt
copying build/lib.linux-x86_64-3.5/wrapt/_wrappers.cpython-35m-x86_64-linux-gnu.so -> build/bdist.linux-x86_64/wheel/wrapt
running install_egg_info
running egg_info
creating src/wrapt.egg-info
writing dependency_links to src/wrapt.egg-info/dependency_links.txt
writing src/wrapt.egg-info/PKG-INFO
writing top-level names to src/wrapt.egg-info/top_level.txt
writing manifest file 'src/wrapt.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'src/wrapt.egg-info/SOURCES.txt'
writing manifest file 'src/wrapt.egg-info/SOURCES.txt'
Copying src/wrapt.egg-info to build/bdist.linux-x86_64/wheel/wrapt-1.10.10-py3.5.egg-info
running install_scripts
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-w819b2gx/wrapt/setup.py", line 94, in <module>
run_setup(with_extensions=True)
File "/tmp/pip-build-w819b2gx/wrapt/setup.py", line 70, in run_setup
setup(**setup_kwargs_tmp)
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/opt/rh/rh-python35/root/usr/lib64/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 213, in run
archive_basename = self.get_archive_basename()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 161, in get_archive_basename
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/opt/homeassistant/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 155, in get_tag
assert tag == supported_tags[0]
AssertionError
----------------------------------------
Failed building wheel for wrapt
Failed to build lazy-object-proxy wrapt
Installing collected packages: isort, mccabe, lazy-object-proxy, wrapt, astroid, pylint
Running setup.py install for lazy-object-proxy
Running setup.py install for wrapt
Successfully installed astroid-1.5.3 isort-4.2.15 lazy-object-proxy-1.3.1 mccabe-0.6.1 pylint-1.7.2 wrapt-1.10.10
(homeassistant)[root@centbox homeassistant]# pylint wink.py
No config file found, using default configuration
************* Module wink.py
F: 1, 0: No module named wink.py (fatal)
(homeassistant)[root@centbox homeassistant]# cd /opt/homeassistant/custom_components/
(homeassistant)[root@centbox custom_components]# pylint wink.py
No config file found, using default configuration
************* Module wink
C:485, 0: Trailing newlines (trailing-newlines)
R:177, 0: Too many local variables (23/15) (too-many-locals)
E:179, 4: Unable to import 'pywink' (import-error)
E:180, 4: Unable to import 'pubnubsubhandler' (import-error)
W:281,24: Unused argument 'event_time' (unused-argument)
W:295,27: Unused argument 'event' (unused-argument)
W:301,26: Unused argument 'event' (unused-argument)
W:307,21: Unused argument 'call' (unused-argument)
W:317,25: Unused argument 'call' (unused-argument)
-----------------------------------
Your code has been rated at 9.35/10
(homeassistant)[root@centbox custom_components]#