This repository has been archived by the owner. It is now read-only.

Error: The specified module could not be found. #60

Closed
creativefull opened this Issue Dec 19, 2015 · 76 comments

Comments

Projects
None yet
5 participants
@creativefull

creativefull commented Dec 19, 2015

HI i got error like this .

Error: The specified module could not be found.
C:\Users\Windows7\AppData\Local\Temp\nw2940_12978\node_modules\webchimera.js\Release\WebChimera.js.node

before i compile my application alright .

@jaruba

This comment has been minimized.

Show comment
Hide comment
@jaruba

jaruba Dec 19, 2015

Contributor

WebChimera.js also needs you to add the VLC binaries to the same folder as WebChimera.js.node

What platform are you on?

Contributor

jaruba commented Dec 19, 2015

WebChimera.js also needs you to add the VLC binaries to the same folder as WebChimera.js.node

What platform are you on?

@jaruba

This comment has been minimized.

Show comment
Hide comment
@jaruba

jaruba Dec 19, 2015

Contributor

If your looking for an automatic solution to this, you might want to look into:
https://github.com/Ivshti/wcjs-prebuilt

Contributor

jaruba commented Dec 19, 2015

If your looking for an automatic solution to this, you might want to look into:
https://github.com/Ivshti/wcjs-prebuilt

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i using windows 7 ..

capture

creativefull commented Dec 19, 2015

i using windows 7 ..

capture

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

yes i have used wcjs-prebuilt ,. it's working in developer mode ,.
but after i compile my app ,. i get that error

creativefull commented Dec 19, 2015

yes i have used wcjs-prebuilt ,. it's working in developer mode ,.
but after i compile my app ,. i get that error

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

you could use http://www.dependencywalker.com/ to find out what exactly it missing

Owner

RSATom commented Dec 19, 2015

you could use http://www.dependencywalker.com/ to find out what exactly it missing

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

I think you just use ia32 .node + x64 VLC or vice versa

Owner

RSATom commented Dec 19, 2015

I think you just use ia32 .node + x64 VLC or vice versa

@jaruba

This comment has been minimized.

Show comment
Hide comment
@jaruba

jaruba Dec 19, 2015

Contributor

@RSATom that usually gives the architecture error..

I think this is more related to: jaruba/wcjs-player#21 and #29

@creativefull how are you packaging your app?

Contributor

jaruba commented Dec 19, 2015

@RSATom that usually gives the architecture error..

I think this is more related to: jaruba/wcjs-player#21 and #29

@creativefull how are you packaging your app?

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i'm using x64.node + x64 VLC ,.

i get thats error after distribute my app

creativefull commented Dec 19, 2015

i'm using x64.node + x64 VLC ,.

i get thats error after distribute my app

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i install webchimera.Js using Prebuilt on windows following this tutorial

https://github.com/RSATom/WebChimera.js#using-prebuilt-on-windows

creativefull commented Dec 19, 2015

i install webchimera.Js using Prebuilt on windows following this tutorial

https://github.com/RSATom/WebChimera.js#using-prebuilt-on-windows

@creativefull creativefull changed the title from HI i get error like this . to Error: The specified module could not be found. Dec 19, 2015

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

then run Dependency Walker over installed WebChimera.js.node

Owner

RSATom commented Dec 19, 2015

then run Dependency Walker over installed WebChimera.js.node

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i got error like this .
capture2

how to fix it ?

creativefull commented Dec 19, 2015

i got error like this .
capture2

how to fix it ?

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

It's ok, since you don't have Electron in your PATH (but you don't require it to run it successfully).

Are you sure use Electron x64 build?

Owner

RSATom commented Dec 19, 2015

It's ok, since you don't have Electron in your PATH (but you don't require it to run it successfully).

Are you sure use Electron x64 build?

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

ha... it seems you use NW.js not Electron, right?

Owner

RSATom commented Dec 19, 2015

ha... it seems you use NW.js not Electron, right?

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

yes i'm using NW.js ,

creativefull commented Dec 19, 2015

yes i'm using NW.js ,

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

Then you just downloaded wrong WebChimera.js.node. Your current is for Electron

Owner

RSATom commented Dec 19, 2015

Then you just downloaded wrong WebChimera.js.node. Your current is for Electron

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

I'm wrong. Your version is for NW.js. Then it's possible you use NW.js ia32.

Owner

RSATom commented Dec 19, 2015

I'm wrong. Your version is for NW.js. Then it's possible you use NW.js ia32.

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

Do you have installer I could test?

Owner

RSATom commented Dec 19, 2015

Do you have installer I could test?

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

production
after compiled like this

creativefull commented Dec 19, 2015

production
after compiled like this

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i have ,..
how to send for you ?

creativefull commented Dec 19, 2015

i have ,..
how to send for you ?

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

you could put it to dropbox (or something similar) and email link to rsatom on gmail.com

Owner

RSATom commented Dec 19, 2015

you could put it to dropbox (or something similar) and email link to rsatom on gmail.com

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

okeh wait ,..

creativefull commented Dec 19, 2015

okeh wait ,..

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

My application is still a lot of problems , .
maybe I'll fix it first
:)

creativefull commented Dec 19, 2015

My application is still a lot of problems , .
maybe I'll fix it first
:)

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

