Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#8568 closed defect (wontfix)

tracscreenshots api.py syntax error

Reported by: gregd72002 Owned by: Blackhex
Priority: lowest Component: ScreenshotsPlugin
Severity: blocker Keywords: api.py
Cc: Trac Release: 0.12

Description (last modified by rjollos)

when loading tracscreenshots it comes up with the following error:

2011-03-03 23:43:11,252 Trac[loader] ERROR: Skipping "TracScreenshots.core = tracscreenshots.core":
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs
  File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-x86_64/egg/tracscreenshots/core.py", line 37, in ?
  File "/usr/lib/python2.4/site-packages/TracScreenshots-0.8dev-py2.4.egg/tracscreenshots/api.py", line 53
     'where' : (' WHERE ' + where) if where else ''}

This error also occurs when creating the egg:

byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc
  File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53
    'where' : (' WHERE ' + where) if where else ''}
                                   ^
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/wiki.py to wiki.pyc

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

when loading tracscreenshots it comes up with the following error:

2011-03-03 23:43:11,252 Trac[loader] ERROR: Skipping "TracScreenshots?.core = tracscreenshots.core": Traceback (most recent call last):

File "build/bdist.linux-x86_64/egg/trac/loader.py", line 68, in _load_eggs File "/usr/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg/pkg_resources.py", line 1954, in load

entry = import(self.module_name, globals(),globals(), __name__?)

File "build/bdist.linux-x86_64/egg/tracscreenshots/core.py", line 37, in ? File "/usr/lib/python2.4/site-packages/TracScreenshots-0.8dev-py2.4.egg/tracscreenshots/api.py", line 53

'where' : (' WHERE ' + where) if where else }

This error also occurs when creating the egg:

byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/api.py to api.pyc
File "build/bdist.linux-x86_64/egg/tracscreenshots/api.py", line 53
'where' : (' WHERE ' + where) if where else }

SyntaxError?: invalid syntax byte-compiling build/bdist.linux-x86_64/egg/tracscreenshots/wiki.py to wiki.pyc

comment:2 Changed 3 years ago by Blackhex

  • Priority changed from high to lowest
  • Resolution set to wontfix
  • Status changed from new to closed

This is Python 2.4 inline if support problem. Rewrite it to:

-          'where' : (' WHERE ' + where) if where else ''}
+          'where' : where and (' WHERE ' + where) or  ''}

I won't fix it upstream.

comment:3 Changed 3 years ago by rjollos

  • Description modified (diff)

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Blackhex. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.