Modify

Opened 11 years ago

Closed 10 years ago

#11144 closed defect (fixed)

NameError: global name 'render_cloud' is not defined

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: TracHacksPlugin
Severity: normal Keywords:
Cc: Steffen Hoffmann Trac Release: 1.0

Description

2013-06-06 06:26:01,576 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/Trac-1.0.1-py2.6.egg/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-2.0-py2.6.egg/trachacks/web_ui.py", line 239, in process_request
    return self.render_new(req, data, hacks)
  File "/srv/trac-hacks.org/pve/lib/python2.6/site-packages/TracHacks-2.0-py2.6.egg/trachacks/web_ui.py", line 349, in render_new
    data['cloud'] = render_cloud(self.env, req, cloud, cloud_renderer)
NameError: global name 'render_cloud' is not defined

Attachments (0)

Change History (5)

comment:1 Changed 11 years ago by Ryan J Ollos

The error shown above was found in the t-h.o logs. When I install the plugin locally, I find the following error after restarting Trac:

01:12:41 AM Trac[loader] ERROR: Skipping "trachacks.web_ui = trachacks.web_ui": 
Traceback (most recent call last):
  File "/home/user/Workspace/th11144/trac-1.0.1/trac/loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "/home/user/Workspace/th11144/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/home/user/Workspace/trachacks.git/trachacksplugin/0.11/trachacks/web_ui.py", line 31, in <module>
    from tractags.macros import render_cloud
ImportError: cannot import name render_cloud

It looks like we just need to adjust for render_cloud being made a method in [11934].

If I had more time available, I would have explored whether it TagsPlugin 0.6 would work with Trac 1.0.1. I had a vague memory of it not working with Trac >= 1.0, so I went with TagsPlugin 0.7.

comment:2 Changed 11 years ago by Ryan J Ollos

In 13266:

Refs #11144: TagsPlugin 0.7 compatibility: render_cloud became a method in [11934]. Previously it was a function.

comment:3 Changed 11 years ago by Ryan J Ollos

In 13316:

Adapt call to render_cloud to API in TagsPlugin 0.7 (Refs #11144, Fixes #11146).

render_cloud became a method of TagWikiMacros in [11934]. Previously it was a function in the macros module. This issue should have been resolved in [13266], however the signature of the function call wasn't correctly changed.

comment:4 Changed 10 years ago by Ryan J Ollos

In 13481:

Another change to adapt call to render_cloud to API in TagsPlugin 0.7 (Refs #11144, #11146).

comment:5 Changed 10 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

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.