icclab / hurtle_cc_sdk

Hurtle Cloud Controller SDK
Apache License 2.0
1 stars 2 forks source link

TypeError: dist must be a Distribution instance #1

Open ghost opened 7 years ago

ghost commented 7 years ago

When running ubuntu@deploy:~/hurtle_cc_sdk$ sudo python setup.py install I got these errors 1)SyntaxError: '<' operator not allowed in environment markers error: Setup script exited with error in setup command: Error parsing /tmp/easy_install-72ZC9J/cliff-2.8.0/setup.cfg: SyntaxError: '<' operator not allowed in environment markers

Solution: upgrade python-setuptools ubuntu@deploy:~/hurtle_cc_sdk$ pip install setuptools --upgrade

2)TypeError: dist must be a Distribution instance error: Setup script exited with error in setup command: Error parsing /tmp/easy_install-LnNaI5/requestsexceptions-1.3.0/setup.cfg: TypeError: dist must be a Distribution instance

dizz commented 7 years ago

Hi - can you ensure that you have an appropriate python environment using virtenv by running:

virtenv --python=python2.7 sdk
source sdk/bin/activate
git clone https://github.com/icclab/hurtle_cc_sdk.git
cd hurtle_cc_sdk
pip install d2to1
python setup.py install

Note that on linux (ubuntu) you'll likely need build-essential, python-dev and libssl-dev as some dependencies require the build of native extensions.

After that, the SDK will build (confirmed just now).