[GH-ISSUE #22] cannto find package #123

Closed
opened 2026-03-01 17:37:40 +03:00 by kerem · 4 comments
Owner

Originally created by @cyghtinc on GitHub (May 27, 2022).
Original GitHub issue: https://github.com/alpkeskin/mosint/issues/22

Hi,

How can I resolve this issue: (tested on ubuntu18)

main.go:17:2: cannot find package "github.com/dimiro1/banner" in any of:
/usr/lib/go-1.10/src/github.com/dimiro1/banner (from $GOROOT)
/home/forensics/go/src/github.com/dimiro1/banner (from $GOPATH)
main.go:18:2: cannot find package "github.com/fatih/color" in any of:
/usr/lib/go-1.10/src/github.com/fatih/color (from $GOROOT)
/home/forensics/go/src/github.com/fatih/color (from $GOPATH)
main.go:19:2: cannot find package "github.com/mattn/go-colorable" in any of:
/usr/lib/go-1.10/src/github.com/mattn/go-colorable (from $GOROOT)
/home/forensics/go/src/github.com/mattn/go-colorable (from $GOPATH)
main.go:20:2: cannot find package "github.com/olekukonko/tablewriter" in any of:
/usr/lib/go-1.10/src/github.com/olekukonko/tablewriter (from $GOROOT)
/home/forensics/go/src/github.com/olekukonko/tablewriter (from $GOPATH)
main.go:21:2: cannot find package "github.com/schollz/progressbar/v3" in any of:
/usr/lib/go-1.10/src/github.com/schollz/progressbar/v3 (from $GOROOT)
/home/forensics/go/src/github.com/schollz/progressbar/v3 (from $GOPATH)
main.go:12:2: cannot find package "main/modules" in any of:
/usr/lib/go-1.10/src/main/modules (from $GOROOT)
/home/forensics/go/src/main/modules (from $GOPATH)

Originally created by @cyghtinc on GitHub (May 27, 2022). Original GitHub issue: https://github.com/alpkeskin/mosint/issues/22 Hi, How can I resolve this issue: (tested on ubuntu18) main.go:17:2: cannot find package "github.com/dimiro1/banner" in any of: /usr/lib/go-1.10/src/github.com/dimiro1/banner (from $GOROOT) /home/forensics/go/src/github.com/dimiro1/banner (from $GOPATH) main.go:18:2: cannot find package "github.com/fatih/color" in any of: /usr/lib/go-1.10/src/github.com/fatih/color (from $GOROOT) /home/forensics/go/src/github.com/fatih/color (from $GOPATH) main.go:19:2: cannot find package "github.com/mattn/go-colorable" in any of: /usr/lib/go-1.10/src/github.com/mattn/go-colorable (from $GOROOT) /home/forensics/go/src/github.com/mattn/go-colorable (from $GOPATH) main.go:20:2: cannot find package "github.com/olekukonko/tablewriter" in any of: /usr/lib/go-1.10/src/github.com/olekukonko/tablewriter (from $GOROOT) /home/forensics/go/src/github.com/olekukonko/tablewriter (from $GOPATH) main.go:21:2: cannot find package "github.com/schollz/progressbar/v3" in any of: /usr/lib/go-1.10/src/github.com/schollz/progressbar/v3 (from $GOROOT) /home/forensics/go/src/github.com/schollz/progressbar/v3 (from $GOPATH) main.go:12:2: cannot find package "main/modules" in any of: /usr/lib/go-1.10/src/main/modules (from $GOROOT) /home/forensics/go/src/main/modules (from $GOPATH)
kerem closed this issue 2026-03-01 17:37:41 +03:00
Author
Owner

@alpkeskin commented on GitHub (May 30, 2022):

Can you run go mod tidy ?

<!-- gh-comment-id:1141012556 --> @alpkeskin commented on GitHub (May 30, 2022): Can you run `go mod tidy` ?
Author
Owner

@cyghtinc commented on GitHub (May 30, 2022):

Hi,

ofcourse

I run go mod tidy
and I got:
"unknown subcommand"
I had go version 1.10

so I installed the latest version 1.18.2
and run it again:
go mod tidy

then I run the command:
go run main.go -e example@domain.com -all

and I got the following error:

| '_ ` _ \ / _ \ / | | | | ' \ | |
| | | | | | | () | _ \ | | | | | | | |

|| || |_| _
/ |/ || || || __|

v2.1
https://github.com/alpkeskin/
Now: Monday, 30 May 2022

mosinting 20% |███████ | (20/100, 10 it/s) [2s:8s]Traceback (most recent call last):
File "modules/SocialScan.py", line 5, in
from socialscan.util import Platforms, sync_execute_queries
ModuleNotFoundError: No module named 'socialscan'
mosinting 28% |█████████ | (28/100, 10 it/s) [2s:7s]Traceback (most recent call last):
File "modules/Holehe.py", line 6, in
import trio
ModuleNotFoundError: No module named 'trio'
mosinting 36% |████████████ | (36/100, 20 it/s) [2s:3s]panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main/modules.doRequest({0xc001b664e0, 0x52}, {0xa6742a, 0x7})
/home/forensics/Desktop/mosint/modules/ThreatCrowd.go:28 +0x670
main/modules.RelatedDomains(...)
/home/forensics/Desktop/mosint/modules/ThreatCrowd.go:52
main.main()
/home/forensics/Desktop/mosint/main.go:263 +0xc2b
exit status 2

<!-- gh-comment-id:1141419131 --> @cyghtinc commented on GitHub (May 30, 2022): Hi, ofcourse I run go mod tidy and I got: "unknown subcommand" I had go version 1.10 so I installed the latest version 1.18.2 and run it again: go mod tidy then I run the command: go run main.go -e example@domain.com -all and I got the following error: | '_ ` _ \ / _ \ / __| | | | '_ \ | __| | | | | | | | (_) | \__ \ | | | | | | | |_ |_| |_| |_| \___/ |___/ |_| |_| |_| \__| v2.1 https://github.com/alpkeskin/ Now: Monday, 30 May 2022 mosinting 20% |███████ | (20/100, 10 it/s) [2s:8s]Traceback (most recent call last): File "modules/SocialScan.py", line 5, in <module> from socialscan.util import Platforms, sync_execute_queries ModuleNotFoundError: No module named 'socialscan' mosinting 28% |█████████ | (28/100, 10 it/s) [2s:7s]Traceback (most recent call last): File "modules/Holehe.py", line 6, in <module> import trio ModuleNotFoundError: No module named 'trio' mosinting 36% |████████████ | (36/100, 20 it/s) [2s:3s]panic: invalid character '<' looking for beginning of value goroutine 1 [running]: main/modules.doRequest({0xc001b664e0, 0x52}, {0xa6742a, 0x7}) /home/forensics/Desktop/mosint/modules/ThreatCrowd.go:28 +0x670 main/modules.RelatedDomains(...) /home/forensics/Desktop/mosint/modules/ThreatCrowd.go:52 main.main() /home/forensics/Desktop/mosint/main.go:263 +0xc2b exit status 2
Author
Owner

@B1gM8c commented on GitHub (Jul 4, 2022):

The same error:

main/modules.doRequest({0xc001c491d0, 0x45}, {0xa64dfc, 0x6})
        /home/fancypig/Desktop/mosint/modules/ThreatCrowd.go:31 +0x705
main/modules.RelatedEmails({0x7fffb91223c5?, 0xd?})
        /home/fancypig/Desktop/mosint/modules/ThreatCrowd.go:59 +0x65
main.main()
        /home/fancypig/Desktop/mosint/main.go:261 +0xbcd
exit status 2
<!-- gh-comment-id:1173322774 --> @B1gM8c commented on GitHub (Jul 4, 2022): The same error: ``` main/modules.doRequest({0xc001c491d0, 0x45}, {0xa64dfc, 0x6}) /home/fancypig/Desktop/mosint/modules/ThreatCrowd.go:31 +0x705 main/modules.RelatedEmails({0x7fffb91223c5?, 0xd?}) /home/fancypig/Desktop/mosint/modules/ThreatCrowd.go:59 +0x65 main.main() /home/fancypig/Desktop/mosint/main.go:261 +0xbcd exit status 2 ```
Author
Owner

@alpkeskin commented on GitHub (Oct 18, 2022):

Hi, new version released 🚀

<!-- gh-comment-id:1282211539 --> @alpkeskin commented on GitHub (Oct 18, 2022): Hi, new version released 🚀
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mosint#123
No description provided.