rax-maas / rackspace-monitoring-cli

Command line utility for Rackspace Cloud Monitoring (MaaS).
49 stars 18 forks source link

Support Python3 #59

Open wolfdancer opened 10 years ago

wolfdancer commented 10 years ago

Step one is the install, which fails due to the print syntax change in python3

sduan@Shanes-MacBook-Pro ~ $ sudo pip install rackspace-monitoring-cli [ruby-1.9.3-p484] Downloading/unpacking rackspace-monitoring-cli Downloading rackspace-monitoring-cli-0.6.2.tar.gz (155kB): 155kB downloaded Running setup.py (path:/private/tmp/pip_build_root/rackspace-monitoring-cli/setup.py) egg_info for package rackspace-monitoring-cli Traceback (most recent call last): File "", line 17, in File "/private/tmp/pip_build_root/rackspace-monitoring-cli/setup.py", line 57 print 'Missing "pep8" library. You can install it using pip: ' + \ ^ SyntaxError: invalid syntax Complete output from command python setup.py egg_info: Traceback (most recent call last):

File "", line 17, in

File "/private/tmp/pip_build_root/rackspace-monitoring-cli/setup.py", line 57

print 'Missing "pep8" library. You can install it using pip: ' + \

                                                             ^

SyntaxError: invalid syntax


Cleaning up... Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/rackspace-monitoring-cli Storing debug log for failure in /Users/sduan/.pip/pip.log

wolfdancer commented 10 years ago

Saw in setup.py that python3 is not yet supported. Changed the issue to support python3. Also need to go back to see why setup didn't fail with the right message for me.

cgtx commented 10 years ago

This affects me also. I'm attempting to package this for Arch, which uses python 3 by default.