These are chat archives for ipython/ipython
I'm getting an unexpected error from
traitlets/utils/importstring.py in traitlets which is arising from a class like this:
class Artist(Configurable): # ... axes = Instance('matplotlib.axes.Axes', allow_none=True) # ...
The error reads,
TypeError: Item in ``from list'' not a string, because by the time the instance's string makes it down to
importstring.py it's been turned into unicode. So to fix the issue I simply converted it back to a string when it get's passed to
module = __import__(package, fromlist=[obj]) # would be fixed by: module = __import__(package, fromlist=[str(obj)])
Of course this doesn't seem like it should be happening though...