GithubHelp home page GithubHelp logo

mysamai / mysam Goto Github PK

View Code? Open in Web Editor NEW
621.0 35.0 65.0 4.32 MB

An open "intelligent" assistant for the web that can listen to you and learn.

Home Page: https://mysamai.com

License: GNU General Public License v3.0

JavaScript 86.05% HTML 13.95%

mysam's Introduction

Say hi, SAM

Greenkeeper badge

Build Status Dependency Status Download Status

Sam is an open-source, web-based "intelligent" assistant. It can listen to you, learn new actions and is extensible with JavaScript plugins running in any modern browser.

Watch this video to see what Sam can do:

MySam video

Getting started

mkdir mysam-test
cd mysam-test

Create the following index.html

<!DOCTYPE html>
<html>
<head>
  <title>MySam</title>
  <link href="https://fonts.googleapis.com/css?family=Muli:400,400italic" rel="stylesheet" type="text/css">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/styles.css">
</head>
<body>
  <div id="content" class="full"></div>
  <script src="https://unpkg.com/[email protected]/dist/mysam.js"></script>
  <script src="https://unpkg.com/[email protected]/dist/mysam-ui.js"></script>
  <script>
    // Initialize API (in the browser)
    const app = mysam();
    // Load the UI
    const sam = mysamUi(document.getElementById('content'), app);
  </script>
</body>
</html>

Then serve serve the folder from a webserver, e.g. with

npm i -g node-static
static

And visit it in a browser (here localhost:8080).

Writing a plugin

In the <script> section above add

// Add a new plugin to the list of learnable actions
sam.learn('myplugin', {
  description: 'Say hello from my plugin'
});

// Register the action to perform when a classificationc comes in
sam.action('myplugin', (el, classification = {}) => {
  // `el` is the main HTML element to render in
  // classification has information about what was said
  el.innerHTML = 'Hello from myplugin! You said: '
    + classification.text;
});

Usage with Webpack

mkdir mysam-test
cd mysam-test
npm init --yes

Add the following webpack.config.json:

const path = require('path');
const webpack = require('webpack');
const merge = require('webpack-merge');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');

const env = process.env.NODE_ENV || 'development';
const commons = {
  context: path.join(__dirname, 'src'),
  entry: './index.js',
  output: {
    filename: path.join('dist', 'app.js')
  },
  module: {
    rules: [{
      test: /\.jsx?$/,
      exclude: /node_modules\/(?!(feathers|mysam|mysam-ui))/,
      loader: 'babel-loader'
    }]
  },
  node: {
    fs: 'empty'
  }
};

const dev = {
  devtool: 'source-map',
  devServer: {
    port: 3030,
    contentBase: '.',
    compress: true
  }
};

const production = {
  devtool: 'cheap-module-source-map',
  output: {
    filename: path.join('dist', 'nina.js')
  },
  plugins: [
    new UglifyJSPlugin({
      compress: {
        warnings: false,
        screw_ie8: true
      },
      comments: false,
      sourceMap: false
    }),
    new webpack.DefinePlugin({
      'process.env.NODE_ENV': JSON.stringify('production')
    })
  ]
};

module.exports = merge(commons, env !== 'development' ? production : dev);

Install devDependencies

npm install babel-core babel-loader babel-polyfill babel-preset-es2015 babel-preset-react uglify-js uglifyjs-webpack-plugin webpack webpack-dev-server webpack-merge --save-dev

And main dependencies

npm install mysam@pre mysam-ui react react-dom --save

Add a start script to package.json:

"start": "webpack-dev-server",

And run npm start.

Coming soon!

Website and more in-depth documentation coming soon!

mysam's People

Contributors

daffl avatar gitter-badger avatar greenkeeper[bot] avatar ythecombinator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mysam's Issues

Missing files

Hi

I cloned the main repo and tested v0.1.1 but when running mysam, a alert comes up saying

"A Javascript error occured in the main process"

Uncaught Exception:
Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mysam/db-data/actions'
at Error (native)

and another one

Uncaught Exception:
Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mysam/db-data/configuration'
at Error (native)

Electron window still shows up, but the throbber spins indefinitely.

Thanks.
Jorge.

can't run on normal mode

