I still get some mistakes, because I do not understand the Python language, 
so it is difficult to analyze what is the problem!


2016-12-06 13:48:08,061 Trac[loader] ERROR: Skipping "trac.mimeview.txtl = 
trac.mimeview.txtl [textile]":
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/loader.py", line 68, in 
_load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 
2287, in load
    return self.resolve()
  File "/usr/lib/python2.6/site-packages/pkg_resources/__init__.py", line 
2293, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python2.6/site-packages/trac/mimeview/txtl.py", line 21, 
in <module>
    import textile
ImportError: No module named textile

2016-12-06 13:48:09,211 Trac[main] ERROR: Exception caught while 
post-processing request:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 285, in 
dispatch
    self._post_process_request(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 447, in 
_post_process_request
    f.post_process_request(req, *(None,)*extra_arg_count)
  File "build/bdist.linux-x86_64/egg/tracwysiwyg/__init__.py", line 49, in 
post_process_request
    add_script_data(req, {'_tracwysiwyg': options})
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 186, in 
add_script_data
    script_data = req.chrome.setdefault('script_data', {})
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 800, in 
prepare_request
    if req.locale is not None and str(req.locale) != 'en_US':
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 358, in 
_get_locale
    preferred = req.session.get('language')
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 350, in 
_get_session
    return Session(self.env, req)
  File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 242, in 
__init__
    if req.authname == 'anonymous':
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 172, in 
authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.linux-x86_64/egg/acct_mgr/util.py", line 81, in wrap
    return func(self, *args, **kwds)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 422, in 
authenticate
    return auth.LoginModule.authenticate(self, req)
  File "/usr/lib/python2.6/site-packages/trac/web/auth.py", line 97, in 
authenticate
    req.incookie['trac_auth'])
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 491, in 
_get_name_for_cookie
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
2016-12-06 13:48:09,212 Trac[main] ERROR: Internal Server Error: 
<RequestWithSession "GET '/ticket/508'">, referrer 
'http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter&smp_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83&tag_query=&from=2016-12-05&daysback=8&authors=tianmingxing&ticket=on&changeset=on&repo-=on&repo-Idouzi_Mall=on&repo-Idouzi_Server=on&milestone=on&wiki=on&tags=on&update=%E6%9B%B4%E6%96%B0%E7%BB%93%E6%9E%9C'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
_dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 220, in 
dispatch
    chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 422, in 
_pre_process_request
    chosen_handler = filter_.pre_process_request(req, chosen_handler)
  File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 478, in 
pre_process_request
    if not req.session.authenticated or \
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 350, in 
_get_session
    return Session(self.env, req)
  File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 242, in 
__init__
    if req.authname == 'anonymous':
  File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 492, in 
__getattr__
    value = self.callbacks[name](self)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 172, in 
authenticate
    authname = authenticator.authenticate(req)
  File "build/bdist.linux-x86_64/egg/acct_mgr/util.py", line 81, in wrap
    return func(self, *args, **kwds)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 422, in 
authenticate
    return auth.LoginModule.authenticate(self, req)
  File "/usr/lib/python2.6/site-packages/trac/web/auth.py", line 97, in 
authenticate
    req.incookie['trac_auth'])
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 491, in 
_get_name_for_cookie
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'





在 2016年12月6日星期二 UTC+8上午11:07:31,RjOllos写道:
>
>
>
> On Mon, Dec 5, 2016 at 7:02 PM Mingxing Tian <[email protected] <javascript:>> 
> wrote:
>
>> From the Trac startup log, you can help me see where there is a problem?
>>
>
> If you read the traceback you will see that the immediate problem is with 
> TracTags.
>
>   File "build/bdist.linux-x86_64/egg/tractags/ticket.py", line 53, in 
> __init__
>     db = self.env.get_db_cnx()
> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>
> TagsPlugin is compatible with Trac 1.2, you just need to upgrade to 
> version 0.8.
>
> However, you have many plugins installed, so you will need to check 
> whether each is compatible with Trac 1.2, as Jun said.
>
> - Ryan
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to