slack-dump icon indicating copy to clipboard operation
slack-dump copied to clipboard

Unable to run

Open brettimus opened this issue 9 years ago • 14 comments

CLI is spitting out the following error when I go get your repo or go run the main file.

It's been awhile since I fiddled with go, so this might be a problem on my end. But! In that case, updating the readme to be a little more user friendly would be nice. I'd be glad to make a PR if you have insight to what I'm doing wrong!

# command-line-arguments
./main.go:99: undefined: slack.Slack
./main.go:109: undefined: slack.Slack
./main.go:119: channel.Id undefined (type slack.Channel has no field or method Id)
./main.go:119: group.Id undefined (type slack.Group has no field or method Id)
./main.go:145: undefined: slack.Slack
./main.go:172: undefined: slack.Slack
./main.go:198: undefined: slack.Slack
./main.go:210: undefined: byTimestamp
./main.go:242: undefined: slack.Slack
./main.go:270: undefined: slack.Slack
./main.go:210: too many errors

brettimus avatar Oct 15 '15 20:10 brettimus

Also have this issue.

acg avatar Oct 21 '15 19:10 acg

Acknowledged. Significant changes have been made to nlopes/slack and I have made updates locally that haven't been pushed. I will do so as soon as possible.

joefitzgerald avatar Oct 21 '15 19:10 joefitzgerald

No worries. Happy to test your new changes when you're ready.

acg avatar Oct 21 '15 19:10 acg

Thanks @joefitzgerald! You're a gentleman and a scholar

brettimus avatar Oct 21 '15 19:10 brettimus

@brettimus @acg You guys can clone the nlopes/slack repo and check out the April version of the code. Ended up working for me.

mbuciuman avatar Nov 26 '15 06:11 mbuciuman

I ended up just using the node client (my interest was for an ad hoc project. Wanted to export a private channel of notes to myself before leaving my job 😁)

Happy thanksgiving if you all are into that! On Wed, Nov 25, 2015 at 22:13 mbuciuman [email protected] wrote:

@brettimus https://github.com/brettimus @acg https://github.com/acg You guys can clone the nlopes/slack repo and check out the April version of the code. Ended up working for me.

— Reply to this email directly or view it on GitHub https://github.com/joefitzgerald/slack-dump/issues/4#issuecomment-159815787 .

brettimus avatar Nov 26 '15 19:11 brettimus

Hah, Happy Thanksgiving to you too man.

mbuciuman avatar Nov 26 '15 20:11 mbuciuman

Wish there was a new solution or up to date repo, still failing for me

metaldart avatar Jun 14 '16 14:06 metaldart

@metaldart, what's your setup and what error's are you hitting?

mbuciuman avatar Jun 14 '16 15:06 mbuciuman

Using Takayoshi-Aoyagi fork and nlopes certain commit hash according to the open issue/tutorial for getting it to work

/usr/local/opt/go/bin/src/github.com/Takayoshi-Aoyagi/slack-dump: go run main.go
# command-line-arguments
./main.go:211: undefined: byTimestamp

Here is also my go env

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/usr/local/opt/go/bin"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.6.1/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.6.1/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"

metaldart avatar Jun 14 '16 15:06 metaldart

@metaldart it sounds like you're missing a library since the code is attempting to call a nonexisting function (byTimestamp), but I don't have much time right now to look more into your issue. Hope that helps and if not or you've figured it out, I'll get back to you either later today or tomorrow.

mbuciuman avatar Jun 14 '16 16:06 mbuciuman

@mbuciuman Thanks dude. For now Im trying to use some npm module to do the job. But yeah any help is appreciated :+1:

metaldart avatar Jun 14 '16 19:06 metaldart

@metaldart, so byTimestamp is actually a type defined in sort.go, which should be in the Takayoshi-Aoyagi/slack-dump repo. Are you building that along with main.go?

mbuciuman avatar Jun 15 '16 23:06 mbuciuman

How do you build both of them? I get an error with go build ./sort.go

zwhitchcox avatar Dec 27 '16 19:12 zwhitchcox