Ticket #7020 (closed defect: duplicate)

Opened 3 years ago

Last modified 8 months ago

[Patch] Install leads to Error line 79

Reported by: fducros@gmail.com Assigned to: XayOn
Priority: high Component: TicketBackLinksMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (Last modified by rjollos)

fred@svn:/var/tmp/ticketbacklinksmacro/0.11$ sudo python setup.py 
install
running install
running bdist_egg
running egg_info
writing TicketBackLinksDescription.egg-info/PKG-INFO
writing top-level names to TicketBackLinksDescription.egg-info/top_level.txt
writing dependency_links to TicketBackLinksDescription.egg-info/dependency_links.txt
writing entry points to TicketBackLinksDescription.egg-info/entry_points.txt
reading manifest file 'TicketBackLinksDescription.egg-info/SOURCES.txt'
writing manifest file 'TicketBackLinksDescription.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/TicketBackLinksDescription
copying build/lib/TicketBackLinksDescription/macro.py -> build/bdist.linux-i686/egg/TicketBackLinksDescription
copying build/lib/TicketBackLinksDescription/__init__.py -> build/bdist.linux-i686/egg/TicketBackLinksDescription
byte-compiling build/bdist.linux-i686/egg/TicketBackLinksDescription/macro.py to macro.pyc
  File "build/bdist.linux-i686/egg/TicketBackLinksDescription/macro.py", line 79
    return buf.getvalue()
SyntaxError: 'return' outside function

byte-compiling build/bdist.linux-i686/egg/TicketBackLinksDescription/__init__.py to __init__.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/not-zip-safe -> build/bdist.linux-i686/egg/EGG-INFO
copying TicketBackLinksDescription.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
creating 'dist/TicketBackLinksDescription-0.1-py2.5.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing TicketBackLinksDescription-0.1-py2.5.egg
removing '/usr/lib/python2.5/site-packages/TicketBackLinksDescription-0.1-py2.5.egg' (and everything under it)
creating /usr/lib/python2.5/site-packages/TicketBackLinksDescription-0.1-py2.5.egg
Extracting TicketBackLinksDescription-0.1-py2.5.egg to /usr/lib/python2.5/site-packages
  File "/usr/lib/python2.5/site-packages/TicketBackLinksDescription-0.1-py2.5.egg/TicketBackLinksDescription/macro.py", line 79
    return buf.getvalue()
SyntaxError: 'return' outside function

TicketBackLinksDescription 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/TicketBackLinksDescription-0.1-py2.5.egg
Processing dependencies for TicketBackLinksDescription==0.1
Finished processing dependencies for TicketBackLinksDescription==0.1

Attachments

macro.py (3.6 kB) - added by farialima on 04/22/10 01:41:05.
proposed fix. Please test !

Change History

04/22/10 01:41:05 changed by farialima

  • attachment macro.py added.

proposed fix. Please test !

09/05/10 11:43:57 changed by rjollos

  • owner changed from mchua to rjollos.
  • description changed.

Reassigning to new maintainer.

12/07/10 01:48:55 changed by rjollos

  • priority changed from normal to high.
  • summary changed from Install leads to Error line 79 to [Patch] Install leads to Error line 79.

This should be a fairly easy fix, so I'm bumping up the priority.

12/10/10 09:00:21 changed by rjollos

  • owner changed from rjollos to XayOn.
  • component changed from TracBacksPlugin to TicketBackLinksMacro.

This was incorrectly assigned. Its a report against the TicketBackLinksMacro.

(follow-up: ↓ 5 ) 10/22/11 00:22:02 changed by lucasrangit

Tested the patch from #7832 with Trac 0.11.5 on Ubuntu 9.10 and it allowed me to install it. It is a duplicate of this ticket but this ticket does not contain a patch so I used the one there.

I will test the functionality next and apply the SQL changes mentioned in the other tickets if necessary.

(in reply to: ↑ 4 ) 10/22/11 01:02:10 changed by lucasrangit

Replying to lucasrangit:

I will test the functionality next and apply the SQL changes mentioned in the other tickets if necessary.

I had the issue that tickets would not get seen when a ticket number did not have a trailing white-space character. The correct SQL query is described at #6382. I use SQLite 2.8.17 by the way.

09/12/12 05:36:41 changed by rjollos

  • status changed from new to closed.
  • resolution set to duplicate.

Closing as a duplicate of #7832 since #7832 included a proper patch in unified diff format.


Add/Change #7020 ([Patch] Install leads to Error line 79)




Change Properties
Action