sglyon / ORCA.jl

Julia interface to Plotly's ORCA image exporter app
3 stars 5 forks source link

PlotlyJS fails to due ORCA #40

Closed omrilesser closed 4 years ago

omrilesser commented 4 years ago

I'm trying to use Plots.jl with PlotlyJS to produce simple plots, e.g.

using Plots
plotlyjs()
x = range(0,stop=1,length=100)
y = x.^2
Plots.plot(x,y, legend=false, linecolor="red")

This throws the following error due to ORCA:

Info: Precompiling ORCA [47be7bcc-f1a6-5447-8b36-7eeeff7534fd]
ERROR: LoadError: ORCA not installed properly. Please call `Pkg.build("ORCA")`

So I tried the above build command and it also fails:

julia> Pkg.build("ORCA")
   Building ORCA → `C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.log`
┌ Error: Error building `ORCA`:
│ internal/modules/cjs/loader.js:800
│     throw err;
│     ^
│ 
│ Error: Cannot find module './internal/streams/stream'
│ Require stack:
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-stream.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-group.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\index.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\npmlog\log.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\bin\npm-cli.js
│     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
│     at Function.Module._load (internal/modules/cjs/loader.js:690:27)
│     at Module.require (internal/modules/cjs/loader.js:852:19)
│     at require (internal/modules/cjs/helpers.js:74:18)
│     at Object.<anonymous> (C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js:50:14)
│     at Module._compile (internal/modules/cjs/loader.js:959:30)
│     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
│     at Module.load (internal/modules/cjs/loader.js:815:32)
│     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
│     at Module.require (internal/modules/cjs/loader.js:852:19) {
│   code: 'MODULE_NOT_FOUND',
│   requireStack: [
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\lib\\_stream_readable.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\readable.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-stream.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-group.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\index.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\npmlog\\log.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\bin\\npm-cli.js'
│   ]
│ }
│ internal/modules/cjs/loader.js:800
│     throw err;
│     ^
│ 
│ Error: Cannot find module './internal/streams/stream'
│ Require stack:
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-stream.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-group.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\index.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\npmlog\log.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\bin\npm-cli.js
│     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
│     at Function.Module._load (internal/modules/cjs/loader.js:690:27)
│     at Module.require (internal/modules/cjs/loader.js:852:19)
│     at require (internal/modules/cjs/helpers.js:74:18)
│     at Object.<anonymous> (C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js:50:14)
│     at Module._compile (internal/modules/cjs/loader.js:959:30)
│     at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
│     at Module.load (internal/modules/cjs/loader.js:815:32)
│     at Function.Module._load (internal/modules/cjs/loader.js:727:14)
│     at Module.require (internal/modules/cjs/loader.js:852:19) {
│   code: 'MODULE_NOT_FOUND',
│   requireStack: [
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\lib\\_stream_readable.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\readable.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-stream.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-group.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\index.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\npmlog\\log.js',
│     'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\bin\\npm-cli.js'
│   ]
│ }
│ ERROR: LoadError: failed process: Process(`'C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\npm.cmd' config set scripts-prepend-node-path true`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│  [1] pipeline_error at .\process.jl:525 [inlined]
│  [2] run(::Cmd; wait::Bool) at .\process.jl:440
│  [3] run at .\process.jl:438 [inlined]
│  [4] main() at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:4
│  [5] top-level scope at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:30
│  [6] include(::String) at .\client.jl:457
│  [7] top-level scope at none:5
│ in expression starting at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:30
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:942

I'm using Julia Pro 1.5.0-1 on Windows 10.

Thanks in advance!

sglyon commented 4 years ago

Thanks @omrilesser

Due to the problems with this package, we have decided to go another direction. The savefig functionality offered by this package has been superseded by new routines built in to PlotlyBase.jl (and thus PlotlyJS.jl) itself.

ORCA.jl is now deprecated and should not be used going forward.

We will work with the Plots.jl team to get the new functionality incorporated.

Thank you