go-mtpfs
go-mtpfs copied to clipboard
cannot find package "github.com/hanwen/go-fuse/v2/fs"
Currently one cannot build go-mtpfs because of how go-fuse branches changed.
I have the same problem on ubuntu 18.04
you should be able to build it if you clone go-mtpfs, and build inside the dir, as it is using modules these days.
I executed "go build ./" inside the cloned repo:
main.go:15:2: cannot find package "github.com/hanwen/go-fuse/v2/fs" in any of:
/usr/lib/go-1.10/src/github.com/hanwen/go-fuse/v2/fs (from $GOROOT)
/home/anhofman/go/src/github.com/hanwen/go-fuse/v2/fs (from $GOPATH)
main.go:16:2: cannot find package "github.com/hanwen/go-fuse/v2/fuse" in any of:
/usr/lib/go-1.10/src/github.com/hanwen/go-fuse/v2/fuse (from $GOROOT)
/home/anhofman/go/src/github.com/hanwen/go-fuse/v2/fuse (from $GOPATH)
main.go:17:2: cannot find package "github.com/hanwen/go-mtpfs/fs" in any of:
/usr/lib/go-1.10/src/github.com/hanwen/go-mtpfs/fs (from $GOROOT)
/home/anhofman/go/src/github.com/hanwen/go-mtpfs/fs (from $GOPATH)
main.go:18:2: cannot find package "github.com/hanwen/go-mtpfs/mtp" in any of:
/usr/lib/go-1.10/src/github.com/hanwen/go-mtpfs/mtp (from $GOROOT)
/home/anhofman/go/src/github.com/hanwen/go-mtpfs/mtp (from $GOPATH)
I tried the compiled releases from xs4all, it successfully mounted but then got a lot of these errors when I tried to access folders with a lot of files:
2020/04/24 07:08:41 GetStorageInfo 10001: mtp: cannot run operation GetStorageInfo, device is not open 2020/04/24 07:08:43 GetObjectHandles failed: mtp: cannot run operation GetObjectHandles, device is not open
So I gave up on this.
You should use a Go version that supports.
On Fri, Apr 24, 2020 at 7:16 AM anhofmann [email protected] wrote:
I executed "go build ./" inside the cloned repo: main.go:15:2: cannot find package "github.com/hanwen/go-fuse/v2/fs" in any of: /usr/lib/go-1.10/src/github.com/hanwen/go-fuse/v2/fs (from $GOROOT) /home/anhofman/go/src/github.com/hanwen/go-fuse/v2/fs (from $GOPATH) main.go:16:2: cannot find package "github.com/hanwen/go-fuse/v2/fuse" in any of: /usr/lib/go-1.10/src/github.com/hanwen/go-fuse/v2/fuse (from $GOROOT) /home/anhofman/go/src/github.com/hanwen/go-fuse/v2/fuse (from $GOPATH) main.go:17:2: cannot find package "github.com/hanwen/go-mtpfs/fs" in any of: /usr/lib/go-1.10/src/github.com/hanwen/go-mtpfs/fs (from $GOROOT) /home/anhofman/go/src/github.com/hanwen/go-mtpfs/fs (from $GOPATH) main.go:18:2: cannot find package "github.com/hanwen/go-mtpfs/mtp" in any of: /usr/lib/go-1.10/src/github.com/hanwen/go-mtpfs/mtp (from $GOROOT) /home/anhofman/go/src/github.com/hanwen/go-mtpfs/mtp (from $GOPATH)
I tried the compiled releases from xs4all, it successfully mounted but then got a lot of these errors when I tried to access folders with a lot of files:
2020/04/24 07:08:41 GetStorageInfo 10001: mtp: cannot run operation GetStorageInfo, device is not open 2020/04/24 07:08:43 GetObjectHandles failed: mtp: cannot run operation GetObjectHandles, device is not open
So I gave up on this.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hanwen/go-mtpfs/issues/146#issuecomment-618806367, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAHWO3APBTVVEULI4A6QB3ROEOCHANCNFSM4K2DMUTA .
-- Han-Wen Nienhuys - [email protected] - http://www.xs4all.nl/~hanwen