mwscan erroring on CentOS 6
Closed this issue · 1 comments
[mpachol@pachol2 magento-malware-scanner]$ sudo pip install --upgrade mwscan DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting mwscan
/usr/lib/python2.6/site-packages/pip-9.0.1-py2.6.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/lib/python2.6/site-packages/pip-9.0.1-py2.6.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading mwscan-20170208.125606.tar.gz
Requirement already up-to-date: psutil in /usr/lib64/python2.6/site-packages (from mwscan)
Requirement already up-to-date: yara-python in /usr/lib64/python2.6/site-packages (from mwscan)
Requirement already up-to-date: requests>=0.8.2 in /usr/lib/python2.6/site-packages (from mwscan)
Installing collected packages: mwscan
Running setup.py install for mwscan ... done
Successfully installed mwscan-20170208.125606
[mpachol@pachol2 magento-malware-scanner]$ mwscan --ruleset magesec /home/mpachol/public_html/
Traceback (most recent call last):
File "/usr/bin/mwscan", line 5, in
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
working_set.require(requires)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests>=0.8.2
Thanks, forgot to upload to pypi, which is done now (pip --upgrade install mwscan
).
The other error seems due to a conflicting requests
version on CentOS. Try yum reinstall python-requests
?