Win10 and win2012 cannot create a database
I manually created auth.db under the Data folder and still got Failed to create database. Neither the administrator can run cmd nor the powershell administrator can run it.
Might be that Windows is missing SQLite drivers by default. You can try printing what the error is by modifying the code.
可能是 Windows 默认缺少 SQLite 驱动程序。 您可以尝试通过修改代码来打印错误是什么。
I'll try it, thx
I have already configured sqlite3 still not working
Print the error. See what the error is
https://github.com/ChatGPT-Hackers/ChatGPT-API-server/commit/41250d1d74d461241fdb7a816c78cec823b37619
Print the error. See what the error is
Solved, but weird. The version of Releases does not work properly. Compiled locally works fine.
There is something wrong with the workflow. Not sure exactly what
Failed to create database: error creating table: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub。I downloaded 0.3.0 the error shown
The command I use to compile locally: go build -ldflags "-s -w -extldflags '-static'". The compiled file is no problem
It works without any flags for me. It might be just because CGO_ENABLED=0