Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#11840 closed defect (fixed)

Installation error on Trac 1.0.1

Reported by: roger.oberholtzer@… Owned by: Ryan J Ollos
Priority: normal Component: CollapsiblePlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


I just downloaded the source from Trac Hacks ( and, when running (in the 0.12 branch):

python install

There is an indentation error in one of the files. I looked at collapsibleplugin/0.12/traccollapsible/ but did not see the problem. My Python is minimal.

Here is what was printed from the command above:

running install
running bdist_egg
running egg_info
creating TracCollapsiblePlugin.egg-info
writing requirements to TracCollapsiblePlugin.egg-info/requires.txt
writing TracCollapsiblePlugin.egg-info/PKG-INFO
writing top-level names to TracCollapsiblePlugin.egg-info/top_level.txt
writing dependency_links to TracCollapsiblePlugin.egg-info/dependency_links.txt
writing entry points to TracCollapsiblePlugin.egg-info/entry_points.txt
writing manifest file 'TracCollapsiblePlugin.egg-info/SOURCES.txt'
reading manifest file 'TracCollapsiblePlugin.egg-info/SOURCES.txt'
writing manifest file 'TracCollapsiblePlugin.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/traccollapsible
copying traccollapsible/ -> build/lib/traccollapsible
copying traccollapsible/ -> build/lib/traccollapsible
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/traccollapsible
copying build/lib/traccollapsible/ -> build/bdist.linux-i686/egg/traccollapsible
copying build/lib/traccollapsible/ -> build/bdist.linux-i686/egg/traccollapsible
byte-compiling build/bdist.linux-i686/egg/traccollapsible/ to __init__.pyc
byte-compiling build/bdist.linux-i686/egg/traccollapsible/ to collapsible.pyc
Sorry: IndentationError: ('expected an indented block', ('build/bdist.linux-i686/egg/traccollapsible/', 42, 8, '    args, kw = parse_args(content)\n'))
creating build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying TracCollapsiblePlugin.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/TracCollapsiblePlugin-0.1-py2.7.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)
Processing TracCollapsiblePlugin-0.1-py2.7.egg
Copying TracCollapsiblePlugin-0.1-py2.7.egg to /usr/lib/python2.7/site-packages
Adding TracCollapsiblePlugin 0.1 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/TracCollapsiblePlugin-0.1-py2.7.egg
Processing dependencies for TracCollapsiblePlugin==0.1
Searching for Trac==1.0.1
Best match: Trac 1.0.1
Adding Trac 1.0.1 to easy-install.pth file
Installing trac-admin script to /usr/bin
Installing tracd script to /usr/bin

Using /usr/lib/python2.7/site-packages
Searching for setuptools==3.6
Best match: setuptools 3.6
Adding setuptools 3.6 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.7 script to /usr/bin

Using /usr/lib/python2.7/site-packages
Searching for Genshi==0.7
Best match: Genshi 0.7
Adding Genshi 0.7 to easy-install.pth file

Using /usr/lib/python2.7/site-packages
Finished processing dependencies for TracCollapsiblePlugin==0.1

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Ryan J Ollos

Owner: changed from codingking to Ryan J Ollos
Status: newaccepted

comment:2 Changed 8 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 13997:

Fixed incorrect indentation (follow-on to [13774]) and removed unused imports. Fixes #11840.

comment:3 Changed 8 years ago by roger.oberholtzer@…

Thanks. Works for me now. Great to be able to make some big wiki pages less intimidating!

comment:4 Changed 8 years ago by Ryan J Ollos

There are a few other similar plugins that provide a different macro syntax, in case the one provided by this plugin isn't ideal for you: FoldingMacro, FoldMacroProcessorMacro, FoldMacro.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
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.