Building from source, as yum install is not working per #15274.
All install went good. First run shows:
[root@ror6ax2 salt]# salt-minion
Traceback (most recent call last):
File "/usr/bin/salt-minion", line 6, in <module>
from salt.scripts import salt_minion
File "/usr/lib/python2.6/site-packages/salt/__init__.py", line 35, in <module>
from salt.utils import migrations
File "/usr/lib/python2.6/site-packages/salt/utils/__init__.py", line 103, in <module>
import salt.minion
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 60, in <module>
import salt.client
File "/usr/lib/python2.6/site-packages/salt/client/__init__.py", line 31, in <module>
import salt.config
File "/usr/lib/python2.6/site-packages/salt/config.py", line 30, in <module>
import salt.pillar
File "/usr/lib/python2.6/site-packages/salt/pillar/__init__.py", line 14, in <module>
import salt.fileclient
File "/usr/lib/python2.6/site-packages/salt/fileclient.py", line 13, in <module>
import requests
File "/usr/lib/python2.6/site-packages/requests/__init__.py", line 53, in <module>
from .models import Request, Response, PreparedRequest
File "/usr/lib/python2.6/site-packages/requests/models.py", line 20, in <module>
from urllib3.filepost import encode_multipart_formdata
File "/usr/lib/python2.6/site-packages/urllib3/__init__.py", line 16, in <module>
from .connectionpool import (
File "/usr/lib/python2.6/site-packages/urllib3/connectionpool.py", line 44, in <module>
from .util import get_host, is_connection_dropped
File "/usr/lib/python2.6/site-packages/urllib3/util/__init__.py", line 13, in <module>
from .timeout import (
File "/usr/lib/python2.6/site-packages/urllib3/util/timeout.py", line 6, in <module>
from ..exceptions import TimeoutStateError
ImportError: cannot import name TimeoutStateError
Same for master. urllib3 is installed of latest version.
CentOS 6.5
I spun up a CentOS 6.5 server on Rackspace and have no trouble importing the requests module, even after a yum update. How did you install requests? Honestly, it sounds an awful lot like either your Python path or your Python installation itself has some problems.
[root@mp-65 ~]# yum info python-requests
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name : python-requests
Arch : noarch
Version : 1.1.0
Release : 4.el6
Size : 234 k
Repo : installed
From repo : epel
Summary : HTTP library, written in Python, for human beings
URL : http://pypi.python.org/pypi/requests
License : ASL 2.0
Description : Most existing Python modules for sending HTTP requests are extremely verbose and
: cumbersome. Python鈥檚 built-in urllib2 module provides most of the HTTP
: capabilities you should need, but the API is thoroughly broken. This library is
: designed to make HTTP requests easy for developers.
I had this problem as well. Somehow two versions of urllib3 got installed. The fix was to remove all versions of urllib3 and reinstall it.
rpm -e --nodeps python-urllib3
pip uninstall urllib3
yum install python-urllib3
Most helpful comment
I had this problem as well. Somehow two versions of urllib3 got installed. The fix was to remove all versions of urllib3 and reinstall it.