it got crash (so far, i don't have any experience with electron, but it's seems to be electron is the problem here) as i tried to run mysam on server mode, it runs, but only showing the loading screen.

$ sudo mysam

bellow are the error logs:

sudo mysam 
Error: Command failed: /bin/sh -c npm ls --depth 0 --parseable -g
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! max depth reached: [email protected], required by undefined@undefined
npm ERR! not ok code 0

    at ChildProcess.exithandler (child_process.js:215:12)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:817:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)
Failed to get crash dump id.
Report Id: 

Another language

Hi @daffl !
Can i adapt mysam to another language? im my case the brazilian/portuguese, it will recognize?

thank you!

Rule and Variable Management

Great work! Thanks for your efforts.

I wonder if there is a way to unset the rules set mistakenly, list the rules, modify them.

Also listing the potential global variables would be great. For example Sam can't answer who am i. So I would like to say "You are {{myname}}". But I don't know which variable to use.

An in-range update of uglify-js is breaking the build 🚨

The devDependency uglify-js was updated from 3.5.2 to 3.5.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

uglify-js is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v3.5.3

 

Commits

The new version differs by 3 commits.

  • fa43768 v3.5.3
  • a74e600 mangle shadowed lambda under ie8 correctly (#3356)
  • 4b21526 Fix test expectation (#3357)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Can't click on UI?

Hi,

What version of node was this built with?

I tried to run this on Fedora and OS X Yosemite. It works when installing as a global package. However, when I get to the screen after inputing my name, I cannot click on anything. Also I tried Firefox and Chrome. I ran it in both server and regular mode with Electron.

I tried to run it in development mode but still the same UI problem. After running once and closing, restarting it gives me an image of a brain with neural network screen, can't go beyond that screen (that is probably a db problem?). At that point I have to reinstall the packages in order to get it to work again.

EDIT: Just for the record, I tried node v0.10.2 and v4.4.4, both work but still have the problems with the UI with both.

Any help on these problems?

Thank you,

An in-range update of webpack is breaking the build 🚨

The devDependency webpack was updated from 4.35.3 to 4.36.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v4.36.0

Features

  • SourceMapDevToolPlugin append option now supports the default placeholders in addition to [url]
  • Arrays in resolve and parser options (Rule and Loader API) support backreferences with "..." when overriding options.
Commits

The new version differs by 42 commits.

  • 95d21bb 4.36.0
  • aa1216c Merge pull request #9422 from webpack/feature/dot-dot-dot-merge
  • b3ec775 improve merging of resolve and parsing options
  • 53a5ae2 Merge pull request #9419 from vankop/remove-valid-jsdoc-rule
  • ab75240 Merge pull request #9413 from webpack/dependabot/npm_and_yarn/ajv-6.10.2
  • 0bdabf4 Merge pull request #9418 from webpack/dependabot/npm_and_yarn/eslint-plugin-jsdoc-15.5.2
  • f207cdc remove valid jsdoc rule in favour of eslint-plugin-jsdoc
  • 31333a6 chore(deps-dev): bump eslint-plugin-jsdoc from 15.3.9 to 15.5.2
  • 036adf0 Merge pull request #9417 from webpack/dependabot/npm_and_yarn/eslint-plugin-jest-22.8.0
  • 37d4480 Merge pull request #9411 from webpack/dependabot/npm_and_yarn/simple-git-1.121.0
  • ce2a183 chore(deps-dev): bump eslint-plugin-jest from 22.7.2 to 22.8.0
  • 0beeb7e Merge pull request #9391 from vankop/create-hash-typescript
  • bf1a24a #9391 resolve super call discussion
  • bd7d95b #9391 resolve discussions, AbstractMethodError
  • 4190638 chore(deps): bump ajv from 6.10.1 to 6.10.2

There are 42 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Roadmap to making "rework" the current

I couldn't even get the main branch to work, and had to get instructions from you on Twitter to use the very functional "rework" branch.

Is there a roadmap to moving that to main?

Happy to help if it's needed.

Missing lib/ folder

Hi.
First of all, sorry for being so invasive today.

When you clone the repo and try to test, lib/server is not found. In fact, it's not there.

(I had to copy it from the npm-created folder in /usr/lib/node_modules/mysam)

MySam plugins file

Hi! This is an awesome project!

Is very helpful if we can see all plugins created for Sam in an file or a session in README.md!

Thanks and great work!

Missing translation/voice recogniton/ability to choose language

Hi.

I noticed the app understands the language your computer is in.
For example, if I am on a chinese computer, I will not be able to speak english if I am not chinese.
However, this is a good thing if you speak the language your computer understands.

It's not annoying once everything is reconfigured, but maybe adding some languages templates would be great.

install failed

Hi,

Very keen to try this out but I encountered the following error when attempting to install

npm ERR! Darwin 15.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "mysam" "-g"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/forbes/.npm/_git-remotes/_templates --mirror ssh://[email protected]/jeresig/jquery.hotkeys.git /Users/forbes/.npm/_git-remotes/ssh-git-github-com-jeresig-jquery-hotkeys-git-1383c260
npm ERR! Cloning into bare repository '/Users/forbes/.npm/_git-remotes/ssh-git-github-com-jeresig-jquery-hotkeys-git-1383c260'...
npm ERR! Warning: Permanently added the RSA host key for IP address '192.30.252.130' to the list of known hosts.
npm ERR! Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.

Attempted to sudo npm install but encountered the same error

thanks

Cannot install - El Capitan, Node 6.2.1, npm 3.0.5, Homebrew 0.9.9

Here's the log:

npm ERR! git clone --template=/Users/MYNAME/.npm/_git-remotes/_templates --mirror git://github.com/bitovi/systemjs.git /Users/MYNAME/.npm/_git-remotes/git-github-com-bitovi-systemjs-git-0-16-6-bitovi-7-fc4337c5: Cloning into bare repository '/Users/MYNAME/.npm/_git-remotes/git-github-com-bitovi-systemjs-git-0-16-6-bitovi-7-fc4337c5'...
npm ERR! git clone --template=/Users/MYNAME/.npm/_git-remotes/_templates --mirror git://github.com/bitovi/systemjs.git /Users/MYNAME/.npm/_git-remotes/git-github-com-bitovi-systemjs-git-0-16-6-bitovi-7-fc4337c5: fatal: read error: Operation timed out
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mysam" "-g"
npm ERR! node v6.2.1
npm ERR! npm v3.10.5
npm ERR! code 128

npm ERR! Command failed: git clone --template=/Users/MYNAME/.npm/_git-remotes/_templates --mirror git://github.com/bitovi/systemjs.git /Users/MYNAME/.npm/_git-remotes/git-github-com-bitovi-systemjs-git-0-16-6-bitovi-7-fc4337c5
npm ERR! Cloning into bare repository '/Users/MYNAME/.npm/_git-remotes/git-github-com-bitovi-systemjs-git-0-16-6-bitovi-7-fc4337c5'...
npm ERR! fatal: read error: Operation timed out
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues


Thoughts guys?

app doesn start

After writting mysam at terminal the window appears and two Javascript error occured in the main process appear

Uncaught Exception:
Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mysam/db-data/actions'
at Error (native)

Uncaught Exception:
Error: ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mysam/db-data/configuration'
at Error (native)

after the app starts but it doesnt ask for the name as in demo video but it's infinitely waiting:

mysam_bug

installation issue on linux debian

This is the message I received:
npm ERR! not a package /tmp/npm-3335-k0Xd4QqO/github.com/jeresig/jquery.hotkeys.git
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/lodash'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/lodash']
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/mysam/node_modules/lodash' }
npm ERR! Error: ENOENT: no such file or directory, open '/tmp/npm-3335-k0Xd4QqO/github.com/jeresig/jquery.hotkeys.git-unpack/package.json'
npm ERR! at Error (native)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "mysam" "-g"
npm ERR! cwd /home/dimitris/downloads
npm ERR! node -v v4.2.1
npm ERR! npm -v 1.4.21
npm ERR! path /tmp/npm-3335-k0Xd4QqO/github.com/jeresig/jquery.hotkeys.git-unpack/package.json
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! tar.unpack untar error /root/.npm/uberproto/1.1.2/package.tgz
npm ERR! tar.unpack untar error /root/.npm/feathers-commons/0.2.8/package.tgz
npm ERR! tar.unpack untar error /root/.npm/rubberduck/1.0.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/primus/3.2.3/package.tgz
npm ERR! tar.unpack untar error /root/.npm/lodash/2.4.2/package.tgz
npm ERR! tar.unpack untar error /root/.npm/mkdirp/0.5.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/async/0.9.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/nedb/1.2.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/yauzl/2.3.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/express/4.13.3/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/feathers/node_modules/socket.io'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/feathers/node_modules/socket.io']
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/mysam/node_modules/feathers/node_modules/socket.io' }
npm ERR! tar.unpack untar error /root/.npm/primus-emitter/3.1.1/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/feathers-nedb/node_modules/feathers-errors/node_modules/lodash'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/feathers-nedb/node_modules/feathers-errors/node_modules/lodash']
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/mysam/node_modules/feathers-nedb/node_modules/feathers-errors/node_modules/lodash' }
npm ERR! tar.unpack untar error /root/.npm/iconv-lite/0.4.12/package.tgz
npm ERR! tar.unpack untar error /root/.npm/uberproto/1.1.2/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/natural-brain/node_modules/natural'
npm ERR! error rolling back at Error (native)
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/mysam/node_modules/natural-brain/node_modules/natural']
npm ERR! error rolling back errno: -39,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back syscall: 'rmdir',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/mysam/node_modules/natural-brain/node_modules/natural' }
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/myusername/downloads/npm-debug.log
npm ERR! not ok code 0

