Ticket #7526 (closed defect: worksforme)
ImportError: cannot import name compat
| Reported by: | Meowphetamine | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | general | Version: | 0.11.1 |
| Severity: | normal | Keywords: | ImportError, compat.py |
| Cc: |
Description
A new 0.11.1 installation over a new Debian 4.0 installation. Creating the env went OK and I was able to browse some pages, but threw an exception: ImportError?: cannot import name compat.
Doing a little searching, it appears that compat.py exists in two places. trac/tests/functional and trac/util.
I came across this solution on trac-users: $ 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


