Closed jsalwen closed 6 years ago
@elliott-beach @slvnperron any suggestions?
@jsalwen Which version of node are you using? SQLite is broken on many versions / OS. SQLite works well under node version 8.0
for darwin x86_64
, perhaps worth trying 8.0 ?
I am thinking we should remove SQLite as a Botpress dependency and make the driver swappable, i.e. have a botpress-db-sqlite
and botpress-db-postgres
module instead.
@slvnperron I tried node versions 7.10.1
and 8.9.3
. What version of 8.x
are you using?
@slvnperron I updated sqlite3 to ^3.1.13
in my local botpress
, and it seemed to fix it.
There was a PR to fix the node-pre-gyp
issue with not passing parameters.. https://github.com/mapbox/node-pre-gyp/pull/301
It was an issue with newer versions of npm
: https://github.com/mapbox/node-pre-gyp/pull/301/files#diff-180360612c6b8c4ed830919bbb4dd459R31
I am no longer having issues starting with version 1.1.11
with sqlite3 version 3.1.13
@jsalwen Could you tell me where I can change the sqlite3 to ^3.1.13? I can't find my botpress folder at the global environment in my Mac..
@saitai0802 you can install the latest version of Botpress. The current version on npm is 1.1.12
so it will have the updated version of sqlite3
npm update -g botpress
@jsalwen Thank you for your reply!
When I run the npm install -g botpress
installation command, this below line kept popping non-stop:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/lib/node_modules/botpress/node_modules/sqlite3/.node-gyp/8.9.4"
After I terminate that installation then run
npm update -g botpress
botpress init
It shows up installation error then terminated my installation.. do you have any idea what happened?
npm ERR! path /vagrant/botpress-sandbox/myproject/node_modules/sqlite3/node_modules/verror/node_modules/assert-plus/package.json.1217345269 npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/vagrant/botpress-sandbox/myproject/node_modules/sqlite3/node_modules/verror/node_modules/assert-plus/package.json.1217345269' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
Seems the problem is lots of people can't even install sqlite3 correctly... https://github.com/mapbox/node-sqlite3/issues/866 If there any workaround for case?
@saitai0802 it happens to me a few days back. I try above solution as well but still, the problem persists. This is what I did to solve:
npm outdated
inside the project folder (will show old version even already run command npm update -g botpress
)npm update
inside the folder will solve the issues for me. Since issue seems to be solved, closing this.
Even after running, npm update -g botpress
, I'm getting the issue. Following the previous git thread, I tried uninstalling and reinstalling sql as well. Then I read this thread and it seemed that all we had to do was update botpress. First time using botpress. Just to be clear, right now I've done the following:
First thing
cd
into it.It will say the module was successfully installed, but I can't go onto local host!
Here is the error after botpress install messenger
[botpress] please wait, we are trying to install your new modules...
[botpress] Installing modules: botpress-messenger
[botpress] ERR npm
[botpress] ERR WARN react-codemirror@1.0.0 requires a peer of react@>=15.5 <16 but none is installed. You must install peer dependencies yourself.
npm WARN react-codemirror@1.0.0 requires a peer of react-dom@>=15.5 <16 but none is installed. You must install peer dependencies yourself.
npm WARN react-jsonschema-form@0.49.0 requires a peer of react@^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN
[botpress] ERR react-player@0.18.0 requires a peer of react@* but none is installed. You must install peer dependencies yourself.
npm WARN react-audio-player@0.5.0 requires a peer of react@15.x but none is installed. You must install peer dependencies yourself.
npm
[botpress] ERR WARN react-audio-player@0.5.0 requires a peer of react-dom@15.x but none is installed. You must install peer dependencies yourself.
npm WARN
[botpress] ERR test@0.0.1 No description
npm WARN
[botpress] ERR test@0.0.1 No repository field.
npm WARN
[botpress] ERR test@0.0.1 license should be a valid SPDX license expression
[botpress] ERR
[botpress] + botpress-messenger@2.2.11
added 7 packages in 5.357s
[botpress] OK Modules successfully installed
Here is what happens when i try to bp start
[botpress] OK Modules successfully installed
-MacBook-Pro:test gddh$ bp start
14:08:37 - info: Starting botpress version 1.1.13
14:08:37 - verbose: [UMM] Enabled for facebook
14:08:37 - info: Loaded botpress-messenger, version 2.2.11
14:08:37 - verbose: [UMM] Enabled for web
14:08:37 - info: Loaded botpress-web, version 1.2.3
14:08:37 - info: Loaded 2 modules
14:08:37 - debug: Loading middleware: UMM.instrumentation
14:08:37 - debug: Loading middleware: hear
14:08:37 - debug: Loading middleware: conversations
14:08:37 - debug: Loading middleware: messenger.sendMessages
14:08:37 - debug: Loading middleware: web.sendMessages
14:08:37 - debug: Loading middleware: fallback
14:08:37 - info: [notification::botpress] botpress-messenger.config.yml has been created, fill it
14:08:37 - info: Bot launched. Visit: http://localhost:3000
14:08:37 - warn: [botpress-messenger] Configuration is incomplete, applicationID needs to be defined. See "./botpress-messenger.config.yml".
14:08:37 - warn: [botpress-messenger] Configuration is incomplete, accessToken needs to be defined. See "./botpress-messenger.config.yml".
14:08:37 - warn: [botpress-messenger] Configuration is incomplete, appSecret needs to be defined. See "./botpress-messenger.config.yml".
14:08:37 - warn: [botpress-messenger] Configuration is incomplete, hostname needs to be defined. See "./botpress-messenger.config.yml".
14:08:37 - error: [notification::botpress] Error updating Messenger App. Please see logs for details.```
I am no longer able to get Botpress to run. In order to submit PR botpress/botpress#309 using
async
/await
, I updated nodejs. Previously, I had a much older version.bp start
But is I try to install
botpress-messenger
orbotpress-slack
, I get the sqlite3 error see https://github.com/botpress/v12/issues/120At this point, nothing works. I can't run
bp start
The root of this appears to be related to sqlite3, but it is an issue for botpress, so I think we need to find a fix. It is looking like a show stopper for me.
I completely uninstalled node and tried a couple of different installs, but I am getting the same issues.
7.10.1
and8.9.3
Please also fill in these fields:
Botpress version:
1.1.10