Unable to install awscli because of httpsession not found












0














I am following the official documentation in order to install aws-cli on my Ubuntu.



However, pip installation is successful but when I run the command:



 sudo pip install awscli --upgrade --user


I get the following error:



Traceback (most recent call last):
File "/home/aviral/.local/bin/aws", line 27, in <module>
sys.exit(main())
File "/home/aviral/.local/bin/aws", line 23, in main
return awscli.clidriver.main()
File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 58, in main
driver = create_clidriver()
File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 68, in create_clidriver
event_hooks=session.get_component('event_emitter'))
File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 44, in load_plugins
modules = _import_plugins(plugin_mapping)
File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 61, in _import_plugins
module = __import__(path, fromlist=[module])
File "/usr/local/lib/python3.5/dist-packages/awscli/handlers.py", line 20, in <module>
from awscli.paramfile import register_uri_param_handler
File "/usr/local/lib/python3.5/dist-packages/awscli/paramfile.py", line 18, in <module>
from botocore.httpsession import URLLib3Session
ImportError: No module named 'botocore.httpsession


My Python is:
/usr/local/bin/python
And my aws is:
/home/aviral/.local/bin/aws










share|improve this question



























    0














    I am following the official documentation in order to install aws-cli on my Ubuntu.



    However, pip installation is successful but when I run the command:



     sudo pip install awscli --upgrade --user


    I get the following error:



    Traceback (most recent call last):
    File "/home/aviral/.local/bin/aws", line 27, in <module>
    sys.exit(main())
    File "/home/aviral/.local/bin/aws", line 23, in main
    return awscli.clidriver.main()
    File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 58, in main
    driver = create_clidriver()
    File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 68, in create_clidriver
    event_hooks=session.get_component('event_emitter'))
    File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 44, in load_plugins
    modules = _import_plugins(plugin_mapping)
    File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 61, in _import_plugins
    module = __import__(path, fromlist=[module])
    File "/usr/local/lib/python3.5/dist-packages/awscli/handlers.py", line 20, in <module>
    from awscli.paramfile import register_uri_param_handler
    File "/usr/local/lib/python3.5/dist-packages/awscli/paramfile.py", line 18, in <module>
    from botocore.httpsession import URLLib3Session
    ImportError: No module named 'botocore.httpsession


    My Python is:
    /usr/local/bin/python
    And my aws is:
    /home/aviral/.local/bin/aws










    share|improve this question

























      0












      0








      0







      I am following the official documentation in order to install aws-cli on my Ubuntu.



      However, pip installation is successful but when I run the command:



       sudo pip install awscli --upgrade --user


      I get the following error:



      Traceback (most recent call last):
      File "/home/aviral/.local/bin/aws", line 27, in <module>
      sys.exit(main())
      File "/home/aviral/.local/bin/aws", line 23, in main
      return awscli.clidriver.main()
      File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 58, in main
      driver = create_clidriver()
      File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 68, in create_clidriver
      event_hooks=session.get_component('event_emitter'))
      File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 44, in load_plugins
      modules = _import_plugins(plugin_mapping)
      File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 61, in _import_plugins
      module = __import__(path, fromlist=[module])
      File "/usr/local/lib/python3.5/dist-packages/awscli/handlers.py", line 20, in <module>
      from awscli.paramfile import register_uri_param_handler
      File "/usr/local/lib/python3.5/dist-packages/awscli/paramfile.py", line 18, in <module>
      from botocore.httpsession import URLLib3Session
      ImportError: No module named 'botocore.httpsession


      My Python is:
      /usr/local/bin/python
      And my aws is:
      /home/aviral/.local/bin/aws










      share|improve this question













      I am following the official documentation in order to install aws-cli on my Ubuntu.



      However, pip installation is successful but when I run the command:



       sudo pip install awscli --upgrade --user


      I get the following error:



      Traceback (most recent call last):
      File "/home/aviral/.local/bin/aws", line 27, in <module>
      sys.exit(main())
      File "/home/aviral/.local/bin/aws", line 23, in main
      return awscli.clidriver.main()
      File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 58, in main
      driver = create_clidriver()
      File "/usr/local/lib/python3.5/dist-packages/awscli/clidriver.py", line 68, in create_clidriver
      event_hooks=session.get_component('event_emitter'))
      File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 44, in load_plugins
      modules = _import_plugins(plugin_mapping)
      File "/usr/local/lib/python3.5/dist-packages/awscli/plugin.py", line 61, in _import_plugins
      module = __import__(path, fromlist=[module])
      File "/usr/local/lib/python3.5/dist-packages/awscli/handlers.py", line 20, in <module>
      from awscli.paramfile import register_uri_param_handler
      File "/usr/local/lib/python3.5/dist-packages/awscli/paramfile.py", line 18, in <module>
      from botocore.httpsession import URLLib3Session
      ImportError: No module named 'botocore.httpsession


      My Python is:
      /usr/local/bin/python
      And my aws is:
      /home/aviral/.local/bin/aws







      python python-3.x amazon-web-services amazon-s3 aws-cli






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 18 hours ago









      aviral sanjay

      1239




      1239
























          1 Answer
          1






          active

          oldest

          votes


















          2














          Try running this command:



          sudo pip install awscli --force-reinstall --upgrade --ignore-installed


          Similar issue is answered here: ImportError



          Edit:



          Previous command:



          pip install awscli --force-reinstall --upgrade 





          share|improve this answer























          • i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
            – aviral sanjay
            17 hours ago








          • 1




            I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
            – aviral sanjay
            17 hours ago










          • please include my above comment so that I can accept your answer.
            – aviral sanjay
            17 hours ago










          • @aviralsanjay: Done.
            – Sam
            17 hours ago











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53943060%2funable-to-install-awscli-because-of-httpsession-not-found%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Try running this command:



          sudo pip install awscli --force-reinstall --upgrade --ignore-installed


          Similar issue is answered here: ImportError



          Edit:



          Previous command:



          pip install awscli --force-reinstall --upgrade 





          share|improve this answer























          • i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
            – aviral sanjay
            17 hours ago








          • 1




            I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
            – aviral sanjay
            17 hours ago










          • please include my above comment so that I can accept your answer.
            – aviral sanjay
            17 hours ago










          • @aviralsanjay: Done.
            – Sam
            17 hours ago
















          2














          Try running this command:



          sudo pip install awscli --force-reinstall --upgrade --ignore-installed


          Similar issue is answered here: ImportError



          Edit:



          Previous command:



          pip install awscli --force-reinstall --upgrade 





          share|improve this answer























          • i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
            – aviral sanjay
            17 hours ago








          • 1




            I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
            – aviral sanjay
            17 hours ago










          • please include my above comment so that I can accept your answer.
            – aviral sanjay
            17 hours ago










          • @aviralsanjay: Done.
            – Sam
            17 hours ago














          2












          2








          2






          Try running this command:



          sudo pip install awscli --force-reinstall --upgrade --ignore-installed


          Similar issue is answered here: ImportError



          Edit:



          Previous command:



          pip install awscli --force-reinstall --upgrade 





          share|improve this answer














          Try running this command:



          sudo pip install awscli --force-reinstall --upgrade --ignore-installed


          Similar issue is answered here: ImportError



          Edit:



          Previous command:



          pip install awscli --force-reinstall --upgrade 






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 17 hours ago

























          answered 17 hours ago









          Sam

          552414




          552414












          • i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
            – aviral sanjay
            17 hours ago








          • 1




            I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
            – aviral sanjay
            17 hours ago










          • please include my above comment so that I can accept your answer.
            – aviral sanjay
            17 hours ago










          • @aviralsanjay: Done.
            – Sam
            17 hours ago


















          • i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
            – aviral sanjay
            17 hours ago








          • 1




            I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
            – aviral sanjay
            17 hours ago










          • please include my above comment so that I can accept your answer.
            – aviral sanjay
            17 hours ago










          • @aviralsanjay: Done.
            – Sam
            17 hours ago
















          i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
          – aviral sanjay
          17 hours ago






          i got the following errors: airflow 1.8.0 has requirement lxml<4.0,>=3.6.0, but you'll have lxml 3.5.0 which is incompatible. feedshark 0.0.2 has requirement python-dateutil==2.5.3, but you'll have python-dateutil 2.7.5 which is incompatible. feedshark 0.0.2 has requirement requests==2.11.1, but you'll have requests 2.9.1 which is incompatible. Cannot uninstall 'docutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
          – aviral sanjay
          17 hours ago






          1




          1




          I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
          – aviral sanjay
          17 hours ago




          I got it I ran the command: sudo pip install awscli --force-reinstall --upgrade --ignore-installed and it's installed!
          – aviral sanjay
          17 hours ago












          please include my above comment so that I can accept your answer.
          – aviral sanjay
          17 hours ago




          please include my above comment so that I can accept your answer.
          – aviral sanjay
          17 hours ago












          @aviralsanjay: Done.
          – Sam
          17 hours ago




          @aviralsanjay: Done.
          – Sam
          17 hours ago


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53943060%2funable-to-install-awscli-because-of-httpsession-not-found%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Monofisismo

          Angular Downloading a file using contenturl with Basic Authentication

          Olmecas