#13590 closed defect (fixed)
ImportError: cannot import name TagCloudMacro
Reported by: | Massimo | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | LoomingCloudsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.2 |
Description
The plugin does not load:
2019-08-23 11:11:19,995 Trac[loader] DEBUG: Loading plugin "loomingclouds" from "/mnt/data/trac/projects/trac-pp/plugins/LoomingClouds-0.12.post1-py2.7.egg" 2019-08-23 11:11:19,996 Trac[loader] ERROR: Skipping "loomingclouds = loomingclouds": ImportError: cannot import name TagCloudMacro
The required tractags is loaded:
TracTags 0.11.dev0 /mnt/data/trac/projects/trac-pp/plugins/TracTags-0.11.dev0-py2.7.egg
However there are some errors in the log about tractags:
2019-08-23 11:11:20,234 Trac[loader] ERROR: Skipping "tractags.wikiautocomplete = tractags.wikiautocomplete [wikiautocomplete]": ImportError: No module named api
Attachments (0)
Change History (15)
comment:1 Changed 5 years ago by
Owner: | set to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:4 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:5 Changed 5 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
With this change, every ticket page is failing:
Trac detected an internal error: NameError: global name 'TagCloudMacro' is not defined
File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 647, in _dispatch_request dispatcher.dispatch(req) File "/usr/lib64/python2.7/site-packages/trac/web/main.py", line 268, in dispatch iterable=chrome.use_chunked_encoding) File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1134, in render_template stream |= self._filter_stream(req, method, filename, stream, data) File "/usr/lib64/python2.7/site-packages/genshi/core.py", line 133, in __or__ return Stream(_ensure(function(self)), serializer=self.serializer) File "/usr/lib64/python2.7/site-packages/trac/web/chrome.py", line 1447, in inner data) File "build/bdist.linux-x86_64/egg/loomingclouds/loomingclouds.py", line 47, in filter_stream macro = TagCloudMacro(self.env)
comment:9 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:10 Changed 5 years ago by
Replying to Ryan J Ollos:
In 17467:
Make sure to uninstall LoomingClouds
before installing TracLoomingClouds
.
comment:11 follow-ups: 12 13 Changed 5 years ago by
The list of keywords appears now in the New ticket form.
However clicking on one of them does not enter that keyword into the field but just opens the hyperlink like /tags/station?wiki=on&blog=on&ticket=on&discussion=on
.
Is it possible to limit the maximum count of results displayed there?
comment:12 Changed 5 years ago by
Replying to Massimo:
The list of keywords appears now in the New ticket form. However clicking on one of them does not enter that keyword into the field but just opens the hyperlink like
/tags/station?wiki=on&blog=on&ticket=on&discussion=on
.
Did you redeploy your static assets and do a hard refresh of the browser? The behavior you describe is similar to what I saw before changes in r17468.
comment:13 Changed 5 years ago by
Working now?
Replying to Massimo:
Is it possible to limit the maximum count of results displayed there?
Please create a new ticket for that issue. Should be straightforward to implement.
Also, can you attach a screen capture of the cloud from your ticket page?
comment:14 Changed 5 years ago by
Clicking on keywords adds the keyword to the input field now, that works. However TracLoomingClouds is breaking the autocompletion of KeywordSuggestPlugin again. I'll create some new tickets...
In 17463: