Gary,
   I was able to fix the indent issue. I added the message you suggested but 
sys was not defined on my AIX system. 
        """
        try:
            import neo_cgi
            # The following line is needed so that ClearSilver can be loaded 
when
            # we are being run in multiple interpreters under mod_python
            neo_cgi.update()
            import neo_util
            self.hdf = neo_util.HDF()
        except ImportError, e:
            raise TracError, "ClearSilver not installed (%s; sys.path is %s)" % 
(e, str(sys.path))

        self['hdf.loadpaths'] = loadpaths

    def __getattr__(self, name):
"clearsilver.py" 348 lines, 10888 characters
/usr/local/lib/python2.5/site-packages/trac/web:cd /apps/trac*
/apps/trac-0.10.4:tracd --port 9000 /home/jrun/tracproject
----------------------------------------
Exception happened during processing of request from ('161.221.45.98', 4457)
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/SocketServer.py", line 464, in 
process_request_thread
    self.finish_request(request, client_address)
  File "/usr/local/lib/python2.5/SocketServer.py", line 254, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python2.5/SocketServer.py", line 522, in __init__
    self.handle()
  File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle
    self.handle_one_request()
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 174, in 
handle_one_request
    gateway.run(self.server.application)
  File "/usr/local/lib/python2.5/site-packages/trac/web/wsgi.py", line 87, in 
run
    response = application(self.environ, self._start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/standalone.py", line 
88, in __call__
    return self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 363, in 
dispatch_request
    env_paths)
  File "/usr/local/lib/python2.5/site-packages/trac/web/main.py", line 456, in 
send_project_index
    req.hdf = HDFWrapper(loadpaths)
  File "/usr/local/lib/python2.5/site-packages/trac/web/clearsilver.py", line 
134, in __init__
    raise TracError, "ClearSilver not installed (%s; sys.path is %s)" % (e, 
str(sys.path))
NameError: global name 'sys' is not defined
----------------------------------------





-----Original Message-----
>From: Gary Oberbrunner <[EMAIL PROTECTED]>
>Sent: Nov 9, 2007 3:39 PM
>To: trac-users@googlegroups.com
>Subject: [Trac] Re: TRAC
>
>
>Tyrone Hed wrote:
>> Gary,
>>   I attempted to do what you suggested but, apparently, I'm not up on the 
>> syntax of a Python script. I vi-edited the file and when I tried to run it 
>> got this:
>> 
>>     try:
>>        ^
>> IndentationError: unindent does not match any outer indentation level
>> /apps/trac-0.10.4:
>
>Yes, python is sensitive to whitespace.  You should not have touched the above
>line.
>
>Try this:
>
>        except ImportError, e:
>            raise TracError, "ClearSilver not installed (%s; sys.path is %s)"
>% (e, str(sys.path))
>
>That last line is ALL ONE LINE starting with raise and ending with )).  Ignore
>the email line wrapping.  In other words, just edit the "raise" line  til it
>looks like mine above.  Keep any initial whitespace the same.
>
>Then restart the server and try it.  It'll print where it's looking for the
>neo_cgi module, then you can take the next step which is to find out where it
>really is and why it's not found where python is looking.
>
>-- 
>Gary
>
>>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to