Not found: "adapter.js": "kurento-alvar" in bower.json of kurento-tutorial-js Hello World 5.1.0

1,891 views
Skip to first unread message

tbuc...@kinnor.com

unread,
Feb 5, 2015, 8:18:55 PM2/5/15
to kur...@googlegroups.com
This is similar to the problem I saw with 5.1.0 kurento-tutorial-java Hello World, with the added weirdness of the line referencing "kurento-alvar". I open this as it refers to a different demo.

A clean Ubuntu Linux 14.04 Desktop installation under Parallels on a Macbook Pro.

Followed instructions for downloading and running KMS from: 

Followed instructions for downloading and running Hello World JS example from:

This installed the 5.1.0 release.

bower install  ends with the error:
  bower ENORESTARGET Tag/branch current-alvar does not exist

The subject field here suggests, bower.son in this project includes the line in "dependencies":
  "adapter.js": "kurento-alvar",

Replacing "kurento-alvar" in bower.son with "*" as found in 5.0.3 release; bower install completes without error. Opening 
in Firefox on the same box Web Console shows:

Clicking Start produces:
  ReferenceError: getUserMedia is not defined

The MagicMirror JS has this same problem.

The 5.0.3 release displays the the adapter.js 404 error as well.

Suggestions? 

Thanks!

-Tom

Mark Hassman

unread,
Feb 5, 2015, 8:23:34 PM2/5/15
to kur...@googlegroups.com
<html>
<head>


From: kur...@googlegroups.com [mailto:kur...@googlegroups.com] On Behalf Of tbuc...@kinnor.com
Sent: Thursday, February 05, 2015 8:19 PM
To: kur...@googlegroups.com
Subject: [kurento-public] Not found: "adapter.js": "kurento-alvar" in bower.json of kurento-tutorial-js Hello World 5.1.0

--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tzafrir Rehan

unread,
Feb 5, 2015, 8:24:43 PM2/5/15
to kur...@googlegroups.com
WebRTC moved github repos around, I believe the new location is https://cdn.rawgit.com/webrtc/adapter/master/adapter.js

Tzafrir Rehan

unread,
Feb 5, 2015, 8:35:30 PM2/5/15
to kur...@googlegroups.com
Make that https://rawgit.com/webrtc/adapter/master/adapter.js , the cdn. version seems to be cached forever

tbuc...@kinnor.com

unread,
Feb 5, 2015, 9:13:10 PM2/5/15
to kur...@googlegroups.com
Thanks guys! Works perfectly. 

-Tom

Ivan Gracia

unread,
Feb 6, 2015, 4:01:27 AM2/6/15
to kur...@googlegroups.com
Sorry guys, we realised that the file was moved a couple of days ago. We will update the tutorials and demos soon! In the meantime, please use the fix proposed in this thread.

Cheers,

--

pir...@gmail.com

unread,
Feb 6, 2015, 4:37:48 AM2/6/15
to kur...@googlegroups.com
As Ivan said, now adapter.js is hosted in it's own GitHub repo and
Bower registry has been updated to point to it. Since in this new repo
adapter.js is at the root of the repository, the new path on the
script tags has changed from
bower_components/adapter.js/samples/web/js/adapter.js to
bower_components/adapter.js/adapter.js. We'll update it on our demos
and tutorials in the next days.
--
"Si quieres viajar alrededor del mundo y ser invitado a hablar en un
monton de sitios diferentes, simplemente escribe un sistema operativo
Unix."
– Linus Tordvals, creador del sistema operativo Linux

Tom Buchler

unread,
Feb 6, 2015, 9:52:02 AM2/6/15
to kur...@googlegroups.com
Ivan,
That will take care of one issue: the workaround of editing the index.html file.

The other problem remains that the various bower.json files scattered around the various projects that have the line:
  "adapter.js": "kurento-alvar" or "adapter.js": "kurento-chroma"
which causes the builds to fail.

-Tom
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/jsi1aZ20xXw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.

Ivan Gracia

unread,
Feb 6, 2015, 10:11:02 AM2/6/15
to kur...@googlegroups.com
Yeah, we are taking care of that too. We had a script that updated the version numbers for us, and has caused havoc in our bower files. We´ll fix that soon, sorry or the trouble!

In the meantime, you can just change that for 
"adapter.js": "*",
"kurento-alvar": "develop",

That should do. Remember to set kurento-alvar to whatever demo you are running. 

Once again, sorry for the trouble!

henry...@umbocv.com

unread,
Feb 9, 2015, 6:06:12 AM2/9/15
to kur...@googlegroups.com
Hi igracia,