one error like the one in the picture earlier

creativefull commented Dec 19, 2015

one error like the one in the picture earlier

@luigiplr

This comment has been minimized.

Show comment
Hide comment
@luigiplr

luigiplr Dec 19, 2015

@creativefull Mind passing me a link to the repo? Ill take a look.

luigiplr commented Dec 19, 2015

@creativefull Mind passing me a link to the repo? Ill take a look.

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

@creativefull, don't worry, I will not even try run it, so it's ok.

Owner

RSATom commented Dec 19, 2015

@creativefull, don't worry, I will not even try run it, so it's ok.

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

@luigiplr sorry bro this is private app for my product :)

creativefull commented Dec 19, 2015

@luigiplr sorry bro this is private app for my product :)

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

@RSATom OK ,. i'll give you in compiled app

creativefull commented Dec 19, 2015

@RSATom OK ,. i'll give you in compiled app

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

@luigiplr ok I know , . but there is no time for that , .. i've deadline for this app

creativefull commented Dec 19, 2015

@luigiplr ok I know , . but there is no time for that , .. i've deadline for this app

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

hm... I was talking about your app path, not VLC. But you should remove VLC from PATH in addition.

Owner

RSATom commented Dec 19, 2015

hm... I was talking about your app path, not VLC. But you should remove VLC from PATH in addition.

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

if it was ia32 version in your PATH - it could be a reason of your fail. But don't sure 100% ...

Owner

RSATom commented Dec 19, 2015

if it was ia32 version in your PATH - it could be a reason of your fail. But don't sure 100% ...

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

in my PATH using VLC x64 version ..

creativefull commented Dec 19, 2015

in my PATH using VLC x64 version ..

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i don't know this bugs, in developer mode it's fine ,.
but when app has been compiled i get like thats

creativefull commented Dec 19, 2015

i don't know this bugs, in developer mode it's fine ,.
but when app has been compiled i get like thats

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

@RSATom wait i'll send my app
gmail upload

creativefull commented Dec 19, 2015

@RSATom wait i'll send my app
gmail upload

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

just add path where nw.exe from your installation reside to PATH and run Dependancy Walker. I want be sure it's not missing some dll or function.

Owner

RSATom commented Dec 19, 2015

just add path where nw.exe from your installation reside to PATH and run Dependancy Walker. I want be sure it's not missing some dll or function.

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

ok, waiting

Owner

RSATom commented Dec 19, 2015

ok, waiting

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

yes missing DLL like this.
how to fix it ? 😩

missing dll

creativefull commented Dec 19, 2015

yes missing DLL like this.
how to fix it ? 😩

missing dll

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

most of them should be missing, so it's ok. But don't sure about bluetoothapis.dll

Owner

RSATom commented Dec 19, 2015

most of them should be missing, so it's ok. But don't sure about bluetoothapis.dll

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

could you try find what dll require it (in upper-left tree)?

Owner

RSATom commented Dec 19, 2015

could you try find what dll require it (in upper-left tree)?

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

i've been send file with you ,. check your email @RSATom

creativefull commented Dec 19, 2015

i've been send file with you ,. check your email @RSATom

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull commented Dec 19, 2015

test app :)

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

Yes, I've got it...

Owner

RSATom commented Dec 19, 2015

Yes, I've got it...

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

there is an error on your computer ?

creativefull commented Dec 19, 2015

there is an error on your computer ?

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

yes

Owner

RSATom commented Dec 19, 2015

yes

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

ok , i'll waiting your solution @RSATom 😄

creativefull commented Dec 19, 2015

ok , i'll waiting your solution @RSATom 😄

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

I know the reason - the problem is you renamed nw.exe to app.exe. But WebChimera.js.node have reference to nw.exe inside it (it uses nw.exe as dll, dirty trick in my opinion).
You have two options:

  1. keep nw.exe name
  2. ask @jaruba, how bind .node module to renamed nw.exe
