Coder Social home page Coder Social logo

Comments (10)

causztic avatar causztic commented on July 18, 2024 1

@ubuntugod did you try my buildpack instead as it has an updated electron version? https://github.com/causztic/heroku-electron-buildpack

I was able to run electron with nightmare with the updated version.

from nightmare-heroku.

JonathanKolnik avatar JonathanKolnik commented on July 18, 2024

+1

from nightmare-heroku.

causztic avatar causztic commented on July 18, 2024

I am able to get it working on heroku by updating the electron-install-buildpack's electron version to be the same as Nightmare.js's. I have made a pull request on their repo
benschwarz/heroku-electron-buildpack#2

You can also give my fork a try and see whether it works for you.

from nightmare-heroku.

oscarmorrison avatar oscarmorrison commented on July 18, 2024

Thanks @seanpascoe well try and get some time to look into this.
Open to PR's aswell

from nightmare-heroku.

ronnakamoto avatar ronnakamoto commented on July 18, 2024

@oscarmorrison This is what I get after deploying https://github.com/oscarmorrison/nightmare-heroku:

  • nightmare queueing action "goto" for http://blog.oscarmorrison.com/nightmarejs-on-heroku-the-ultimate-scraping-setup/ +11ms
  • nightmare queueing action "wait" +1ms
  • nightmare queueing action "evaluate" +0ms
  • nightmare running +2ms
  • electron:stderr /app/node_modules/electron/dist/electron: symbol lookup error: /app/node_modules/electron/dist/electron: undefined symbol: _ZN12v8_inspector8protocol8Debugger3API6Paused10ReasonEnum3XHRE +161ms
  • nightmare electron child process exited with code 127: command not found - you may not have electron installed correctly +11ms
  • nightmare electron child process not started yet, skipping kill.

This is displayed when I execute the code as heroku run DEBUG=nightmare*,electron:* node --harmony index.js.

Someone please help.

from nightmare-heroku.

ronnakamoto avatar ronnakamoto commented on July 18, 2024

@causztic Yes, I forked from your commit to https://github.com/ubuntugod/heroku-electron-buildpack.

I am new to heroku(been playing with it for about 1 day). I added the above buildpack to the .buildpacks file such that its content is:

Then I deployed it to heroku. During the depolyment I could see these in the console:

  • remote: -----> Electron app detected
  • remote: -----> Extracting Electron 1.8.4 binaries to /tmp/build_ef2080b7a4a37719b8d0869bd9ba943e/vendor/electron

I assume this makes sure that the latest version of electron will be available later.

But there was something that didn't feel right to me. I had that feeling when I saw these lines in the console before the above lines:

  • remote: -----> Xvfb-setup app detected
  • remote: -----> Electron app detected
  • remote: -----> Extracting Electron 0.37.6 binaries to /tmp/build_ef2080b7a4a37719b8d0869bd9ba943e/vendor/electron
  • remote: -----> Moving Electron to /tmp/build_ef2080b7a4a37719b8d0869bd9ba943e/vendor/electron

I am not sure why the 0.37.6 binaries are being extracted even when I applied the latest buildpack for electron from your repo.

I still get this error:
electron:stderr /app/node_modules/electron/dist/electron: symbol lookup error: /app/node_modules/electron/dist/electron: undefined symbol: _ZN12v8_inspector8protocol8Debugger3API6Paused10ReasonEnum3XHRE +161ms
I am not sure what I am doing wrong. I am using the Cedar-14 stack on heroku.

UPDATE
I just checked the buildpacks currently applied to heroku by running heroku buildpacks and I saw that the BUILPACK URL that had the old electron version was also there. So, I removed it. Then, deployed the app again and now it works like a charm.

Thanks @causztic for the electron buildpack.

from nightmare-heroku.

causztic avatar causztic commented on July 18, 2024

glad it worked out for you!

from nightmare-heroku.

seanpascoe avatar seanpascoe commented on July 18, 2024

thanks @causztic, your buildpack works great!

from nightmare-heroku.

damaneice avatar damaneice commented on July 18, 2024

Has anyone gotten this to work using the Heroku-16 stack?

from nightmare-heroku.

nottnt avatar nottnt commented on July 18, 2024

i have a poblem nightmare electron child process exited with code 127: command not found - you may not have electron installed correctly and electron:stderr /app/node_modules/electron/dist/electron: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory on Heroku-16 stack
my
npm :5.7.1
node :8.9.4
eletron:1.8.4
nightmare:3.0.1
in .buildpacks
has
https://github.com/heroku/heroku-buildpack-apt
https://github.com/captain401/heroku-buildpack-xvfb.git
https://github.com/causztic/heroku-electron-buildpack
https://github.com/heroku/heroku-buildpack-nodejs.git

UPDATE I roll back version heroku from stack-16 to cedar-14 It work great!!!

from nightmare-heroku.

Related Issues (11)

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.