Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't compile !! cannot find package #1

Open
marjanj opened this issue Nov 21, 2017 · 3 comments
Open

can't compile !! cannot find package #1

marjanj opened this issue Nov 21, 2017 · 3 comments

Comments

@marjanj
Copy link

marjanj commented Nov 21, 2017

hi, i try to run and compile

=============

C:\test>go run GoBot.go
GoBot.go:4:2: cannot find package "GoBot2/components" in any of:
C:\Go\src\GoBot2\components (from $GOROOT)
($GOPATH not set)

=============
C:\test>go build GoBot.go
GoBot.go:4:2: cannot find package "GoBot2/components" in any of:
C:\Go\src\GoBot2\components (from $GOROOT)
($GOPATH not set)

=============
what can i do now ?
how can i fix it ?

@marjanj marjanj changed the title can't compile !! can't compile !! cannot find package Nov 21, 2017
@marjanj
Copy link
Author

marjanj commented Nov 22, 2017

i download all package u used and made directory !

github.com/NebulousLabs/go-upnp
golang.org/x/sys/windows/registry
github.com/AllenDang/w32
github.com/atotto/clipboard
github.com/StackExchange/wmi

but still got error.
http://prntscr.com/hdpk2f

@0xp3p3
Copy link

0xp3p3 commented Apr 10, 2018

it seems, it is the environment directory issue.

@gali313
Copy link

gali313 commented Aug 5, 2018

i have error too

$ go build -o GoBot.exe -ldflags "-H windowsgui" "C:\GoBot2\GoBot.go"
C:\Go\src\GoBot2\components\ScreenCapture.go:19:2: non-standard import "github.com/AllenDang/w32" in standard package "GoBot2/components"

was replace w32 from here

https://github.com/TheTitanrain/w32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants