#3782 closed defect (fixed)
build error "invalid syntax"
Reported by: | Owned by: | scratcher | |
---|---|---|---|
Priority: | normal | Component: | KeywordSuggestPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Received the following output while building plugin.
copying build/lib/keywordsuggest/keywordsuggest.py -> build/bdist.linux-i686/egg/keywordsuggest byte-compiling build/bdist.linux-i686/egg/keywordsuggest/__init__.py to __init__.pyc byte-compiling build/bdist.linux-i686/egg/keywordsuggest/keywordsuggest.py to keywordsuggest.pyc File "build/bdist.linux-i686/egg/keywordsuggest/keywordsuggest.py", line 27 if self.config.getbool('keywordsuggest','mustmatch') else "" ^ SyntaxError: invalid syntax creating build/bdist.linux-i686/egg/EGG-INFO copying TracKeywordSuggest.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
Attachments (2)
Change History (7)
Changed 16 years ago by
Attachment: | keywordsuggest.py added |
---|
comment:1 Changed 16 years ago by
Status: | new → assigned |
---|
Changed 16 years ago by
Attachment: | keywordsuggest2.py added |
---|
version without Python ternary operator
comment:2 follow-up: 3 Changed 16 years ago by
SyntaxError: invalid syntax
Please also check your Python interpreter version. Such error may be caused by lack of ternary logical operator in Python versions prior to 2.5. Attached keywordsuggest2.py have no ternary operators in it. Let me know if it helps. Thanks!
comment:3 follow-up: 4 Changed 16 years ago by
Replying to scratcher:
SyntaxError: invalid syntax
Please also check your Python interpreter version. Such error may be caused by lack of ternary logical operator in Python versions prior to 2.5. Attached keywordsuggest2.py have no ternary operators in it. Let me know if it helps. Thanks!
The version without ternary operators built with no error on my rhel 5.2 box. I am using python 2.4.
On a side note, I didn't install jquery yet. Not sure how I could implement this plugin rollout in our environment with client machines all over the country. Am I reading this correctly that JQuery Autocomplete is a separately distributed library?
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
On a side note, I didn't install jquery yet. Not sure how I could implement this plugin rollout in our environment with client machines all over the country. Am I reading this correctly that JQuery Autocomplete is a separately distributed library?
jQuery itself is a part of Trac distribution (at least in 0.11). jQuery Autocomplete is a plugin for jQuery, included into KeywordSuggestPlugin and does not require additional actions to install - it is installed automatically together with KeywordSuggestPlugin plugin.
update with unix-style EOLs