GithubHelp home page GithubHelp logo

Comments (13)

akasha1618 avatar akasha1618 commented on July 30, 2024 1

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:

https://ibb.co/px3030F

from botfront.

znat avatar znat commented on July 30, 2024

from botfront.

xScorpionx avatar xScorpionx commented on July 30, 2024

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.

znat avatar znat commented on July 30, 2024

Looks like a bug on Windows

from botfront.

znat avatar znat commented on July 30, 2024

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.

akasha1618 avatar akasha1618 commented on July 30, 2024

@znat how can I solve this?

from botfront.

znat avatar znat commented on July 30, 2024

Theres a PR open (#121) , the fix will be released soon

from botfront.

xScorpionx avatar xScorpionx commented on July 30, 2024

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.

znat avatar znat commented on July 30, 2024

@xScorpionx should be fixed with latest release. Can you please confirm?

from botfront.

xScorpionx avatar xScorpionx commented on July 30, 2024

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.

ChristianStornowski avatar ChristianStornowski commented on July 30, 2024

@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.

LatteDev avatar LatteDev commented on July 30, 2024

@znat @xScorpionx

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.

bilginkilic avatar bilginkilic commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.