I'm having similiar issue with node.js Hello Word example where it's kurento-chroma instead of kurento-alvar.
My question: To solve this, does it require a patch from you guys or is there a workaround?

Because if you see what I did below, bower is complaining it's not able to find the kurento-chroma package
after I edited those two lines (as confirmed with bower search).   Perhaps it's a simple config....

Thanks!

ubuntu@tegra-ubuntu:~/kurento-tutorial-node/kurento-hello-world$ cat static/bower.json
{
  "name": "kurento-hello-world",
  "version": "5.1.0",
  "description": "Kurento Browser JavaScript Tutorial 1",
  "authors": [
    "Kurento <in...@kurento.org>"
  ],
  "main": "index.html",
  "moduleType": [
    "globals"
  ],
  "license": "LGPL",
  "homepage": "http://www.kurento.org/",
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "bootstrap": "~3.3.0",
    "ekko-lightbox": "~3.1.4",
    "adapter.js": "*",
    "kurento-chroma": "develop",
    "kurento-utils": "5.1.0"
  }
}
ubuntu@tegra-ubuntu:~/kurento-tutorial-node/kurento-hello-world$ npm install

> w...@0.4.32 install /home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/kurento-jsonrpc/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/kurento-jsonrpc/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/kurento-jsonrpc/node_modules/ws/build'

> w...@0.4.32 install /home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/reconnect-ws/node_modules/websocket-stream/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/reconnect-ws/node_modules/websocket-stream/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/home/ubuntu/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-client/node_modules/reconnect-ws/node_modules/websocket-stream/node_modules/ws/build'
|
> kurento-h...@5.1.0 postinstall /home/ubuntu/kurento-tutorial-node/kurento-hello-world
> cd static && bower install

bower adapter.js#*          not-cached git://github.com/GoogleChrome/webrtc.git#*
bower adapter.js#*             resolve git://github.com/GoogleChrome/webrtc.git#*
bower bootstrap#~3.3.0          cached git://github.com/twbs/bootstrap.git#3.3.2
bower bootstrap#~3.3.0        validate 3.3.2 against git://github.com/twbs/bootstrap.git#~3.3.0
bower ekko-lightbox#~3.1.4      cached git://github.com/ashleydw/lightbox.git#3.1.5
bower ekko-lightbox#~3.1.4    validate 3.1.5 against git://github.com/ashleydw/lightbox.git#~3.1.4
bower kurento-utils#5.1.0       cached git://github.com/Kurento/kurento-utils-bower.git#5.1.0
bower kurento-utils#5.1.0     validate 5.1.0 against git://github.com/Kurento/kurento-utils-bower.git#5.1.0
bower bootstrap#>= 3.0.0        cached git://github.com/twbs/bootstrap.git#3.3.2
bower bootstrap#>= 3.0.0      validate 3.3.2 against git://github.com/twbs/bootstrap.git#>= 3.0.0
bower adapter.js#*            checkout master
bower adapter.js#*        invalid-meta adapter.js is missing "main" entry in bower.json
bower adapter.js#*        invalid-meta adapter.js is missing "ignore" entry in bower.json
bower adapter.js#*            resolved git://github.com/GoogleChrome/webrtc.git#46e8844166
bower kurento-chroma#develop ENOTFOUND Package kurento-chroma not found

