Comments (13)
Hello ! The error stil continue...I've uninstall botfront and installed again to get the latest version and the error is still here..I got an warning message "unsupported platform" when I've installed the package:
from botfront.
from botfront.
No, because when I try to create it, this appears to me.
botfront init
? The project will be created in a subdirectory. How do you want to name it? chat_bot
{ [Error: ENOENT: no such file or directory, access 'D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template']
errno: -4058,
code: 'ENOENT',
syscall: 'access',
path:
'D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template' }
{ Error: ENOENT: no such file or directory, open 'D:\Chatbot\chat_bot.botfront\docker-compose.yml'
at Object.openSync (fs.js:443:3)
at Proxy.readFileSync (fs.js:343:35)
at getComposeFile (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\src\utils.js:154:29)
at getServices (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\src\utils.js:158:22)
at getMissingImgs (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\src\utils.js:168:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'D:\Chatbot\chat_bot\.botfront\docker-compose.yml' }
from botfront.
Looks like a bug on Windows
from botfront.
For some reason, D:\
seems to be prepended to the path:
D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template'
Any idea why would that happen?
from botfront.
@znat how can I solve this?
from botfront.
Theres a PR open (#121) , the fix will be released soon
from botfront.
For some reason,
D:\
seems to be prepended to the path:D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template'
Any idea why would that happen?
Because my project is on local disk D:
from botfront.
@xScorpionx should be fixed with latest release. Can you please confirm?
from botfront.
The error continues:
Welcome to Botfront! │
│ version: 0.15.1
? What do you want to do? Create a new project
? The project will be created in a subdirectory. How do you want to name it? botfront
{ [Error: ENOENT: no such file or directory, access 'D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template']
errno: -4058,
code: 'ENOENT',
syscall: 'access',
path:
'D:\C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\project-template' }
{ Error: ENOENT: no such file or directory, open 'D:\Chatbot\botfront.botfront\docker-compose.yml'
at Object.openSync (fs.js:443:3)
at Proxy.readFileSync (fs.js:343:35)
at getComposeFile (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\src\utils.js:154:29)
at getServices (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront\src\utils.js:158:22)
at getMissingImgs (C:\Users\personone\AppData\Roaming\npm\node_modules\botfront
\src\utils.js:168:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'D:\Chatbot\botfront\.botfront\docker-compose.yml' }
from botfront.
@akasha1618 this "unsupported platform" warning is totally fine. Because you can't use fsevents under Windows neither Linux and this has nothing todo with the database connection problem.
I also have this database connection with current Docker for Windows and botfront.
I used npm install -g botfront and created a new project with the assistant.
from botfront.
botfront-mongo | 2019-07-14T16:44:07.941+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563122647:941053][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563122647:941053][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists
I have the same problem when I use docker4windows.
And I think the problem is in the mongonDB container.
■causes:
Firstly,look at docker-compose.yml in borfront project folder,
you will find,
volumes:
- ./botfront-db:/data/db
this means mongodb service expose its folder /data/db from container to host(windows)
Secondly, in docker4windows,when you expose one folder from container to host(Windows),
all the files in this folder will have 755 permission in the container,
And you CAN NOT change the permission,even you use root in the container.
this means same program(like mongodb?) cannot write data into these files.
※SO,You will see the [WiredTiger error] on this comment top
■Solution:
Solution1:
Delete the expose from mongodb service in .botfront/docker-compose-template.yml
volumes:
- ./botfront-db:/data/db
But when you down botfront, all the data store in mongodb will go away.
Solution2: ※need add code to botfront
1)Delete the expose from mongodb service in .botfront/docker-compose-template.yml
2)Add a expose folder to store db dump.(there is no problem with the write permission on folder)
3)when botfront down,maybe we can make botfront to get the db dump,and copy to the folder in step2.
4)when botfront up,make botfront to READ dump file ,and restore db data
https://stackoverflow.com/questions/42912755/how-to-create-a-db-for-mongodb-container-on-start-up
from botfront.
When i say botfron init it asks me to select which program I say google chrome and then i get this error.
url:file:///XXX/AppData/Roaming/npm/node_modules/botfront/bin/botfront
#!/usr/bin/env node
require = require('esm')(module /*, options*/);
require('../src/cli');
why???
ps:
windows 10
docker is running
from botfront.
Related Issues (20)
- spacy 3.0 support
- Entity annotation for сyrillic doesn't work HOT 1
- Botfront Platform Integration in CRM HOT 1
- Cannot open SLOTS in DIALOG HOT 1
- Lookup Tables
- There is no box for try out chatbot! HOT 3
- can not select chinese word and set entity
- Train botfront export with rasa fails HOT 1
- Training button is disabled HOT 3
- Training doesn't complete HOT 1
- slot validation message doesn't fire
- Botfront isn't opening on root URL HOT 2
- 1
- root_url is written to death
- Rasa For Botfront Evaluation Error
- Cannot train model: string indices must be integers HOT 21
- possible bug in botfront cli
- Custom action Module not found HOT 1
- Weird rasa crash with a specific time dimension (Duckling) HOT 2
- Botfront does not support followup key word? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botfront.