Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#8568 closed defect (wontfix)

tracscreenshots api.py syntax error

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

Description (last modified by Ryan J Ollos)

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 14 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 14 years ago by Radek Bartoň

Priority: highlowest
Resolution: wontfix
Status: newclosed

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 14 years ago by Ryan J Ollos

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Radek Bartoň.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.