plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
367 stars 36 forks source link

Errors on Windows 10 with PlotlyBase #69

Open PetrKryslUCSD opened 3 years ago

PetrKryslUCSD commented 3 years ago

PlotlyBase on Windows 10 complains and errors: https://github.com/sglyon/PlotlyBase.jl/issues/40

Any ideas why this might be happening?

jonmmease commented 3 years ago

I'm not familiar with the logic PlotlyBase uses to determine whether Kaleido is available. But @sglyon, let me know if there's anything you need on our end.

PetrKryslUCSD commented 3 years ago

Julia installs an artifact with roughly the structure: image Can you think of any reason why kaleido.exe would not run because of denied access?

C:\Users\PetrKrysl\.julia\artifacts\c959551ad0b7f5c1c33b9cb31baa203bcad3a1af\kaleido>.\bin\kaleido.exe
Access is denied.

C:\Users\PetrKrysl\.julia\artifacts\c959551ad0b7f5c1c33b9cb31baa203bcad3a1af\kaleido>

Many thanks!

sglyon commented 3 years ago

Hey @PetrKryslUCSD and @jonmmease the code that downloads the executable as a Julia artifact is here: https://github.com/sglyon/PlotlyBase.jl/blob/master/create_artifact_script.jl

I don't see anything in that script that would be altering permissions. @jonmmease have you seen permission issues with the binaries before?

@PetrKryslUCSD what are those two directory listings? It looks like kaleido.exe has global execute permissions, but kaleido.cmd doesn't (I am very much not a windows expert, so if kaleido.cmd isn't relevant here don't hesitate to let me know!)

sglyon commented 3 years ago

Update...

I just fired up a windows machine, installed a fresh julia 1.5.3, added PlotlyBase, and successfully saved a figure.

I didn't run into those problems--- making this even harder to debug :(

PetrKryslUCSD commented 3 years ago

When I install PlotlyJS with Julia 1.5.3, there is no problem at all. But with 1.6, I get the error pointing to incorrect permissions on kaleido.exe. (The PlotlyJS, PlotlyBase versions may be different, though.)

Listing the file in the git bash incorrectly shows the permissions as including "executable", but the windows permissions dialogue does not. Listing the executable file in the tar file shows the incorrect permissions (only the read permission is set).

Petr Krysl Prof. and Vice chair for undergraduate education Structural engineering department University of California, San Diego

On Tue, Feb 2, 2021 at 9:58 AM Spencer Lyon notifications@github.com wrote:

Update...

I just fired up a windows machine, installed a fresh julia 1.5.3, added PlotlyBase, and successfully saved a figure.

I didn't run into those problems--- making this even harder to debug :(

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://mailtrack.io/trace/link/c634d8d63f8d40ce5fd0cb1ef65f735251bf8ce3?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fplotly%2FKaleido%2Fissues%2F69*issuecomment-771843941__%3BIw!!Mih3wA!Vx7k1Fer9psS0fKnlW4OY5BLpFzBkTeV8C53lrv3usnC28CO-WwksXdW5ew8aJw%24&userId=1197778&signature=7b776db382b55657, or unsubscribe https://mailtrack.io/trace/link/db03630c6accecae5dbf015a3f831890e99cd3ed?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACLGGWDL53YFSYWKCLBZ6U3S5A4NRANCNFSM4W5N7SIA__%3B!!Mih3wA!Vx7k1Fer9psS0fKnlW4OY5BLpFzBkTeV8C53lrv3usnC28CO-WwksXdWabDE5V8%24&userId=1197778&signature=caddf0b1e16f1e6c .

PetrKryslUCSD commented 3 years ago

What about line https://github.com/sglyon/PlotlyBase.jl/blob/d9b65b0d4999982203c63f8713cf3d7268719b83/create_artifact_script.jl#L61? https://mailtrack.io/trace/link/4c874bf79634484bf59f01f12a8983ca7491e25f?url=https%3A%2F%2Fgithub.com%2Fsglyon%2FPlotlyBase.jl%2Fblob%2Fd9b65b0d4999982203c63f8713cf3d7268719b83%2Fcreate_artifact_script.jl%23L61%3F&userId=1197778&signature=0ba76ff91f09221a

Seems to me that it sets exe permissions. But not on the Windows platform.

On Tue, Feb 2, 2021 at 9:51 AM Spencer Lyon notifications@github.com wrote:

Hey @PetrKryslUCSD https://mailtrack.io/trace/link/faf2ed7ac17caad211c50e9a384abdc319afe171?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2FPetrKryslUCSD__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsN5MIY7y4%24&userId=1197778&signature=dd2a182574a97b70 and @jonmmease https://mailtrack.io/trace/link/bbd15c0426aaa0cfdc72876dcdca95737b777fb6?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fjonmmease__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsNMKlawtI%24&userId=1197778&signature=444f0766d21c425c the code that downloads the executable as a Julia artifact is here: https://github.com/sglyon/PlotlyBase.jl/blob/master/create_artifact_script.jl https://mailtrack.io/trace/link/fca62cdb0e3ec3788ebff94bfb6c9c191f390968?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fsglyon%2FPlotlyBase.jl%2Fblob%2Fmaster%2Fcreate_artifact_script.jl__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsNIq_nTeI%24&userId=1197778&signature=d9219904882b09ce

I don't see anything in that script that would be altering permissions. @jonmmease https://mailtrack.io/trace/link/fe597039d6c50b122f8c5653c0fa891cf8e03453?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fjonmmease__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsNMKlawtI%24&userId=1197778&signature=67ee5c1ccdcc140e have you seen permission issues with the binaries before?

@PetrKryslUCSD https://mailtrack.io/trace/link/a4358bd0ecdd694a31ed55b38336b12df5b86661?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2FPetrKryslUCSD__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsN5MIY7y4%24&userId=1197778&signature=810f123de7459382 what are those two directory listings? It looks like kaleido.exe has global execute permissions, but kaleido.cmd doesn't (I am very much not a windows expert, so if kaleido.cmd isn't relevant here don't hesitate to let me know!)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://mailtrack.io/trace/link/5223f71f64c39f3253a184365756d1f14b8b6b13?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fplotly%2FKaleido%2Fissues%2F69*issuecomment-771838086__%3BIw!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsNadJWwHw%24&userId=1197778&signature=f2db5dec68fa3074, or unsubscribe https://mailtrack.io/trace/link/64de3099a0b2534b2cf8956065c4ebfabce91be0?url=https%3A%2F%2Furldefense.com%2Fv3%2F__https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACLGGWCAKM5PQI3IPB737KDS5A3TLANCNFSM4W5N7SIA__%3B!!Mih3wA!U81RdVy58qxQ6GluxP_9ucT-vQLRen7jR5PWgcYULav_lHIEXbTGzqsNs85HqGE%24&userId=1197778&signature=1c430f9c74ad8af8 .