install with -g is a no-go in windows

Installing with -g in windows adds substantial bytes to the front of the pathname and risks exceeding the pathname length restriction in Windows. This is sometimes ok for Node.js apps but attempting to build a native module beyond the length limit is a problem. By the time you get into feathers' socket.io's engine.io's unicode parser your jumbo paths will get rejected by Visual Studio.

I was able to run mysam just fine by installing it locally to a short path. Specifically I was at c:\code\sam\. My recommended fix is to just update the installation instructions to warn windows users of the issue and workaround.

Mic issues

I was able to install on my MBP. However, I'm having issues with the mic. I disabled "Oversight" (it alerts me if anyone/apps tries to ear hustle), but the microphone is disabled even when I press "Press Ctrl + Space." The strike flashes. In other words, it cuts on and off and I'm not able to get to the next screen.

http://githubhepics.s3.amazonaws.com/help/mysamhelp1.png

Cannot install the project under an OS other than OS X

When I try with the npm :

C:\node.js\mysam>npm install mysam

> [email protected] postinstall C:\node.js\mysam\node_modules\mysam\node_modules\electron-prebuilt
> node install.js

-
> [email protected] install C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> [email protected] install C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]

> [email protected] install C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam\node_modules\mysam\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]

> [email protected] install C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam\node_modules\mysam\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:73:28)
npm WARN addRemoteGit     at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:76:29)
npm WARN addRemoteGit     at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:84:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  git://github.com/bitovi/systemjs.git#0.16.6-bitovi.7 resetting remote C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bitovi/systemjs.git C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff: undefined
npm ERR! git clone --template=C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bitovi/systemjs.git C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "mysam"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ENOGIT

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\node.js\mysam\npm-debug.log

