Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"KeyError: Text" when trying an example #4

Closed
Denubis opened this issue Jul 31, 2021 · 6 comments
Closed

"KeyError: Text" when trying an example #4

Denubis opened this issue Jul 31, 2021 · 6 comments

Comments

@Denubis
Copy link

Denubis commented Jul 31, 2021

Python 3.9.5, ubuntu, running in a pyenv. (Reproduced outside of my larger project)

$ pip install blume
$ python3 multiline.py

brian@Baudrillard:~/people/ray/blume$ python3 multiline.py 
Traceback (most recent call last):
  File "/home/brian/people/ray/blume/multiline.py", line 8, in <module>
    from blume.table import table
  File "/home/brian/people/ray/blume/.direnv/python-3.9.5/lib/python3.9/site-packages/blume/table.py", line 31, in <module>
    class Cell(Rectangle):
  File "/home/brian/people/ray/blume/.direnv/python-3.9.5/lib/python3.9/site-packages/blume/table.py", line 261, in Cell
    def set_text_props(self, **kwargs):
  File "/home/brian/people/ray/blume/.direnv/python-3.9.5/lib/python3.9/site-packages/matplotlib/docstring.py", line 40, in __call__
    func.__doc__ = inspect.cleandoc(func.__doc__) % self.params
KeyError: 'Text'

I... suspect it's me that has the error, but I can't figure out what could be causing it from a clean venv.

@swfiua
Copy link
Owner

swfiua commented Jul 31, 2021

I need to do another release.

Something changed in the matplotlib docstring magic and it is getting confused whilst trying to be helpful ;)

The version on github should be ok -- it looks like I started fixing this a couple of days ago.

@Denubis
Copy link
Author

Denubis commented Aug 1, 2021

I can confirm that pip install --force-reinstall --upgrade git+https://github.com/swfiua/blume.git worked.

@swfiua
Copy link
Owner

swfiua commented Aug 1, 2021

Thanks + thanks for the report too.
I just pushed out another little fix to the offending docstring.

@Denubis
Copy link
Author

Denubis commented Aug 1, 2021

Let me know when there's a release and I'll test that, too :)

@swfiua
Copy link
Owner

swfiua commented Aug 2, 2021

Thanks -- I'm on a bit of a legend diversion at the moment + there's some general bit rot I should deal with.

I'll add a note here when the release goes out

@swfiua
Copy link
Owner

swfiua commented Aug 16, 2021

I just put out version 0.2 with this fix.

Sorry about the delay, I was hoping to put out a new version of the table using the same code as the legend, but it is proving a little trickier than I was hoping ;)

Thanks again for the report.

@swfiua swfiua closed this as completed Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants