Code Monkey home page Code Monkey logo

Comments (4)

tscritch avatar tscritch commented on September 27, 2024 1

@hfaran I can take a look as I continue to add some features in the next few weeks 👍

from slack-export-viewer.

tscritch avatar tscritch commented on September 27, 2024 1

Hey @depperson

I have determined that the issue is with the usage of os.path. It currently only works with the full file path from the root directory. Try a path like this for now:
/Users/<youruser>/Documents/MyExtractedSlackArchive

I'm working on a fix right now. Sorry for the wait!

from slack-export-viewer.

Mikeldiazot avatar Mikeldiazot commented on September 27, 2024

Hi @tscritch
I am having the same problem. I tried with the full file path but nothing. Could you help me? It seems to be a great tool/code:
MacBook-JJ:~ JJ$ slack-export-viewer -z /users/JJ/documents/slack162018
Traceback (most recent call last):
File "/usr/local/bin/slack-export-viewer", line 11, in
sys.exit(main())
File "/Library/Python/2.7/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/Library/Python/2.7/site-packages/slackviewer/main.py", line 50, in main
configure_app(app, archive, debug)
File "/Library/Python/2.7/site-packages/slackviewer/main.py", line 18, in configure_app
path = extract_archive(archive)
File "/Library/Python/2.7/site-packages/slackviewer/archive.py", line 49, in extract_archive
raise TypeError("{} is not a zipfile".format(filepath))
TypeError: /users/JJ/documents/slack162018 is not a zipfile

from slack-export-viewer.

tscritch avatar tscritch commented on September 27, 2024

@Mikeldiazot is this /users/JJ/documents/slack162018 a zip file? If so, you need to add the extension to the end for the full file path. It would look like this /users/JJ/documents/slack162018.zip

If it is a directory remove the -z option. Your command would look like this:
slack-export-viewer /users/JJ/documents/slack162018

from slack-export-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.