C:\node.js\mysam>

And when I try with the respo:

C:\node.js\mysam2>npm install

> [email protected] install C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok

> [email protected] install C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild


C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\utf-8-validate
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]

> [email protected] install C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gy else (node  rebuild ) es\node-gyp\bin\node-gyp.js" rebuild -)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam2\node_modules\mysam-frontend\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]

> [email protected] install C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild


C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/Python27/python.exe", you can set the PYTHON env variable.
gyp ERR! stack     at failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:116:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:71:11
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:82:15)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\node.js\mysam2\node_modules\feathers\node_modules\socket.io\node_modules\socket.io-client\node_modules\engine.io-client\node_modules\ws\node_modules\bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]

> [email protected] postinstall C:\node.js\mysam2\node_modules\electron-prebuilt
> node install.js

npm WARN optional dep failed, continuing [email protected]
npm WARN addRemoteGit Error: not found: git
npm WARN addRemoteGit     at F (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:73:28)
npm WARN addRemoteGit     at E (C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:76:29)
npm WARN addRemoteGit     at C:\Program Files\nodejs\node_modules\npm\node_modules\which\which.js:84:16
npm WARN addRemoteGit     at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN addRemoteGit  git://github.com/bitovi/systemjs.git#0.16.6-bitovi.7 resetting remote C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff because of error: { [Error: not found: git] code: 'ENOGIT' }
npm ERR! git clone --template=C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bitovi/systemjs.git C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff: undefined
npm ERR! git clone --template=C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\_templates --mirror git://github.com/bitovi/systemjs.git C:\Users\Seb\AppData\Roaming\npm-cache\_git-remotes\git-github-com-bitovi-systemjs-git-bbacc7ff: undefined
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ENOGIT

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\node.js\mysam2\npm-debug.log