Owner

RSATom commented Dec 19, 2015

I know the reason - the problem is you renamed nw.exe to app.exe. But WebChimera.js.node have reference to nw.exe inside it (it uses nw.exe as dll, dirty trick in my opinion).
You have two options:

  1. keep nw.exe name
  2. ask @jaruba, how bind .node module to renamed nw.exe
@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

ok thnks for your solution @RSATom

creativefull commented Dec 19, 2015

ok thnks for your solution @RSATom

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

so, can we close this issue?

Owner

RSATom commented Dec 19, 2015

so, can we close this issue?

@creativefull

This comment has been minimized.

Show comment
Hide comment
@creativefull

creativefull Dec 19, 2015

yes, I think you should :D , beside how to bind .node module to renamed nw.exe
I think it would confused people compiling their apps to other filename.

thanks for the support. you rock 👍

creativefull commented Dec 19, 2015

yes, I think you should :D , beside how to bind .node module to renamed nw.exe
I think it would confused people compiling their apps to other filename.

thanks for the support. you rock 👍

@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Dec 19, 2015

Owner

I think we should create some sort of FAQ...

Owner

RSATom commented Dec 19, 2015

I think we should create some sort of FAQ...

@RSATom RSATom closed this Dec 19, 2015

@jaruba

This comment has been minimized.

Show comment
Hide comment
@jaruba
Contributor

jaruba commented Dec 19, 2015

@amilajack

This comment has been minimized.

Show comment
Hide comment
@amilajack

amilajack Jul 20, 2016

I'm having a similar problem. This is the error I am getting:

ELECTRON_ASAR.js:158 Uncaught Error: dlopen(/var/folders/f8/0ty9y5pn3bq0h_yvdxppxnbr0000gn/T/.popcorn-time-desktop.fIbtSh, 1): Library not loaded: @loader_path/lib/libvlc.5.dylib
  Referenced from: /var/folders/f8/0ty9y5pn3bq0h_yvdxppxnbr0000gn/T/.popcorn-time-desktop.fIbtSh
  Reason: image not found

I am using webpack and electron-builder, which compile my code, and I think that they are part of the problem. electron-builder uses a 'two-package.json' structure that requires a package.json (for dev dependencies) in the root folder and another package.json for dependencies that have native bindings. Here's the structure of the app visually:

 -- app
    -- package.json
    -- node_modules (production dependencies, contains webchimera.js)
 -- package.json
 -- node_modules (dev dependencies, contains webchimera.js)

The compiled output of webpack is located in /app/dist/bundle.js

Feel free to the packaged app or you can check out the release-0.0.3-alpha of the source if that makes it easier.

To reproduce, run:

// comment lines 78 and 90 of main.development.js to enable devtools in packaged app
npm i
npm run dev // this works fine
// click a tv show in `tv shows` and click `start 720p/1080p` to start
npm run package // this causes the error
// click a tv show in `tv shows` and click `start 720p/1080p` to start, error should occur

amilajack commented Jul 20, 2016

I'm having a similar problem. This is the error I am getting:

ELECTRON_ASAR.js:158 Uncaught Error: dlopen(/var/folders/f8/0ty9y5pn3bq0h_yvdxppxnbr0000gn/T/.popcorn-time-desktop.fIbtSh, 1): Library not loaded: @loader_path/lib/libvlc.5.dylib
  Referenced from: /var/folders/f8/0ty9y5pn3bq0h_yvdxppxnbr0000gn/T/.popcorn-time-desktop.fIbtSh
  Reason: image not found

I am using webpack and electron-builder, which compile my code, and I think that they are part of the problem. electron-builder uses a 'two-package.json' structure that requires a package.json (for dev dependencies) in the root folder and another package.json for dependencies that have native bindings. Here's the structure of the app visually:

 -- app
    -- package.json
    -- node_modules (production dependencies, contains webchimera.js)
 -- package.json
 -- node_modules (dev dependencies, contains webchimera.js)

The compiled output of webpack is located in /app/dist/bundle.js

Feel free to the packaged app or you can check out the release-0.0.3-alpha of the source if that makes it easier.

To reproduce, run:

// comment lines 78 and 90 of main.development.js to enable devtools in packaged app
npm i
npm run dev // this works fine
// click a tv show in `tv shows` and click `start 720p/1080p` to start
npm run package // this causes the error
// click a tv show in `tv shows` and click `start 720p/1080p` to start, error should occur
@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Jul 20, 2016

Owner

