go-mtpfs icon indicating copy to clipboard operation
go-mtpfs copied to clipboard

cannot find package "github.com/hanwen/go-fuse/v2/fs"

Open fff7d1bc opened this issue 5 years ago • 4 comments

Currently one cannot build go-mtpfs because of how go-fuse branches changed.

fff7d1bc avatar Feb 24 '20 08:02 fff7d1bc

I have the same problem on ubuntu 18.04

anhofmann avatar Apr 23 '20 15:04 anhofmann

you should be able to build it if you clone go-mtpfs, and build inside the dir, as it is using modules these days.

hanwen avatar Apr 23 '20 17:04 hanwen

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.

anhofmann avatar Apr 24 '20 05:04 anhofmann

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

hanwen avatar Apr 24 '20 12:04 hanwen