pip install dynamic-dynamodb InsecurePlatformWarning

时间:2015-09-09 13:24:53

标签: python django git python-2.7

`我正在运行AWS EC2 操作系统:ubuntu 14.04

python --version Python 2.6.9

pip --version 来自/usr/local/lib/python2.6/site-packages(python 2.6)的

7.1.2

$>pip install dynamic-dynamodb

`Collecting dynamic-dynamodb
/usr/local/lib/python2.6/sitepackages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLCoenter code herentext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Using cached dynamic-dynamodb-2.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-QLQE6u/dynamic-dynamodb/setup.py", line 36, in <module>
        install_requires=return_requires(),
      File "/tmp/pip-build-QLQE6u/dynamic-dynamodb/setup.py", line 19, in return_requires
        install_requires.append('ordereddict >= 1.1')
    AttributeError: 'tuple' object has no attribute 'append'


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-QLQE6u/dynamic-dynamodb`

---------------------或------------------

我从git中取出它

$>git pull https://github.com/sebdah/dynamic-dynamodb.git

$> cd dynamic-dynamodb

$>make install

python setup.py build
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    install_requires=return_requires(),
  File "setup.py", line 19, in return_requires
    install_requires.append('ordereddict >= 1.1')
AttributeError: 'tuple' object has no attribute 'append'
make: *** [install] Error 1

任何建议我想念什么?!

1 个答案:

答案 0 :(得分:1)

我同意@JuusoMeriläinen。 看起来this逗号会破坏所有内容:

def return_requires():
    install_requires = [
        'boto >= 2.29.1',
        'requests >= 0.14.1',
        'logutils >= 0.3.3',
        'retrying >= 1.3.3'
    ], # <---- it breaks the code
    if sys.version_info < (2, 7):
        install_requires.append('ordereddict >= 1.1')
    return install_requires

您可以尝试在本地代码中手动删除它。另外,发送pull request for dynamic-dynamodb repo会很高兴。