C:\node.js\mysam2>

Does not work in server mode in windows

I am not able to make work for checking What is the weather like in Berlin?

Is there any impact of below errors in installation?

E:>npm install mysam -g
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

[email protected] postinstall C:\Users\xyz\AppData\Roaming\npm\node_modules\mysam\node_modules\electron-prebuilt
node install.js

C:\Users\xyz\AppData\Roaming\npm\mysam -> C:\Users\xyz\AppData\Roaming\npm\node_modules\mysam\bin\mysam
[email protected] C:\Users\xyz\AppData\Roaming\npm\node_modules\mysam
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected])
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
, [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], socket.io@
1.4.8, [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected].
0, [email protected], [email protected], [email protected])

if i run >mysam --Develop, it shows some exceptions and javascript gets into chrome browser debugger

Potentially unhandled rejection [6] TypeError: Error loading "sam/[email protected]#view/stache/system" at
Error loading "sam/[email protected]#view/stache/system" from "sam/app" at http://localhost:9090/sam/app.js
Error loading "[email protected]#view/stache/system" at http://localhost:9090/node_modules/can/view/stache/system.js
$.buildFragment is not a function
at Object.$.extend.buildFragment (http://localhost:9090/node_modules/can/util/jquery/jquery.js:46:12)
at http://localhost:9090/node_modules/can/util/jquery/jquery.js:252:15
at http://localhost:9090/node_modules/can/util/jquery/jquery.js:268:4
at stealInstantiateResult.execute (http://localhost:9090/node_modules/steal/steal.js:5806:32)
at linkDynamicModule (http://localhost:9090/node_modules/steal/steal.js:3547:32)
at linkDynamicModule (http://localhost:9090/node_modules/steal/steal.js:3541:11)
at linkDynamicModule (http://localhost:9090/node_modules/steal/steal.js:3541:11)
at linkDynamicModule (http://localhost:9090/node_modules/steal/steal.js:3541:11)
at link (http://localhost:9090/node_modules/steal/steal.js:3407:11)
at Object.execute (http://localhost:9090/node_modules/steal/steal.js:3726:11)

Any help? What is that i am missing?

Thx

MySam plugins catalog

Given some facts like:

  • The great number of possibilities that MySan can achieve by plugins
  • The ease of creating new plugins and publishing them to npm
  • The growing popularity of this project

I'd bet that the number of MySam plugins will grow very fast. Maybe it would be cool to have a place to centralize them.

@thebergamo proposed in #3 the creation of a file or a section in the README and I think that this would be also important - but only for official (core-team developed) plugins - that's why I opened another issue instead of just commenting the other one.

Many tools in the node.js world have their own extensions catalog; e.g: automation tools, like gulp's plugins registry, preprocessors, like elm's catalog and so on.

Maybe now it's not a needing, but who knows in a near feature? If you don't have time to create one, I'd suggest, for now, include in the plugins creation guidelines instructions to any MySam plugin have a tag like mysam-plugin; e.g:

{
  "name": "mysam-myplugin",
  "main": "server",
  "mysam": {
    "client": "frontend",
    "styles": "styles.css"
  },
  "keywords": [
    "my-keyword-1",
    "my-keyword-2",
    "my-keyword-3",
    "mysam-plugin"
  ]
}

In short time it would at least allow you doing something like broccolijs does - which is linking to a npm seach-by-keyword result. In this case you would have a https://www.npmjs.com/browse/keyword/mysam-plugin link in the project's homepage.

In the long-term, you can use the idea of a special keyword in the package.json to create - or fork - something like Custom Elements - which would search for published packages with the mysam-plugin keyword and gather them in a beautiful and easy-to-publish registry.

BTW, I loved the project ❤️

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.