thombashi / pytablewriter

pytablewriter is a Python library to write a table in various formats: AsciiDoc / CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
https://pytablewriter.rtfd.io/
MIT License
610 stars 43 forks source link

DataProperty 0.44.0 breaks pytablewriter #23

Closed valerioa closed 4 years ago

valerioa commented 4 years ago

DataProperty 0.44.0 breaks pytablewriter:

2020-02-05 10:27:45,002 - DEBUG -   File "/usr/local/lib/python3.6/site-packages/pytablewriter/writer/text/_markdown.py", line 34, in __init__
2020-02-05 10:27:45,003 - DEBUG - super(MarkdownTableWriter, self).__init__()
2020-02-05 10:27:45,003 - DEBUG -   File "/usr/local/lib/python3.6/site-packages/pytablewriter/writer/text/_text_writer.py", line 386, in __init__
2020-02-05 10:27:45,003 - DEBUG - super(IndentationTextTableWriter, self).__init__()
2020-02-05 10:27:45,003 - DEBUG -   File "/usr/local/lib/python3.6/site-packages/pytablewriter/writer/text/_text_writer.py", line 111, in __init__
2020-02-05 10:27:45,003 - DEBUG - super(TextTableWriter, self).__init__()
2020-02-05 10:27:45,003 - DEBUG -   File "/usr/local/lib/python3.6/site-packages/pytablewriter/writer/_table_writer.py", line 429, in __init__
2020-02-05 10:27:45,003 - DEBUG - self.line_break_handling = LineBreakHandling.NOP
2020-02-05 10:27:45,003 - DEBUG -   File "/usr/local/lib/python3.6/site-packages/pytablewriter/writer/_table_writer.py", line 346, in line_break_handling
2020-02-05 10:27:45,003 - DEBUG - if self._dp_extractor.line_break_handling == value:
2020-02-05 10:27:45,003 - DEBUG - AttributeError
2020-02-05 10:27:45,003 - DEBUG - :
2020-02-05 10:27:45,003 - DEBUG - 'DataPropertyExtractor' object has no attribute 'line_break_handling'
hugovk commented 4 years ago

Looks likes there's a fix in master: https://github.com/thombashi/pytablewriter/commit/af6fd89478730067556f5b38f954b0299fda6535

valerioa commented 4 years ago

thanks, the fix has not made it to the pypy repositories

thombashi commented 4 years ago

@valerioa Thank you for your report.

pytablewriter 0.47.0 is now uploaded to PyPI which fixed the problem. Feel free to reopen if you still have any problems.

valerioa commented 4 years ago

Thank you, Tsuyoshi