Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#1860 closed defect (invalid)

ImportError: cannot import name ISearchSource

Reported by: Markus Tacker <m@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: devel
Severity: blocker Keywords:
Cc: m@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This happens whith trac-admin upgrade and display trac in the browser.

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
      result = object(req)
  File "/usr/lib/python2.3/site-packages/trac/web/modpython_frontend.py", line 196, in handler
      env = get_environment(mpr, project_opts)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 600, in get_environment
      return _open_environment(env_path, threaded)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 54, in _open_environment
      env_cache[env_path] = open_environment(env_path)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 362, in open_environment
      env = Environment(env_path)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 91, in __init__
      load_components(self)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 49, in load_components
      load_component(module)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 68, in load_component
      module = _load_module(head, module_name, module, path)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 82, in _load_module
      module = imp.load_module(name, fd, path, desc)
  File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 36, in ?
      from trac.Search import ISearchSource, query_to_sql, shorten_result
ImportError: cannot import name ISearchSource

Attachments (0)

Change History (2)

comment:1 by Markus Tacker <m@…>, 16 years ago

Cc: m@… added
Component: mod_python frontendgeneral
Owner: changed from Christopher Lenz to Jonas Borgström

This alos happens with trac-admin initenv

Creating and Initializing Project
Failed to create environment. cannot import name ISearchSource
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 108, in env_create
    self.__env = Environment(self.envname, create=True, db_str=db_str)
  File "/usr/lib/python2.3/site-packages/trac/env.py", line 91, in __init__
    load_components(self)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 49, in load_components
    load_component(module)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 68, in load_component
    module = _load_module(head, module_name, module, path)
  File "/usr/lib/python2.3/site-packages/trac/loader.py", line 82, in _load_module
    module = imp.load_module(name, fd, path, desc)
  File "/usr/lib/python2.3/site-packages/trac/Changeset.py", line 36, in ?
    from trac.Search import ISearchSource, query_to_sql, shorten_result
ImportError: cannot import name ISearchSource
Failed to initialize environment. 1
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 562, in do_initenv
    self.env_create(db_str)
  File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 114, in env_create
    sys.exit(1)
SystemExit: 1

comment:2 by Markus Tacker <m@…>, 16 years ago

Resolution: invalid
Status: newclosed

Closed. Resolved by removing /usr/lib/python2.3/site-packages/trac/ prior to upgrading.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.