You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.
[root@centreon hipsaint-master]# python
Python 2.4.3 (#1, Feb 22 2012, 16:06:13)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Yup that's it. The X if Z else Y syntax was introduced in python 2.5. I don't have an python 2.4 interpreter available at the moment but try and modify the parts = 2 if version[2] == 0 else 3 line to become a regular if-statement. If the tests pass after that please make a pull request.
hannseman
changed the title
Do not install hipsaint
Python 2.4 support
May 6, 2014
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[root@centreon hipsaint-master]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 5, in ?
version = import('hipsaint').version
File "/root/hipsaint-master/hipsaint/init.py", line 16
parts = 2 if version[2] == 0 else 3
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: