senderle / topic-modeling-tool

A point-and-click tool for creating and analyzing topic models produced by MALLET.
https://senderle.github.io/topic-modeling-tool/documentation/2017/01/06/quickstart.html
Apache License 2.0
106 stars 22 forks source link

Stable Release 1.0.0 Fails to Install #63

Closed zhanwenchen closed 6 years ago

zhanwenchen commented 7 years ago

Clicking on "TopicModelingTool.dmg"

screen shot 2017-08-21 at 12 05 29 pm

Clicking on "TopicModelingTool.jar"

screen shot 2017-08-21 at 12 05 59 pm

Running chmod 777 ./* didn't help. I did build from source which worked fine.

OS: macOS Sierra 10.12.6

senderle commented 7 years ago

I'm afraid I couldn't replicate this. I have the same version of Mac OS and was able to download and open the DMG without any trouble.

How did you download it? Github doesn't always handle file downloads in the expected way. When I checked, this was the exact url I used.

https://github.com/senderle/topic-modeling-tool/raw/master/TopicModelingTool.dmg

Try that and see what happens.

zhanwenchen commented 7 years ago

I used https://github.com/senderle/topic-modeling-tool/releases to download the source code zip.

And yes, the link you provided works.

senderle commented 6 years ago

This doesn't seem like it can be closed yet, because I don't know what the problem was. Please comment if you've had the same problem.

hawc2 commented 6 years ago

I didn't have this problem, but a friend did. The only thing that worked: if you download the dmg file directly, it doesn't get the same error. Not sure if that means there's an error with the zip file or what

senderle commented 6 years ago

@hawc2 thanks. Revisiting this, I wonder if it has something to do with github's Large File Storage setup. The zip file might not contain the actual .dmg file -- it might just contain a pointer to the file. When you clone the repo through git, it knows to download the file itself, but when you download the zip file, you just get the pointer...

senderle commented 6 years ago

Aha, yes, that seems like it must be the problem. See this issue under the LFS plugin.

https://github.com/git-lfs/git-lfs/issues/1648

senderle commented 6 years ago

This is unavoidable behavior caused by git's Large File Storage (LFS) plugin. See the issue here:

git-lfs/git-lfs#1648

The trouble is that the pre-built applications are too large to store and track in the normal way. Luckily, LFS provides a way around that, but it uses some wizardry that only git understands, and so when you download the raw data as a zip file, the necessary incantations aren't invoked.

This might be something github could fix, but we can't. The only solution is to avoid downloading the repository as a zip file. If you wish to install a pre-built binary, you'll need to directly download the binary file itself, or clone the repository using git, with the git-lfs plugin installed.