[Trac] Re: ImportError: cannot import name compat

2008-07-24 Thread David Starr
I had this same issue on OSX Leopard desktop (not server) when  
upgrading a 10.4 Trac to 0.11 Final and running apache 2.2.8   
mod_wsgi 2.0.

The solution below worked for me.

On 24-Jun-08, at 8:38 PM, Jashugan wrote:

 $ find . -name compat*
 ./trac/tests/functional/compat.py
 ./trac/tests/functional/compat.pyc
 ./trac/util/compat.py
 ./trac/util/compat.pyc

 $ cd trac/tests/functional
 $ sudo mv compat.py testcompat.py
 $ sudo rm compat.pyc


David Starr
Technical Director
Trapeze Animation
[EMAIL PROTECTED]
902-370-3007


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-07-02 Thread kurgbe

 Well, I've resolved it by copying compat.py to compat2.py and
 switching all the references to it in chrome.py. Bizarre.
 Synchronization issue? Namespace issue? Not sure.

I had the same problem (Ubuntu trac 0,11)

The above trick worked for me as well. thanks

(To switch all references in chrome.py, do a global replace of
compat. by compat2.)


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Leo Petr

On Jun 10, 3:38 am, RM [EMAIL PROTECTED] wrote:
 I just installed 0.11rc2 and am getting an ImportError when trying to
 save wiki pages. Here's the full stack:

I am getting the same error with Trac 0.11 final. I'm using the
official .tar.gz release on Ubuntu.

http://pastebin.ca/1055176

Regards,

Leons Petrazickis
http://planetdb2.com/

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

On Jun 24, 10:28 am, Leo Petr [EMAIL PROTECTED] wrote:
 On Jun 10, 3:38 am, RM [EMAIL PROTECTED] wrote:

  I just installed 0.11rc2 and am getting an ImportError when trying to
  save wiki pages. Here's the full stack:

 I am getting the same error with Trac 0.11 final. I'm using the
 official .tar.gz release on Ubuntu.

 http://pastebin.ca/1055176


I too am getting this error with the release version of Trac 0.11 (see
below). However, it only happens sometimes. When I reload the page the
error disappears. I had been running Trac 0.11rc1 up until the upgrade
without any problems.

I tried going to python and importing compat, but that failed. I also
tried doing a search for compat using find, but still came up with
nothing. I'm using Leopard Server with Trac installed from
easy_install and everything else installed using macports.

[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] Filename: '/
opt/local/var/www/php/trac', referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] PathInfo: '/
chrome/common/changeset.png', referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] Traceback
(most recent call last):, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1537,
in HandlerDispatch\ndefault=default_handler, arg=req,
silent=hlist.silent), referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1229,
in _process_target\nresult = _execute_target(config, req, object,
arg), referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/mod_python/importer.py, line 1128,
in _execute_target\nresult = object(arg), referer:
http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
modpython_frontend.py, line 127, in handler\nfrom trac.web.main
import dispatch_request, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
main.py, line 47, in module\nfrom trac.web.chrome import
Chrome, referer: http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13]   File /opt/
local/lib/python2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/
chrome.py, line 40, in module\nfrom trac.util import compat,
get_reporter_id, presentation, get_pkginfo, \\, referer:
http://server.company.com/trac/timeline
[Tue Jun 24 11:08:06 2008] [error] [client 10.104.3.13] ImportError:
cannot import name compat, referer: http://server.company.com/trac/timeline


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

This seems to have solved the issues for me (I think)...

sudo trac-admin /opt/local/var/trac/project/ deploy /opt/local/share/
trac/

I had manually copied the htdoc directory initially but forgot to copy
over the cgi-bin directory.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

On Jun 24, 11:56 am, Jashugan [EMAIL PROTECTED] wrote:
 This seems to have solved the issues for me (I think)...

 sudo trac-admin /opt/local/var/trac/project/ deploy /opt/local/share/
 trac/


Never mind, I'm still getting errors.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[Trac] Re: ImportError: cannot import name compat

2008-06-24 Thread Jashugan

I tried this, but it didn't help.

$ find . -name compat*
./trac/tests/functional/compat.py
./trac/tests/functional/compat.pyc
./trac/util/compat.py
./trac/util/compat.pyc

$ cd trac/tests/functional
$ sudo mv compat.py testcompat.py
$ sudo rm compat.pyc

On Jun 24, 12:12 pm, Leons Petrazickis [EMAIL PROTECTED]
wrote:

 Well, I've resolved it by copying compat.py to compat2.py and
 switching all the references to it in chrome.py. Bizarre.
 Synchronization issue? Namespace issue? Not sure.


I just tried this, but it seems to be working for now.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---