===== Short version:
Using
require("luasql.sqlite3")
on its own doesn't work:
[ all PS consoles shown are normal not administrative]
PS C:\Windows\system32> lua
Lua 5.3.4 Copyright (C) 1994-2017 Lua.org, PUC-Rio
> require("luasql.sqlite3")
error loading module 'luasql.sqlite3' from file 'c:\puc\lua\lib\lua\5.3\luasql\sqlite3.dll':
The specified procedure could not be found.
stack traceback:
[C]: in ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?
>
If the same require statement is run from Scite, an error box appears as well as the usual error message:
lua.exe - Entry Point Not Found
The procedure entry point sqlite3_busy_timeout could not be located in the dynamic link library
C:\puc\lua\lib\lua\5.3\luasql\sqlite3.dll
If lsqlite3 is invoked first, luasql.sqlite3 works:
The code above also works when invoked from Scite.
Knowing that, luasql.sqlite3 is now usable.
===== Long version:
Platform: Windows 10 Pro, x64 Build 16299
Lua 5.3.4 and luarocks 2.4.3 installed using Thijs Schreier's luawinmulti from https://github.com/Tieske/luawinmulti
sqlite3.exe and .dll in C:\sqlite3 and on the PATH
As preliminary invocation of lsqlite3 gets round the problem, the short term issue has disappeared. It would, however, be good to know:
a) if there is a fault in my setup that can be corrected;
b) if something is not working as it should in the installation or execution of luasql.sqlite3.
===== Short version: Using
require("luasql.sqlite3")
on its own doesn't work: [ all PS consoles shown are normal not administrative]
If the same require statement is run from Scite, an error box appears as well as the usual error message:
If lsqlite3 is invoked first, luasql.sqlite3 works:
The code above also works when invoked from Scite.
Knowing that, luasql.sqlite3 is now usable.
===== Long version: Platform: Windows 10 Pro, x64 Build 16299 Lua 5.3.4 and luarocks 2.4.3 installed using Thijs Schreier's luawinmulti from https://github.com/Tieske/luawinmulti
sqlite3.exe and .dll in C:\sqlite3 and on the PATH
Installed rocks:
luasql-sqlite3 comes from https://luarocks.org/modules/tomasguisasola/luasql-sqlite3/2.3.5-1
PATH variables are:
As preliminary invocation of lsqlite3 gets round the problem, the short term issue has disappeared. It would, however, be good to know: a) if there is a fault in my setup that can be corrected; b) if something is not working as it should in the installation or execution of luasql.sqlite3.
Advice would be very welcome.
Philip