Opened 6 years ago

Last modified 6 years ago

#13323 closed defect

ImportError 'to_list' in rules.py — at Version 2

Reported by: ntmlod Owned by: Ryan J Ollos
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Ryan J Ollos)

2017-11-02 19:27:57,698 Trac[loader] ERROR: Skipping "dynfields.rules = dynfields.rules":
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-x86_64/egg/dynfields/rules.py", line 13, in <module>
ImportError: cannot import name to_list
2017-11-02 19:27:57,700 Trac[loader] ERROR: Skipping "dynfields.web_ui = dynfields.web_ui":
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/trac/loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/bdist.linux-x86_64/egg/dynfields/web_ui.py", line 19, in <module>
  File "build/bdist.linux-x86_64/egg/dynfields/rules.py", line 13, in <module>
ImportError: cannot import name to_list

Raw workaround by adding to_list definition from [trac 13441].

Change History (2)

comment:1 Changed 6 years ago by Ryan J Ollos

Once Trac 1.4 is released this year I won't be supporting Trac < 1.2. You should really consider installing Trac in a virtual environment and running at least the latest 1.0-stable. I can't see how it makes sense to rely on your OS package manager for the Trac install while installing plugins from source. I think it's just a common pattern users fall into by thinking the Trac package has some special qualities, while really it's just another egg or wheel. A virtualenv gives you isolation to install anything without polluting your system installation.

comment:2 Changed 6 years ago by Ryan J Ollos

Description: modified (diff)
Status: newaccepted
Note: See TracTickets for help on using tickets.