[Logs] Installation pip install whatsapp-cli

[email protected]:~$ sudo pip install whatsappcli

/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory ‘/home/navdeep/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
WARNING: The directory ‘/home/navdeep/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Collecting whatsapp-cli
Downloading https://files.pythonhosted.org/packages/3b/b6/1068bff87861f1baaa4f7677f62162dfb6490d57ba1208332dc2ec2b4fdb/whatsapp_cli-0.1.2-py2-none-any.whl
Collecting websocket-client (from whatsapp-cli)
Downloading https://files.pythonhosted.org/packages/29/19/44753eab1fdb50770ac69605527e8859468f3c0fd7dc5a76dd9c4dbd7906/websocket_client-0.56.0-py2.py3-none-any.whl (200kB)
|████████████████████████████████| 204kB 5.5MB/s
Collecting click (from whatsapp-cli)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
|████████████████████████████████| 81kB 7.8MB/s
Requirement already satisfied: requests in /usr/local/lib/python2.7/dist-packages (from whatsapp-cli) (2.22.0)
Requirement already satisfied: six in ./.local/lib/python2.7/site-packages (from websocket-client->whatsapp-cli) (1.11.0)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (1.25.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (2019.6.16)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python2.7/dist-packages (from requests->whatsapp-cli) (2.8)
Installing collected packages: websocket-client, click, whatsapp-cli
Successfully installed click-7.0 websocket-client-0.56.0 whatsapp-cli-0.1.2

[Solved] urllib3 (1.25.3) or chardet (2.2.1) doesn’t match a supported version!

Hi i have faced the same error while running some python script but was able to resolve it with below given command, I hope it works for you too.

Error:-

/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.3) or chardet (2.2.1) doesn't match a supported version!
  RequestsDependencyWarning)
Traceback (most recent call last):
  File "/usr/bin/instapy", line 6, in <module>
    from instapy_cli.__main__ import main
  File "/usr/lib/python2.7/site-packages/instapy_cli/__main__.py", line 6, in <module>
    version = pkg_resources.require('instapy_cli')[0].version
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 630, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (chardet 2.2.1 (/usr/lib/python2.7/site-packages), Requirement.parse('chardet>=3.0.2,<3.1.0'))

Solution:-

pip install --upgrade requests
OR
sudo pip install --upgrade requests

 

Output:-

pip install --upgrade requests
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: requests in /usr/lib/python2.7/site-packages
Collecting chardet<3.1.0,>=3.0.2 (from requests)
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: idna<2.9,>=2.5 in /usr/lib/python2.7/site-packages (from requests)
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/lib/python2.7/site-packages (from requests)
Cache entry deserialization failed, entry ignored
Requirement already up-to-date: certifi>=2017.4.17 in /usr/lib/python2.7/site-packages (from requests)
Installing collected packages: chardet
Found existing installation: chardet 2.2.1
Uninstalling chardet-2.2.1:
Successfully uninstalled chardet-2.2.1
Successfully installed chardet-3.0.4