Opened 16 years ago
Closed 14 years ago
#4054 closed defect (fixed)
Error with Trac 0.11
Reported by: | Owned by: | dagomez | |
---|---|---|---|
Priority: | highest | Component: | StractisticsPlugin |
Severity: | critical | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
Getting this error when I click on the link...
Most recent call last:
* File "/Library/Python/2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py", line 423, in _dispatch_request Code fragment: 418. try: 419. if not env and env_error: 420. raise HTTPInternalError(env_error) 421. try: 422. dispatcher = RequestDispatcher(env) 423. dispatcher.dispatch(req) 424. except RequestDone: 425. pass 426. resp = req._response or [] 427. 428. except HTTPException, e: Local variables: Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher <trac.web.main.RequestDispatcher object at 0x101b87810> e AttributeError("'NoneType' object has no attribute 'getValue'",) env <trac.env.Environment object at 0x10184c7d0> env_error None exc_info (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has ... filename '/Library/Python/2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py' frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 422 message u"AttributeError: 'NoneType' object has no attribute 'getValue'" req <Request "GET u'/stractistics'"> resp [] tb <traceback object at 0x101fa4368> tb_hide None traceback 'Traceback (most recent call last):\n File ... * File "/Library/Python/2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/main.py", line 197, in dispatch Code fragment: 192. req.args.get('__FORM_TOKEN') != req.form_token: 193. raise HTTPBadRequest('Missing or invalid form token. ' 194. 'Do you have cookies enabled?') 195. 196. # Process the request and render the template 197. resp = chosen_handler.process_request(req) 198. if resp: 199. if len(resp) == 2: # Clearsilver 200. chrome.populate_hdf(req) 201. template, content_type = \ 202. self._post_process_request(req, *resp) Local variables: Name Value chosen_handler <stractistics.web_ui.StractisticsModule object at 0x101b879d0> chrome <trac.web.chrome.Chrome object at 0x101a93c10> err (<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has ... handler <stractistics.web_ui.StractisticsModule object at 0x101b879d0> req <Request "GET u'/stractistics'"> self <trac.web.main.RequestDispatcher object at 0x101b87810> * File "build/bdist.macosx-10.5-i386/egg/stractistics/web_ui.py", line 123, in process_request Local variables: Name Value chrome <trac.web.chrome.Chrome object at 0x101a93c10> config {'wiki_ignored_authors': [], 'repository_ignored_authors': [], ... db <trac.db.pool.PooledConnection object at 0x101fa3878> elem ('User reports', 'user_reports') links [('Project reports', '/stractistics/project_reports'), ('User reports', ... module None req <Request "GET u'/stractistics'"> self <stractistics.web_ui.StractisticsModule object at 0x101b879d0> strac_ref '/stractistics' * File "build/bdist.macosx-10.5-i386/egg/stractistics/global_reports.py", line 31, in global_reports Local variables: Name Value config {'wiki_ignored_authors': [], 'repository_ignored_authors': [], ... db <trac.db.pool.PooledConnection object at 0x101fa3878> end_date datetime.datetime(2008, 11, 8, 21, 50, 15, 792934) req <Request "GET u'/stractistics'"> start_date datetime.datetime(2008, 8, 16, 21, 50, 15, 792934) weeks_back 12 * File "build/bdist.macosx-10.5-i386/egg/stractistics/global_reports.py", line 72, in _repository_activity Local variables: Name Value AUTHORS_LIMIT 5 WEEKS_NUMBER 12 authors [u'peter', u'mattias', u'root'] authors_data {u'mattias': [0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0], u'peter': [0, 0, 0, ... config {'wiki_ignored_authors': [], 'repository_ignored_authors': [], ... db <trac.db.pool.PooledConnection object at 0x101fa3878> end_date datetime.datetime(2008, 11, 8, 21, 50, 15, 792934) ignored_authors '' req <Request "GET u'/stractistics'"> revisions [(u'root', datetime.datetime(2008, 10, 7, 13, 28, 36)), (u'root', ... start_date datetime.datetime(2008, 8, 16, 21, 50, 15, 792934) weeks_back 12 weeks_list ['32/08', '33/08', '34/08', '35/08', '36/08', '37/08', '38/08', '39/08', ... * File "/Library/Python/2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/clearsilver.py", line 167, in __getitem__ Code fragment: 162. if value == '<<NONE>>': 163. return default 164. return value.decode('utf-8') 165. 166. def __getitem__(self, name): 167. value = self.get(name, None) 168. if value == None: 169. raise KeyError, name 170. return value 171. 172. def __setitem__(self, name, value): Local variables: Name Value name 'chrome.href' self <HDFWrapper 0x101fa2a70> * File "/Library/Python/2.5/site-packages/Trac-0.11-py2.5.egg/trac/web/clearsilver.py", line 161, in get
Trac: 0.11 Python: 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) [GCC 4.0.1 (Apple Inc. build 5465)] setuptools: 0.6c7 SQLite: 3.4.0 pysqlite: 2.3.2 Genshi: 0.5.1 mod_python: 3.3.2-dev-20080819 Subversion: 1.4.4 (r25188) jQuery: 1.2.3
Attachments (0)
Change History (15)
comment:1 Changed 16 years ago by
Priority: | normal → high |
---|
comment:2 Changed 15 years ago by
I also get the same error, even with ClearSilver Installed: Python 2.5, Trac 0.11.5
comment:3 Changed 15 years ago by
Same error here:
- Trac 0.11
- Python 2.4.3
- STractistics 0.4.2
- Clearsilver 0.10.5
comment:4 Changed 15 years ago by
Cc: | suporte@… added; anonymous removed |
---|
comment:6 Changed 15 years ago by
Hi,
getting the same error here: python 2.6 trac 0.11.5 clearsilver 0.10.5 apache mod_wsgi
comment:7 Changed 15 years ago by
Anyone has a solution to this bug?
I can't use the Stractistics Plugin after installing.
comment:8 Changed 15 years ago by
I'm getting the same error AttributeError: 'NoneType' object has no attribute 'getValue'
- def contains(self, name):
- return self.hdf.getObj(str(name)) != None
- has_key = contains
- def get(self, name, default=None):
- value = self.hdf.getValue(str(name), '<<NONE>>')
- if value == '<<NONE>>':
- return default
- return value.decode('utf-8')
- def getitem(self, name):
Local variables: Name Value default None name 'chrome.href' self <HDFWrapper 0xb70fd7cc>
comment:9 Changed 15 years ago by
Cc: | anonymous added; suporte@… removed |
---|
comment:10 Changed 15 years ago by
Priority: | high → highest |
---|
The power of open source.
free code. free installation. and bugs are free. no support.
comment:11 follow-up: 12 Changed 15 years ago by
I was getting the same error, but installing clearsilver fixed it. Just used
sudo aptitude install python-clearsilver
Trac 0.11.1, python 2.5, clearsilver 0.10.4
comment:12 Changed 14 years ago by
Replying to anonymous:
I was getting the same error, but installing clearsilver fixed it. Just used
sudo aptitude install python-clearsilverTrac 0.11.1, python 2.5, clearsilver 0.10.4
this also worked for me! thanks for the "free" suport ;)
comment:13 Changed 14 years ago by
The clearsilver dependency, though well document on the project's wiki page, should also be specified in setup.py.
comment:14 Changed 14 years ago by
Description: | modified (diff) |
---|
comment:15 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
A new 0.11 version has been committed today. See #4353.
I get the same error with Trac 0.11.2.1