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

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

Open
dreambold opened this issue May 15, 2024 · 3 comments

Comments

@dreambold
Copy link

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
Copy link
Author

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
Copy link
Author

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

@dreambold
Copy link
Author

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?

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