LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-26-2017, 09:30 AM   #1
QUADgnim
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0
failing to install pip AWS package?


Any suggestions:

[root@localhost ~]# pip install aws
Collecting aws
Collecting prettytable>=0.7 (from aws)
Requirement already satisfied: boto in /usr/lib/python2.7/site-packages (from aws)
Collecting fabric>=1.6 (from aws)
Using cached Fabric-1.13.2-py2-none-any.whl
Collecting paramiko<3.0,>=1.10 (from fabric>=1.6->aws)
Using cached paramiko-2.1.2-py2.py3-none-any.whl
Collecting cryptography>=1.1 (from paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading cryptography-1.8.2.tar.gz (423kB)
100% |████████████████████████████████| 430kB 588kB/s
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 412, in run_egg_info
self.setup_py, self.name,
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 387, in setup_py
import setuptools # noqa
File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/usr/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
[root@localhost ~]#
 
Old 05-26-2017, 10:08 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by QUADgnim View Post
Any suggestions:

[root@localhost ~]# pip install aws
Collecting aws
Collecting prettytable>=0.7 (from aws)
Requirement already satisfied: boto in /usr/lib/python2.7/site-packages (from aws)
Collecting fabric>=1.6 (from aws)
Using cached Fabric-1.13.2-py2-none-any.whl
Collecting paramiko<3.0,>=1.10 (from fabric>=1.6->aws)
Using cached paramiko-2.1.2-py2.py3-none-any.whl
Collecting cryptography>=1.1 (from paramiko<3.0,>=1.10->fabric>=1.6->aws)
Downloading cryptography-1.8.2.tar.gz (423kB)
100% |████████████████████████████████| 430kB 588kB/s
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 335, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 634, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 412, in run_egg_info
self.setup_py, self.name,
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 387, in setup_py
import setuptools # noqa
File "/usr/lib/python2.7/site-packages/setuptools/__init__.py", line 12, in <module>
import setuptools.version
File "/usr/lib/python2.7/site-packages/setuptools/version.py", line 1, in <module>
import pkg_resources
File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>
import packaging.requirements
File "/usr/lib/python2.7/site-packages/packaging/requirements.py", line 59, in <module>
MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")
TypeError: __call__() takes exactly 2 arguments (1 given)
[root@localhost ~]#
Might have some suggestions, if you provided any useful details; read the "Question Guidelines" link in my posting signature. Things like version/distro of Linux, anything else you've done/tried so far, etc. Did you read/follow the instructions and perform the pre-install checks?

http://docs.aws.amazon.com/cli/lates...all-linux.html

::edit::
So you aren't able to install everything that you need before doing this, and you're surprised it's not working?
http://www.linuxquestions.org/questi...-a-4175606707/

Last edited by TB0ne; 05-26-2017 at 10:09 AM.
 
Old 05-26-2017, 12:03 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Been around 8 years and your toaster is busted.

https://opensource.com/life/16/10/ho...ical-questions

Last edited by Habitual; 05-26-2017 at 12:04 PM.
 
Old 05-26-2017, 12:34 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Manipulate python2 recently?
 
Old 05-27-2017, 09:04 AM   #5
QUADgnim
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Hey guys, I'm coming back to this request I recently posted. In addition to this issue I had an issue where I couldn't run yum update, which turned out to be because I installed (or attempted to) a bad epel for my system. I've now fixed it and I'm trying to clean up other mistakes I made when I didn't have the right epel configured in yum

At the time I couldn't do a yum install python-pip so I ended up doing a python get-pip.py instead.

Then I was having issues as stated above. maybe due to the yum issues I was having

After fixing yum and getting my system current I wanted to uninstall pip and try it again using yum, so I ran

"python -m pip uninstall pip setuptools"

that seemed to work as I received no errors.

Now I'm trying to install pip via "yum install python-pip" but it's failing as if its already there. However, if I try running it its not there, and if I try uninstalling it, it says its not installed.

Any suggestions

---------------------------------------------------

root@localhost tmp]# yum install -y python-pip
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tripadvisor.com
* epel: mirror.math.princeton.edu
* extras: mirror.umd.edu
* updates: mirror.cs.pitt.edu
Package python2-pip-8.1.2-5.el7.noarch already installed and latest version
Nothing to do

[root@localhost tmp]# yum erase -y python-pip*
Loaded plugins: fastestmirror, langpacks
No Match for argument: python-pip*
No Packages marked for removal

[root@localhost tmp]# pip
-bash: pip: command not found
 
Old 05-27-2017, 09:47 AM   #6
QUADgnim
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Original Poster
Rep: Reputation: 0
actually I think I'm good now. will update shortly. I reinstalled pip using get-pip.py, but now that its post the "yum update" running, I think it's behaving better. Trying to install several modules now. so far looks promising.
 
Old 05-27-2017, 10:20 AM   #7
QUADgnim
LQ Newbie
 
Registered: Dec 2008
Posts: 10

Original Poster
Rep: Reputation: 0
yep, I'm good. thanks to all for the support
 
Old 05-27-2017, 10:52 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
pip install mitmproxy==0.13 hack3rcon Linux - Software 4 02-12-2016 12:39 AM
Adding an extra python repo for 'yum' & finding 'pip' package NikosGr Linux - Newbie 4 06-04-2013 04:25 AM
Hello, Bon Jour, Pip Pip SocaSpice LinuxQuestions.org Member Intro 3 11-14-2010 08:22 AM
Fedora Core 2 Install failing during package install Sledge Fedora - Installation 1 06-02-2004 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration