Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread RjOllos


On Monday, December 5, 2016 at 10:12:48 PM UTC-8, Mingxing Tian wrote:
>
>
>
> 在 2016年12月6日星期二 UTC+8下午2:08:00,RjOllos写道:
>>
>>
>>
>> On Monday, December 5, 2016 at 9:57:24 PM UTC-8, Mingxing Tian wrote:
>>>
>>> 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 
>>> 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: 
>>> , referrer '
>>> http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83_query==2016-12-05=8=tianmingxing=on=on=on_Mall=on_Server=on=on=on=on=%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 

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread Mingxing Tian


在 2016年12月6日星期二 UTC+8下午2:08:00,RjOllos写道:
>
>
>
> On Monday, December 5, 2016 at 9:57:24 PM UTC-8, Mingxing Tian wrote:
>>
>> 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 
>> 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: 
>> , referrer '
>> http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83_query==2016-12-05=8=tianmingxing=on=on=on_Mall=on_Server=on=on=on=on=%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__
>> 

Re: [Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread RjOllos


On Monday, December 5, 2016 at 9:57:24 PM UTC-8, Mingxing Tian wrote:
>
> 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 
> 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: 
> , referrer '
> http://trac.idouzi.com/trac/idouzi/timeline?smp_update=filter_projects=%E6%95%B0%E6%8D%AE%E4%B8%AD%E5%BF%83_query==2016-12-05=8=tianmingxing=on=on=on_Mall=on_Server=on=on=on=on=%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 = 

[Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread Mingxing Tian
2016-12-06 10:53:15,190 Trac[env] INFO:  
environment startup [Trac 1.2] 
2016-12-06 10:53:15,530 Trac[loader] DEBUG: Adding plugin GroupTicketFields 
0.0.1dev-r0 from 
/home/projects/xxx/plugins/GroupTicketFields-0.0.1dev_r0-py2.6.egg
2016-12-06 10:53:15,531 Trac[loader] DEBUG: Adding plugin GridModify 
0.1.6dev-r0 from /home/projects/xxx/plugins/GridModify-0.1.6dev_r0-py2.6.egg
2016-12-06 10:53:15,531 Trac[loader] DEBUG: Adding plugin BreadCrumbsNav 
0.3dev-r0 from /home/projects/xxx/plugins/BreadCrumbsNav-0.3dev_r0-py2.6.egg
2016-12-06 10:53:15,531 Trac[loader] DEBUG: Adding plugin STractistics 
0.6dev-r0 from /home/projects/xxx/plugins/STractistics-0.6dev_r0-py2.6.egg
2016-12-06 10:53:15,532 Trac[loader] DEBUG: Adding plugin Lineno 1.2dev-r0 
from /home/projects/xxx/plugins/Lineno-1.2dev_r0-py2.6.egg
2016-12-06 10:53:15,532 Trac[loader] DEBUG: Adding plugin TracProjectMenu 
2.0dev-r0 from 
/home/projects/xxx/plugins/TracProjectMenu-2.0dev_r0-py2.6.egg
2016-12-06 10:53:15,532 Trac[loader] DEBUG: Adding plugin cc-selector 0.0.4 
from /home/projects/xxx/plugins/cc_selector-0.0.4-py2.6.egg
2016-12-06 10:53:15,532 Trac[loader] DEBUG: Adding plugin 
trac-UserPicturesPlugin 0.1.1 from 
/usr/lib/python2.6/site-packages/trac_UserPicturesPlugin-0.1.1-py2.6.egg
2016-12-06 10:53:15,533 Trac[loader] DEBUG: Adding plugin 
TracSubTicketsPlugin 0.2.0.dev20161020 from 
/home/projects/xxx/plugins/TracSubTicketsPlugin-0.2.0.dev20161020-py2.6.egg
2016-12-06 10:53:15,533 Trac[loader] DEBUG: Adding plugin TablePlugin 
0.2.post0 from /home/projects/xxx/plugins/TablePlugin-0.2.post0-py2.6.egg
2016-12-06 10:53:15,533 Trac[loader] DEBUG: Adding plugin 
TracSectionEditPlugin 0.2.6.post0 from 
/home/projects/xxx/plugins/TracSectionEditPlugin-0.2.6.post0-py2.6.egg
2016-12-06 10:53:15,534 Trac[loader] DEBUG: Adding plugin 
TracCustomFieldAdmin 0.2.12 from 
/home/projects/xxx/plugins/TracCustomFieldAdmin-0.2.12-py2.6.egg
2016-12-06 10:53:15,534 Trac[loader] DEBUG: Adding plugin TracExtractUrl 
0.3 from /home/projects/xxx/plugins/TracExtractUrl-0.3-py2.6.egg
2016-12-06 10:53:15,534 Trac[loader] DEBUG: Adding plugin TicketExtPlugin 
0.3.2.post0 from 
/home/projects/xxx/plugins/TicketExtPlugin-0.3.2.post0-py2.6.egg
2016-12-06 10:53:15,534 Trac[loader] DEBUG: Adding plugin 
TracNumberedHeadlinesPlugin 0.4.post0 from 
/home/projects/xxx/plugins/TracNumberedHeadlinesPlugin-0.4.post0-py2.6.egg
2016-12-06 10:53:15,535 Trac[loader] DEBUG: Adding plugin 
TracAccountManager 0.5.dev0 from 
/home/projects/xxx/plugins/TracAccountManager-0.5.dev0-py2.6.egg
2016-12-06 10:53:15,535 Trac[loader] DEBUG: Adding plugin TracMindMapMacro 
0.5.dev0 from /home/projects/xxx/plugins/TracMindMapMacro-0.5.dev0-py2.6.egg
2016-12-06 10:53:15,535 Trac[loader] DEBUG: Adding plugin 
TracUserManagerPlugin 0.5.dev0 from 
/home/projects/xxx/plugins/TracUserManagerPlugin-0.5.dev0-py2.6.egg
2016-12-06 10:53:15,536 Trac[loader] DEBUG: Adding plugin 
SimpleMultiProject 0.5.2.dev0 from 
/home/projects/xxx/plugins/SimpleMultiProject-0.5.2.dev0-py2.6.egg
2016-12-06 10:53:15,536 Trac[loader] DEBUG: Adding plugin 
TracGanttCalendarPlugin 0.6.4.post0 from 
/home/projects/xxx/plugins/TracGanttCalendarPlugin-0.6.4.post0-py2.6.egg
2016-12-06 10:53:15,536 Trac[loader] DEBUG: Adding plugin TracTags 0.9.dev0 
from /home/projects/xxx/plugins/TracTags-0.9.dev0-py2.6.egg
2016-12-06 10:53:15,537 Trac[loader] DEBUG: Adding plugin TracMarkdownMacro 
0.11.4.post0 from 
/home/projects/xxx/plugins/TracMarkdownMacro-0.11.4.post0-py2.6.egg
2016-12-06 10:53:15,537 Trac[loader] DEBUG: Adding plugin 
TracHtmlNotificationPlugin 0.12.0.1 from 
/home/projects/xxx/plugins/TracHtmlNotificationPlugin-0.12.0.1-py2.6.egg
2016-12-06 10:53:15,537 Trac[loader] DEBUG: Adding plugin 
TicketCalendarPlugin 0.12.0.2 from 
/home/projects/xxx/plugins/TicketCalendarPlugin-0.12.0.2-py2.6.egg
2016-12-06 10:53:15,537 Trac[loader] DEBUG: Adding plugin TracWorkflowAdmin 
0.12.0.2 from 
/home/projects/xxx/plugins/TracWorkflowAdmin-0.12.0.2-py2.6.egg
2016-12-06 10:53:15,538 Trac[loader] DEBUG: Adding plugin TracWysiwyg 
0.12.0.5.post0 from 
/home/projects/xxx/plugins/TracWysiwyg-0.12.0.5.post0-py2.6.egg
2016-12-06 10:53:15,538 Trac[loader] DEBUG: Adding plugin 
BlackMagicTicketTweaks 0.12.2 from 
/home/projects/xxx/plugins/BlackMagicTicketTweaks-0.12.2-py2.6.egg
2016-12-06 10:53:15,538 Trac[loader] DEBUG: Adding plugin 
SvnAuthzAdminPlugin 1.0.dev0 from 
/home/projects/xxx/plugins/SvnAuthzAdminPlugin-1.0.dev0-py2.6.egg
2016-12-06 10:53:15,539 Trac[loader] DEBUG: Adding plugin TracAnnouncer 
1.0.dev0 from /home/projects/xxx/plugins/TracAnnouncer-1.0.dev0-py2.6.egg
2016-12-06 10:53:15,539 Trac[loader] DEBUG: Adding plugin TracCodeReviewer 
1.0.0.dev0 from 
/home/projects/xxx/plugins/TracCodeReviewer-1.0.0.dev0-py2.6.egg
2016-12-06 10:53:15,539 Trac[loader] DEBUG: Adding plugin TracWikiExtras 
1.0.dev0 from 

[Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread Mingxing Tian
[root@host105 tmp]# pip install -U Trac
DEPRECATION: Python 2.6 is no longer supported by the Python core team, 
please upgrade your Python. A future version of pip will drop support for 
Python 2.6
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318:
 
SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject 
Name Indication) extension to TLS is not available on this platform. This 
may cause the server to present an incorrect TLS certificate, which can 
cause validation failures. You can upgrade to a newer version of Python to 
solve this. For more information, see 
https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122:
 
InsecurePlatformWarning: A true SSLContext object is not available. This 
prevents urllib3 from configuring SSL appropriately and may cause certain 
SSL connections to fail. You can upgrade to a newer version of Python to 
solve this. For more information, see 
https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Collecting Trac
  Downloading Trac-1.2-py2-none-any.whl (3.8MB)
100% || 3.8MB 1.2kB/s
Collecting setuptools>=0.6 (from Trac)
  Downloading setuptools-30.2.0-py2.py3-none-any.whl (472kB)
100% || 481kB 3.5kB/s
Requirement already up-to-date: Genshi>=0.6 in 
/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg (from 
Trac)
Installing collected packages: setuptools, Trac
  Found existing installation: setuptools 21.2.0
Uninstalling setuptools-21.2.0:
  Successfully uninstalled setuptools-21.2.0
  Found existing installation: Trac 1.0.13
Uninstalling Trac-1.0.13:
  Successfully uninstalled Trac-1.0.13
Successfully installed Trac-1.2 setuptools-30.2.0
Traceback (most recent call last):
  File "/usr/bin/pip", line 11, in 
sys.exit(main())
  File "/usr/lib/python2.6/site-packages/pip/__init__.py", line 233, in main
return command.main(cmd_args)
  File "/usr/lib/python2.6/site-packages/pip/basecommand.py", line 252, in 
main
pip_version_check(session)
  File "/usr/lib/python2.6/site-packages/pip/utils/outdated.py", line 102, 
in pip_version_check
installed_version = get_installed_version("pip")
  File "/usr/lib/python2.6/site-packages/pip/utils/__init__.py", line 838, 
in get_installed_version
working_set = pkg_resources.WorkingSet()
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 644, in __init__
self.add_entry(entry)
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 700, in add_entry
for dist in find_distributions(entry, True):
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 1949, in find_eggs_in_zip
if metadata.has_metadata('PKG-INFO'):
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 1463, in has_metadata
return self.egg_info and self._has(self._fn(self.egg_info, name))
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 1823, in _has
return zip_path in self.zipinfo or zip_path in self._index()
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 1703, in zipinfo
return self._zip_manifests.load(self.loader.archive)
  File 
"/usr/lib/python2.6/site-packages/pip/_vendor/pkg_resources/__init__.py", 
line 1643, in load
mtime = os.stat(path).st_mtime
OSError: [Errno 2] 没有那个文件或目录: 
'/usr/lib/python2.6/site-packages/setuptools-21.2.0-py2.6.egg'



There was an error in the installation process. May I have completed the 
upgrade?


在 2016年12月5日星期一 UTC+8下午10:57:02,RjOllos写道:
>
>
>
> On Monday, December 5, 2016 at 12:38:24 AM UTC-8, Mingxing Tian wrote:
>>
>> [root@host105 ~]# easy_install --upgrade Trac
>> Searching for Trac
>> Reading https://pypi.python.org/simple/Trac/
>> Download error on https://pypi.python.org/simple/Trac/: [Errno 101] 
>> Network is unreachable -- Some packages may not be found!
>> Couldn't retrieve index page for 'Trac'
>> Scanning index of all packages (this may take a while)
>> Reading https://pypi.python.org/simple/
>> Best match: Trac 1.0.13
>> Processing Trac-1.0.13-py2.6.egg
>> Trac 1.0.13 is already the active version in easy-install.pth
>> Installing trac-admin script to /usr/bin
>> Installing tracd script to /usr/bin
>>
>> Using /usr/lib/python2.6/site-packages/Trac-1.0.13-py2.6.egg
>> Processing dependencies for Trac
>> Finished processing dependencies for Trac
>> You have new mail in /var/spool/mail/root
>>
>>
>> The upgrade process seems to have nothing to do?
>>
>
> It looks like you have a network problem. Maybe you are behind a proxy or 
> corporate firewall?
>
> In general, I suggest using pip rather than easy_install.
> 

[Trac] Re: Multiple environment startup

2016-12-05 Thread RjOllos


On Monday, December 5, 2016 at 4:26:29 AM UTC-8, Tomasz Brzezina wrote:
>
>
>
> W dniu niedziela, 4 grudnia 2016 23:49:46 UTC+1 użytkownik RjOllos napisał:
>>
>>
>> I also noticed a difference between my Apache configs and the one you 
>> showed in the first post. Below "WSGIApplicationGroup %{GLOBAL}" I have 
>> "WSGIProcessGroup trac". I am not sure whether that should make a 
>> difference, however you could try:
>>
>> 
>>   WSGIApplicationGroup %{GLOBAL}
>>   WSGIProcessGroup trac
>>   Require all granted
>> 
>>
>>
>> Good Heavens!!!
> Now i have to keep my chair!!! This is too fast!!! That was the problem ;D
>
> I'm only afraid if this not breaks the separation between tracs - but if 
> not, my problem is gone :D
>

Thanks, I learned something valuable!

- 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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Re: How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread RjOllos


On Monday, December 5, 2016 at 12:38:24 AM UTC-8, Mingxing Tian wrote:
>
> [root@host105 ~]# easy_install --upgrade Trac
> Searching for Trac
> Reading https://pypi.python.org/simple/Trac/
> Download error on https://pypi.python.org/simple/Trac/: [Errno 101] 
> Network is unreachable -- Some packages may not be found!
> Couldn't retrieve index page for 'Trac'
> Scanning index of all packages (this may take a while)
> Reading https://pypi.python.org/simple/
> Best match: Trac 1.0.13
> Processing Trac-1.0.13-py2.6.egg
> Trac 1.0.13 is already the active version in easy-install.pth
> Installing trac-admin script to /usr/bin
> Installing tracd script to /usr/bin
>
> Using /usr/lib/python2.6/site-packages/Trac-1.0.13-py2.6.egg
> Processing dependencies for Trac
> Finished processing dependencies for Trac
> You have new mail in /var/spool/mail/root
>
>
> The upgrade process seems to have nothing to do?
>

It looks like you have a network problem. Maybe you are behind a proxy or 
corporate firewall?

In general, I suggest using pip rather than easy_install.
https://pip.pypa.io/en/stable/installing/
$ pip install -U Trac

Another option, you could download and install from source:

$ wget 
https://pypi.python.org/packages/de/38/7d6604d907bf37b18a0501ff00d02c9fb60182c74313e23508824620e4f3/Trac-1.2.tar.gz#md5=ff3a7d78099a269ae2035a6cf8adccbb
$ tar xzvf Trac-1.2.tar.gz 
$ cd Trac 1.2
$ python setup.py install
# or
$ pip install .
 
- 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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Re: Multiple environment startup

2016-12-05 Thread Tomasz Brzezina
According to this http://stackoverflow.com/a/6591232/354420 it looks that 
this HAVE to be set if you want separation :D Many thanks, I owe you a big 
beer ;D

I'm not sure if WSGIApplicationGroup %{GLOBAL} is necessary - i comment it 
out and still works :D 

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Re: Multiple environment startup

2016-12-05 Thread Tomasz Brzezina
W dniu niedziela, 4 grudnia 2016 22:37:20 UTC+1 użytkownik RjOllos napisał:
>
>
> On Sunday, December 4, 2016 at 1:31:39 PM UTC-8, Tomasz Brzezina wrote:
>>
>> Unfortunately, my /etc/apache2/envvars has this export since Aug 23 
>> 2015... (I even didn't know about it). So the problem is somewhere else.
>>
>
> I'd still suggest checking the logs to be sure the environment variable is 
> effective.
>
> Yes, when I remove variable and restarts apache, the warning appears in 
the log. If set back - warning not appears.

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] How to upgrade from 1.0.13 to 1.2

2016-12-05 Thread Mingxing Tian
[root@host105 ~]# easy_install --upgrade Trac
Searching for Trac
Reading https://pypi.python.org/simple/Trac/
Download error on https://pypi.python.org/simple/Trac/: [Errno 101] Network 
is unreachable -- Some packages may not be found!
Couldn't retrieve index page for 'Trac'
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Best match: Trac 1.0.13
Processing Trac-1.0.13-py2.6.egg
Trac 1.0.13 is already the active version in easy-install.pth
Installing trac-admin script to /usr/bin
Installing tracd script to /usr/bin

Using /usr/lib/python2.6/site-packages/Trac-1.0.13-py2.6.egg
Processing dependencies for Trac
Finished processing dependencies for Trac
You have new mail in /var/spool/mail/root


The upgrade process seems to have nothing to do?

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.