-
Notifications
You must be signed in to change notification settings - Fork 1.2k
HTTP 404 for node-canvas-prebuilt/releases/download/v2.0.0-alpha.10 #1111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've just released |
Linux works now, but Darwin not! :P See: node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.11/canvas-prebuilt-v2.0.0-alpha.11-node-v59-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v59 ABI, unknown) (falling back to source compile with node-gyp)
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp ERR! configure error
gyp ERR! stack Error: Python executable "/usr/local/bin/python" is v3.6.4, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at PythonFinder.failPythonVersion (/Users/travis/.nvm/versions/node/v9.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:492:19)
gyp ERR! stack at PythonFinder.<anonymous> (/Users/travis/.nvm/versions/node/v9.8.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:474:14)
gyp ERR! stack at ChildProcess.exithandler (child_process.js:265:7)
gyp ERR! stack at ChildProcess.emit (events.js:180:13)
gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:353:11)
gyp ERR! stack at Socket.emit (events.js:180:13)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:538:12)
gyp ERR! System Darwin 16.7.0
gyp ERR! command "/Users/travis/.nvm/versions/node/v9.8.0/bin/node" "/Users/travis/.nvm/versions/node/v9.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/travis/build/zixia/node-facenet/node_modules/canvas/build/Release/canvas-prebuilt.node" "--module_name=canvas-prebuilt" "--module_path=/Users/travis/build/zixia/node-facenet/node_modules/canvas/build/Release"
gyp ERR! cwd /Users/travis/build/zixia/node-facenet/node_modules/canvas
gyp ERR! node -v v9.8.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/travis/.nvm/versions/node/v9.8.0/bin/node /Users/travis/.nvm/versions/node/v9.8.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/travis/build/zixia/node-facenet/node_modules/canvas/build/Release/canvas-prebuilt.node --module_name=canvas-prebuilt --module_path=/Users/travis/build/zixia/node-facenet/node_modules/canvas/build/Release' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/travis/build/zixia/node-facenet/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:180:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:936:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
node-pre-gyp ERR! System Darwin 16.7.0 |
That seems like a problem with your build setup. Unfortunately it's quite complicated to install Node.js native addons 😞
|
Yes, I saw the Python3 problem. However there's still a 404 error above, I believe we are missing the file https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.11/canvas-prebuilt-v2.0.0-alpha.11-node-v59-darwin-x64.tar.gz too. |
Yeah, we currently don't have an automatic way of creating prebuilts... It would be nice if TravisCI/CircleCI could do that 😄 |
Like a way to trigger I bet we could set something up that triggers a canvas-prebuilt release when you push a version number change, but you'd still want to wait a bit before |
I think you can set travis to trigger builds whenever a tag that matches |
maybe you can try 'npm i [email protected]'. @zixia |
Hello everyone, I have de the problem reported by Zixia. Is there any solution or alternative way install canvas? |
@cristianodp I'm updating the binaries now but you may need to install a different version as described above
@LinusU yeah, but I think doing it that way would mean we have to move the node-canvas-prebuilt stuff to this repo. It has to
I'm just not sure we want to add all of that to the canvas repo or not, but we totally could. I could get rid of the last bullet, but the rest would be a bunch of new files/build steps. The easiest path forward that I can think of is create some kind of release script that invokes canvas-prebuilt CI servers. |
We can install a github hook that triggers whatever we need -- e.g. it could trigger running the release script. Might be something like [github hook for tag] -> [Cloud Function that kicks-off stuff] -> [docker builds]. |
Are these any changes that would be nice to upstream here anyways? Could be a good first step :) |
If I remember correctly I had to modify the Linux build so the binary looks in its own dir for dependencies. Could do that in "release mode" with a CLI argument. And the Windows build has a heavily modified GYP file so that it can build off of MSYS. That would probably involve some directory searching similar to what we already do to find libraries, so yeah, could be beneficial here. Then we need:
So it'd take some time, but might be nice to have it all here |
All binaries through alpha 12 are finally live. |
Hi all, I'm a bit of a n00b with docker containers, and I'm receiving a similar error using [email protected] My amateur debugging sense tells me that perhaps the prebuilt binary for my combination of canvas + node does not exist. Is there a way for me to downgrade my node to a specific version to enable me to build my docker container? (It was building fine with canvas 1.X). Thanks, ERROR MSG:
|
Incidentally, I was able to solve this build error by downgrading to canvas-2.0.0-alpha.11 (didn't work) and then downgrading my Dockerfile node image reference to Node:8. Hopefully this is helpful for anyone else having similar issues. Q: My container is linux and I am doing dev testing in Node 9.7.1 in Windows. Are there any issues with the changes above that I should be aware of? Thanks! Marc |
Probably the binary didn't download because of node-gfx/node-canvas-prebuilt#35. That's not an error, though, since it will continue to build, which is where your real errors are:
|
Interesting -- thanks for the tip... not sure how to do that though, with the pre-built docker container template I am using (I was using Node:9 until downgrading to Node:8 solved my problem, but would be happy to go back to 9). Any tips/links for adding that PKG_CONFIG_PATH variable, finding the right path value, etc? Thanks! |
node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/node-gfx/node-canvas-prebuilt/releases/download/v2.0.0-alpha.10/canvas-prebuilt-v2.0.0-alpha.10-node-v59-linux-x64.tar.gz
Issue or Feature
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: