I have now fixed this issue by following instructions from
http://cc.bingj.com/cache.aspx?q=trac+detected+an+internal+error+nonetype+object+has+no+attribute+log+python+%222+5%22&d=76399343771584&mkt=en-AU&setlang=en-AU&w=32a81dc2,66946482

This may be due to a *Python* 2.4 vs. *2.5* problem.

For a cheap fix, you might try modifying your main.py file to put an “if” in
front of “env.*log*.exception(e)” on line 430:

change:
env.*log*.exception(e)
to:
if env: env.*log*.exception(e)


________________________

I now get the following error:


Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/main.py", line 401,
in dispatch_request
    req.hdf = HDFWrapper([default_dir('templates')])
  File "/var/lib/python-support/python2.5/trac/web/clearsilver.py",
line 135, in __init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed
(/usr/lib/python2.5/site-packages/neo_cgi.so: undefined symbol:
Py_InitModule4)


This seems to be a problem with X64 environments using python version 2.5.
Does anyone know how to fix this issue?


Addison


On Tue, Jul 21, 2009 at 3:15 PM, Addison McDermid
<[email protected]>wrote:

> Yes it was I fixed it by adding the proper slashes in the 000-default file
> for apache.
>
> I now get this error on the Trac setup.
>
>
> Oops...
>
> Trac detected an internal error: 'NoneType' object has no attribute 'log'
>
> Traceback (most recent call last):
>   File "/usr/share/trac/cgi-bin/trac.cgi", line 20, in <module>
>     cgi_frontend.run()
>   File "/var/lib/python-support/python2.5/trac/web/cgi_frontend.py", line 68, 
> in run
>     gateway.run(dispatch_request)
>   File "/var/lib/python-support/python2.5/trac/web/wsgi.py", line 87, in run
>     response = application(self.environ, self._start_response)
>   File "/var/lib/python-support/python2.5/trac/web/main.py", line 430, in 
> dispatch_request
>     env.log.exception(e)
> AttributeError: 'NoneType' object has no attribute 'log'
>
> Does anyone have any ideas on how I can fix this error?
> Addison
>
>
>
> On Tue, Jul 21, 2009 at 3:01 AM, Olemis Lang <[email protected]> wrote:
>
>>
>> On Sat, Jul 18, 2009 at 12:18 AM, Ad<[email protected]> wrote:
>> >
>> > Oops...
>> >
>> [...]
>> >  File "/var/lib/python-support/python2.5/trac/env.py", line 195, in
>> > verify
>> >    fd = open(os.path.join(self.path, 'VERSION'), 'r')
>> > IOError: [Errno 2] No such file or directory: 'var/trac/phpBB/mods/
>> > demon_chat/VERSION'
>> >
>>
>> This means that var/trac/phpBB/mods/demon_chat/  is not a Trac env.
>> BTW isnt it `/var/trac/phpBB/mods/demon_chat/` ?
>>
>> --
>> Regards,
>>
>> Olemis.
>>
>> Blog ES: http://simelo-es.blogspot.com/
>> Blog EN: http://simelo-en.blogspot.com/
>>
>> Featured article:
>>
>> >>
>>
>
>
> --
> Regards,
>
> Addison McDermid
> I.T. Construct
> http://www.itconstruct.com.au
>



-- 
Regards,

Addison McDermid
I.T. Construct
http://www.itconstruct.com.au

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
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