google / gdata-python-client

444 stars 228 forks source link

install_requires unknown distribution option. #66

Closed fionaguoguolu closed 5 years ago

fionaguoguolu commented 5 years ago

~/gdata-python-client$ sudo python setup.py install

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'

fionaguoguolu commented 5 years ago

$ sudo python setup.py install /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running build running build_py running install_lib running install_egg_info Removing /usr/local/lib/python2.7/dist-packages/gdata-2.0.18.egg-info Writing /usr/local/lib/python2.7/dist-packages/gdata-2.0.18.egg-info $ ./tests/run_data_tests.py Traceback (most recent call last): File "./tests/run_data_tests.py", line 19, in import gdata_tests.auth_test File "/usr/local/google/home/ggl/gdata-python-client/tests/gdata_tests/auth_test.py", line 24, in import gdata.auth File "/usr/local/lib/python2.7/dist-packages/gdata/auth.py", line 29, in import gdata.oauth.rsa as oauth_rsa File "/usr/local/lib/python2.7/dist-packages/gdata/oauth/rsa.py", line 10, in from tlslite.utils import keyfactory ImportError: No module named tlslite.utils

fionaguoguolu commented 5 years ago

in setup.py, replacing from distutils.core import setup with from setuptools import setup solved the problem.