danielgross / whatsapp-gpt

MIT License
3.07k stars 596 forks source link

no required module provides package #40

Closed AlexGZ888 closed 1 year ago

AlexGZ888 commented 1 year ago

Hello guys,

Totally noob so excuse me to ask in advance. I have been looking for hours and can't find how to successfully run the main.go I have the following error.

whatsapp-gpt-main/main.go:13:2: no required module provides package github.com/mattn/go-sqlite3: go.mod file not found in current directory or any parent directory; see 'go help modules'

Of course all the files including the go.mod are in the directory whatsapp-gpt-main. I have put this directory in my desktop so that might be the reason. I need to put it somewhere else ? In a dedicated "go folder"...?

Any help would be much appreciated :)

AlexGZ888 commented 1 year ago

Ok well I solved my issue by launching the go run command from the directory WhatsApp-gpt-main...