kununu / slackdump2html

This script transforms a JSON file created by slackdump (https://github.com/rusq/slackdump) to a static HTML file.
MIT License
42 stars 4 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'data/users.txt' #12

Open dreambold opened 5 months ago

dreambold commented 5 months ago
2024/05/15 02:10:51 completed, time taken: 24.2675566s
Traceback (most recent call last):
  File "C:\Users\ddbb9\Music\slackdump2html\slackdump2html.py", line 4, in <module>
    from src.HtmlPrinter import HtmlPrinter
  File "C:\Users\ddbb9\Music\slackdump2html\src\HtmlPrinter.py", line 11, in <module>
    class HtmlPrinter:
  File "C:\Users\ddbb9\Music\slackdump2html\src\HtmlPrinter.py", line 15, in HtmlPrinter
    data_cleaner = SlackDataCleaner()
                   ^^^^^^^^^^^^^^^^^^
  File "C:\Users\ddbb9\Music\slackdump2html\src\SlackDataCleaner.py", line 175, in __init__
    self._read_user_file()
  File "C:\Users\ddbb9\Music\slackdump2html\src\SlackDataCleaner.py", line 179, in _read_user_file
    user_file = open("data/users.txt", "r", encoding="utf-8")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'data/users.txt'
Press Enter to finish

Hello

@DerDodo Hope you are doing well!@ When I'm trying to convert the exported data to HTML, the above errors show up, where we don't have any users.txt in the exported files. Maybe the slackdump has bee updated? I can just see users.json instead. Can you help me figure out this issue? Any input would be greatly appreciated.

Thank you!

dreambold commented 5 months ago

image This is the exported data folder, I tried to copy and rename the users.json file to users.txt but didn't work.

dreambold commented 5 months ago

@DerDodo I tried with the old version of slackdump, but not avail...

dreambold commented 5 months ago

Okay, I had to run ./export-users.sh to make the users.txt file. and it worked! But the images are not attached to the HTML file, is it an expected behavior?