Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8625 closed defect (worksforme)

Installation Error

Reported by: John Lee Owned by: Colin Guthrie
Priority: normal Component: WorkLogPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

  1. My environment is Windows Server 2008, Visual SVN Server, Trac 0.11.6.
  1. I installed using python egg file (worklog-0.2-py2.5) via Trac's web admin and added "worklog.* = enabled" to trac.ini (in the [components] subheading)
  1. When I ran "trac-admin /path/to/projenv upgrade", I got following message.
C:\Program Files (x86)\VisualSVN Server\trac>"C:\Program Files (x86)\VisualSVN S
erver\trac\python\python.exe" "C:\Program Files (x86)\VisualSVN Server\trac\pyth
on\scripts\trac-admin-script.py" C:\Trac\Arbitor upgrade
Traceback (most recent call last):
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\scripts\trac-admin-s
cript.py", line 8, in <module>
    load_entry_point('Trac==0.11.6', 'console_scripts', 'trac-admin')()
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\admin\console.py", line 1321, in run
    return admin.onecmd(command)
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\admin\console.py", line 138, in onecmd
    rv = cmd.Cmd.onecmd(self, line) or 0
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\cmd.py", line 21
9, in onecmd
    return func(arg)
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\admin\console.py", line 1154, in do_upgrade
    if not self.__env.needs_upgrade():
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\env.py", line 435, in needs_upgrade
    for participant in self.setup_participants:
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\core.py", line 70, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\core.py", line 207, in __getitem__
    component = cls(self)
  File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\tr
ac-0.11.6-py2.5-win32.egg\trac\core.py", line 111, in maybe_init
    init(self)
  File "build\bdist.win32\egg\worklog\api.py", line 36, in __init__
AttributeError: 'Environment' object has no attribute 'get_read_db'
  1. Trac site displays "Work Log" mainnav menu but in that page saying
Ooops.
Trac detected an internal error:
AttributeError: 'Environement' object has no attribute 'get_read_db'
  1. Python traceback says
File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\trac-0.11.6-py2.5-win32.egg\trac\web\main.py", line 450, in _dispatch_request
  dispatcher.dispatch(req)
File "C:\Program Files (x86)\VisualSVN Server\trac\python\lib\site-packages\trac-0.11.6-py2.5-win32.egg\trac\web\main.py", line 206, in dispatch
  resp = chosen_handler.process_request(req)
File "build\bdist.win32\egg\worklog\webui.py", line 157, in process_requestFile "build\bdist.win32\egg\worklog\manager.py", line 287, in get_work_log

Any help or suggestion will be appreciated.

Thanks in advance.

Attachments (0)

Change History (2)

comment:1 Changed 6 years ago by Colin Guthrie

Resolution: worksforme
Status: newclosed

Hello.

Sorry for the late reply.

The get_read_db() function is used in Trac 0.12. I have looked in the 0.11 version of the plugin and I cannot find this function call, so I suspect you are using the plugin from the 0.12 branch with a 0.11 version of Trac. Please use the code form the 0.11 branch :)

Hope this helps.

comment:2 in reply to:  1 Changed 6 years ago by John Lee

Hi coling. Much appreciated with your input. I will give it a try as you advised and will let you know the result. Thanks again.

Replying to coling:

Hello.

Sorry for the late reply.

The get_read_db() function is used in Trac 0.12. I have looked in the 0.11 version of the plugin and I cannot find this function call, so I suspect you are using the plugin from the 0.12 branch with a 0.11 version of Trac. Please use the code form the 0.11 branch :)

Hope this helps.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Colin Guthrie.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.