Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#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 Ryan J Ollos

Owner: set to Ryan J Ollos
Status: newaccepted

comment:2 Changed 5 years ago by Ryan J Ollos

In 17463:

Make compatible with Trac 1.0+ and TracTags 0.6+

Refs #13590.

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 5 years ago by Ryan J Ollos

r17463 are untested changes. Could you please test them?

comment:4 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

comment:5 Changed 5 years ago by Massimo

Resolution: fixed
Status: closedreopened

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:6 Changed 5 years ago by Ryan J Ollos

In 17466:

Change plugin name to TracLoomingClouds

Refs #13590.

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:7 Changed 5 years ago by Ryan J Ollos

In 17467:

Change plugin name to TracLoomingClouds

Refs #13590.

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:8 Changed 5 years ago by Ryan J Ollos

In 17468:

Make compatible with Trac 1.0+

Refs #13590.

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:9 Changed 5 years ago by Ryan J Ollos

Resolution: fixed
Status: reopenedclosed

comment:10 in reply to:  7 Changed 5 years ago by Ryan J Ollos

Replying to Ryan J Ollos:

In 17467:

Change plugin name to TracLoomingClouds

Refs #13590.

Make sure to uninstall LoomingClouds before installing TracLoomingClouds.

comment:11 Changed 5 years ago by 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.

Is it possible to limit the maximum count of results displayed there?

comment:12 in reply to:  11 Changed 5 years ago by Ryan J Ollos

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 in reply to:  11 Changed 5 years ago by Ryan J Ollos

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?

Last edited 5 years ago by Ryan J Ollos (previous) (diff)

comment:14 Changed 5 years ago by Massimo

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...

Last edited 5 years ago by Massimo (previous) (diff)

comment:15 Changed 5 years ago by Massimo

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
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.