npm ERR! kurento-h...@5.1.0 postinstall: `cd static && bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kurento-h...@5.1.0 postinstall script.
npm ERR! This is most likely a problem with the kurento-hello-world package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cd static && bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls kurento-hello-world
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.10.40-ged4f697
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/ubuntu/kurento-tutorial-node/kurento-hello-world
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/ubuntu/kurento-tutorial-node/kurento-hello-world/npm-debug.log
npm ERR! not ok code 0
ubuntu@tegra-ubuntu:~/kurento-tutorial-node/kurento-hello-world$ bower search kurento
Search results:

    kurento-utils git://github.com/Kurento/kurento-utils-bower.git
    kurento-client git://github.com/Kurento/kurento-client-bower.git
    kws-media-api git://github.com/Kurento/kws-media-api-bower.git
    kws-utils git://github.com/Kurento/kws-utils-bower.git
    kws-content-api git://github.com/Kurento/kws-content-api-bower.git
    kws-rpc-builder git://github.com/Kurento/kws-rpc-builder-bower.git
    kurento-module-pointerdetector git://github.com/Kurento/kurento-module-pointerdetector-bower.git
    kurento-jsonrpc git://github.com/Kurento/kurento-jsonrpc-bower.git
    kurento-module-chroma git://github.com/Kurento/kurento-module-chroma-bower.git
    kurento-module-platedetector git://github.com/Kurento/kurento-module-platedetector-bower.git
    kurento-module-crowddetector git://github.com/Kurento/kurento-module-crowddetector-bower.git
ubuntu@tegra-ubuntu:~/kurento-tutorial-node/kurento-hello-world$

henry...@umbocv.com

unread,
Feb 9, 2015, 11:12:08 PM2/9/15
to kur...@googlegroups.com, tbuc...@kinnor.com
never mind, I think I got it to work after removing the kurento-chroma line completely
and then edited the static/index.html to point to the right location of the adapter.js file:

<script src="bower_components/adapter.js/src/js/adapter.js"></script>


Henryh

nichola...@gmail.com

unread,
Feb 17, 2015, 12:07:10 PM2/17/15
to kur...@googlegroups.com, tbuc...@kinnor.com
I was getting this error, but it was fixed after I replaced the version number from the string that was existing (chroma-something) to "*". Reran bower and npm install. Worked like a charm!

Ivan Gracia

unread,
Feb 27, 2015, 5:04:12 AM2/27/15
to Kurento Public, tbuc...@kinnor.com
This error should be now fixed in all demos. Please let us know if you find somewhere where it isn´t working!

Cheers,


Ivan Gracia



fhelms...@gmail.com

unread,
Feb 28, 2015, 5:54:39 AM2/28/15
to kur...@googlegroups.com, tbuc...@kinnor.com
You should probably also add a note to the tutorials that those tutorials cannot be installed as root user. I tried not to fiddle around with user management on a local test box but then bower fails as it only runs from root with --alow-root added and this won't work as npm-install doesn't do that. Additionally npm install would need to be started with --unsafe-perm.

I think for the tutorials this could be added and if not then a note would be really helpful.

P.S. Is Kurento going with a real forum anytime soon? This google groups stuff usability is horrible.

James Moyle

unread,
May 16, 2016, 3:35:20 AM5/16/16
to kurento, tbuc...@kinnor.com
Hi Ivan,

adapter.js is still missing when building in every demo
I have followed all the recommendations posted in the group to no avail.

The only solution that works for me at the moment, is to build bower_components, then manually copy the adapter.js file to the application after every build (extremely tedious).

I am on the latest branch 6.4.0 (not snapshot as I can not find a recent one).

I used the command "git checkout 6.4.0"

$git branch -r
  origin/HEAD -> origin/master
  origin/develop
  origin/master
  origin/release-5.1

$ git checkout develop

$ git tag
6.0.0
6.1.0
6.2.0
6.2.1
6.4.0
kurento-tutorial-5.0.3
kurento-tutorial-5.1.0

$git checkout 6.4.0

Please let me know if I am using the wrong branch. However, using 6.4.0, there is no adapter.js


Best Regards,
James Moyle.

James Moyle

unread,
May 16, 2016, 3:37:44 AM5/16/16
to kurento, tbuc...@kinnor.com
I missed the:

$git checkout master

For the second last command when posting. I can confirm I have tried the master branch

Best Regards,
James Moyle.

Ivan Gracia

unread,
May 16, 2016, 3:53:49 AM5/16/16
to Kurento Public, tbuc...@kinnor.com
Can you specify which versions of the tutorials and which tutorials is the one missing the adapter? I've just checked the master branch in github and the bower.json file with the fixed adapter version is there.
  • Node tutorials: set the dependency here.
  • Java tutorials: set the dependency here.
  • JavaScript tutorials: set the dependency here.
Make sure you are in master, as that dependency is wrong in the release branch.

Ivan Gracia


James Moyle

unread,
May 16, 2016, 5:06:12 AM5/16/16
to kurento, tbuc...@kinnor.com
Hi Ivan,

Thanks for the rapid response.

I was indeed using the release version of 6.4.0 and not the master.

When trying to checkout the master, I received other errors, reading further into the documentation on how to use the nightly builds I decided to just patch the 6.4.0 build.

Your link to the bower.json file helped.

The only change I made to get 6.4.0 working was to update adapter.js declaration in bower.js:

from
"
adapter.js": "*",



to
"adapter.js": "v0.2.9",



to produce the following excerpt:

...

"dependencies": {
   
"bootstrap": "~3.3.0",
   
"ekko-lightbox": "~3.1.4",

   
"adapter.js": "v0.2.9",
   
"demo-console": "1.5.1"
 
}
...



Thank you very much for your assistance.

Best Regards,
James Moyle

Ivan Gracia

unread,
May 16, 2016, 5:08:19 AM5/16/16
to Kurento Public, tbuc...@kinnor.com
No worries! Sorry for the trouble. We'd be making a release of the tutorials somewhen soon, so you don't have to do that yourself.

Ivan Gracia


Reply all
Reply to author
Forward
0 new messages