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

Export not proceeding #28

Open
benedict-payot opened this issue Sep 13, 2023 · 0 comments
Open

Export not proceeding #28

benedict-payot opened this issue Sep 13, 2023 · 0 comments

Comments

@benedict-payot
Copy link

benedict-payot commented Sep 13, 2023

Hi there,

We're currently testing this out for our use case. Followed everything right but this is the message we're getting:

Exporting channel from Slack...
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.11/bin/slackchannel2pdf", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slackchannel2pdf/cli.py", line 41, in main
    result = exporter.run(
             ^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slackchannel2pdf/channel_exporter.py", line 729, in run
    self._write_messages_to_pdf(document, messages, threads)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slackchannel2pdf/channel_exporter.py", line 512, in _write_messages_to_pdf
    last_user_id = self._parse_message_and_write_to_pdf(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slackchannel2pdf/channel_exporter.py", line 129, in _parse_message_and_write_to_pdf
    self._write_blocks(document, msg, margin_left)
  File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/slackchannel2pdf/channel_exporter.py", line 426, in _write_blocks
    layout_block["text"]["text"],
    ~~~~~~~~~~~~^^^^^^^^
KeyError: 'text'

Not really versed with Python but it seems like a permission issue? Or something preventing the scripts to execute. How do we resolve this? Tried looking it up but can't find a similar issue.

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

1 participant