@amilajack, it looks like you are missing libvlc.5.dylib or have it in wrong place.

Owner

RSATom commented Jul 20, 2016

@amilajack, it looks like you are missing libvlc.5.dylib or have it in wrong place.

@amilajack

This comment has been minimized.

Show comment
Hide comment
@amilajack

amilajack Jul 20, 2016

This is what is Inside the /app/node_modules/wcjs-prebuilt/bin/lib directory:

drwxr-xr-x  7 amila  staff     238 Jul 19 23:26 .
drwxr-xr-x  5 amila  staff     170 Jul 19 23:26 ..
-rw-r--r--  1 amila  staff  125408 Jul 19 23:26 libvlc.5.dylib
lrwxr-xr-x  1 amila  staff      14 Jul 19 23:26 libvlc.dylib -> libvlc.5.dylib
-rw-r--r--  1 amila  staff  997072 Jul 19 23:26 libvlccore.8.dylib
lrwxr-xr-x  1 amila  staff      18 Jul 19 23:26 libvlccore.dylib -> libvlccore.8.dylib
drwxr-xr-x  5 amila  staff     170 Jul 19 23:26 vlc

and inside of /app/node_modules/wcjs-prebuilt/bin, I have:

drwxr-xr-x  5 amila  staff   170B Jul 19 23:26 .
drwxr-xr-x  9 amila  staff   306B Jul 19 23:26 ..
-rwxr-xr-x  1 amila  staff   292K Jul 19 23:26 WebChimera.js.node
-rw-r--r--  1 amila  staff    49B Jul 19 23:26 index.js
drwxr-xr-x  7 amila  staff   238B Jul 19 23:26 lib

amilajack commented Jul 20, 2016

This is what is Inside the /app/node_modules/wcjs-prebuilt/bin/lib directory:

drwxr-xr-x  7 amila  staff     238 Jul 19 23:26 .
drwxr-xr-x  5 amila  staff     170 Jul 19 23:26 ..
-rw-r--r--  1 amila  staff  125408 Jul 19 23:26 libvlc.5.dylib
lrwxr-xr-x  1 amila  staff      14 Jul 19 23:26 libvlc.dylib -> libvlc.5.dylib
-rw-r--r--  1 amila  staff  997072 Jul 19 23:26 libvlccore.8.dylib
lrwxr-xr-x  1 amila  staff      18 Jul 19 23:26 libvlccore.dylib -> libvlccore.8.dylib
drwxr-xr-x  5 amila  staff     170 Jul 19 23:26 vlc

and inside of /app/node_modules/wcjs-prebuilt/bin, I have:

drwxr-xr-x  5 amila  staff   170B Jul 19 23:26 .
drwxr-xr-x  9 amila  staff   306B Jul 19 23:26 ..
-rwxr-xr-x  1 amila  staff   292K Jul 19 23:26 WebChimera.js.node
-rw-r--r--  1 amila  staff    49B Jul 19 23:26 index.js
drwxr-xr-x  7 amila  staff   238B Jul 19 23:26 lib
@RSATom

This comment has been minimized.

Show comment
Hide comment
@RSATom

RSATom Jul 20, 2016

Owner

Unfortunately I don't have access to OS X atm. All I can recommend it - try run wcjs-ugly-demo and if it will work - find out what's wrong with webpack and electron-builder

Owner

RSATom commented Jul 20, 2016

Unfortunately I don't have access to OS X atm. All I can recommend it - try run wcjs-ugly-demo and if it will work - find out what's wrong with webpack and electron-builder

@amilajack

This comment has been minimized.

Show comment
Hide comment
@amilajack

amilajack Jul 20, 2016

Good idea! I will try this tomorrow morning.

amilajack commented Jul 20, 2016

Good idea! I will try this tomorrow morning.

@amilajack

This comment has been minimized.

Show comment
Hide comment
@amilajack

amilajack Jul 20, 2016

Fixed it! It was an electron-builder issue with asar. Had to disable it.

amilajack commented Jul 20, 2016

Fixed it! It was an electron-builder issue with asar. Had to disable it.

@jaruba

This comment has been minimized.

Show comment
Hide comment
@jaruba

jaruba Jul 20, 2016

Contributor

@amilajack The WebChimera.js binaries (as with all binaries) needs to be outside the asar file in order to work. So you can still use asar, just be sure that all binaries are outside it.

Contributor

jaruba commented Jul 20, 2016

@amilajack The WebChimera.js binaries (as with all binaries) needs to be outside the asar file in order to work. So you can still use asar, just be sure that all binaries are outside it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.