# Failed to precompile ORCA

**URL:** https://discourse.julialang.org/t/failed-to-precompile-orca/46494
**Category:** General Usage
**Tags:** question, plotting
**Created:** [September 12, 2020, 3:21am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494 "2020-09-12T03:21:51Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 12, 2020, 3:21am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/1 "2020-09-12T03:21:51Z")

</div>

"’  
using Plots,PlotlyJS  
x=[1:10]  
y=rand(10)  
z=rand(10)  
plot(x,y,z)  
plotlyjs()  
‘’’  
Error:Failed to precompile ORCA [47be7bcc-f1a6-5447-8b36-7eeeff7534fd] to C:\Users\zlq.juliapro\JuliaPro\_v1.4.2-1\compiled\v1.4\ORCA\jvX7k\_F1Qj8.ji.  
How could I solve this problem?

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [September 12, 2020, 3:49am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/2 "2020-09-12T03:49:34Z")

</div>

You shouldn’t need ORCA any longer.  
Have you updated your packages to the latest versions. Also update Julia to 1.5 while you’re at it.

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 14, 2020, 4:06am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/3 "2020-09-14T04:06:42Z")

</div>

Yesterday I update the packages and Julia to 1.5.But

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/2/a24bb448cd95a6e26dded0442a0104174db58744.png)  
It shows me “UndefVarError: plot not defined”. What’s the problem?

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [September 14, 2020, 4:25am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/4 "2020-09-14T04:25:18Z")

</div>

I think that the problem is that you import functions called “plot” from both the Plots package, AND the PlotlyJS package. With two names for plot, you have to specify which package (actually module) you want to call it from by calling Plots.plot or PlotlyJS.plot.

Buuuut I suspect you are trying to use the Plots package, with plotlyjs as backend. This can be achieved by

```julia
using Plots
plotlyjs()

```

The function call “plotlyjs()” changes your backend.

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 14, 2020, 7:06am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/5 "2020-09-14T07:06:24Z")

</div>

I want to rotate the 3D image arbitrarily so that I can see the other angles, so I try to use plotlyjs().  
when Ichange the code like this:  
using Plots,PlotlyJS  
x=[1:10]  
y=rand(10)  
z=rand(10)  
Plots.plot(x,y,z)  
plotlyjs()  
It shows me to add OCRA.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/0/f0ae9b570e2d32522c730c99165e72b8110f71e4.png)  
I follow it advice to implement in PlotlyBase.jl,  
like this :  
‘’’  
using Plots,PlotlyBase  
x=[1:10]  
y=rand(10)  
z=rand(10)  
Plots.plot(x,y,z)  
plotlyjs()  
‘’’  
It can run without errors,but can’t show the picture. What’s wrong?

---

<div class="post-metadata">

### Author: ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)
#### Post date: [September 14, 2020, 7:31am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/6 "2020-09-14T07:31:00Z")

</div>

> [@zlq178](#):
>
> using Plots,PlotlyJS  
> x=[1:10]  
> y=rand(10)  
> z=rand(10)  
> Plots.plot(x,y,z)  
> plotlyjs()

No, rewrite it like this:

```julia
using Plots
plotly() # without the js at the end, my bad. This changes your backend. All the backends are implemented in the Plots package
x=[1:10]
y=rand(10)
z=rand(10)
plot(x,y,z)

```

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 14, 2020, 7:47am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/7 "2020-09-14T07:47:35Z")

</div>

Thank you very much~

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [September 14, 2020, 6:16pm UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/8 "2020-09-14T18:16:07Z")

</div>

You do want `plotlyjs()` I think?  
Otherwise the plotting is being done over the web.

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 15, 2020, 12:30am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/9 "2020-09-15T00:30:37Z")

</div>

I do want to use plotlyjs( ). But when I use it by JuliaPro1.4.2-1, it shows me “Failed to precompile ORCA”.While JuliaPro 1.5.1-1 doesn’t show this problem.

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 15, 2020, 8:36am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/10 "2020-09-15T08:36:41Z")

</div>

If I want to realize rotate the 3D image arbitrarily by JuliaPro1.4.2-1, do you have other methord to achieve?  
By now, when I run ‘‘plotly()’’ by JuliaPro1.4.2-1, it will advise me to build(“ORCA”), but after I build(“ORCA” ),it shows

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/1/91f13ec77255b99375a49014793c69612c328430.png)  
So ,the plotly() or plotlyjs() can’t be used in JuliaPro1.4.2-1?  
How could I realize rotate the 3D image arbitrarily by JuliaPro1.4.2-1

---

<div class="post-metadata">

### Author: ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)
#### Post date: [September 15, 2020, 8:37am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/11 "2020-09-15T08:37:59Z")

</div>

If it works with Julia 1.5, just use 1.5?

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 15, 2020, 8:47am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/12 "2020-09-15T08:47:07Z")

</div>

It can run without any problem. But there are too many packages in my julia 1.4, if I turn to Julia1.5,I need add packages again,which will waste a lot of time.

---

<div class="post-metadata">

### Author: ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)
#### Post date: [September 15, 2020, 12:46pm UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/13 "2020-09-15T12:46:31Z")

</div>

Your packages should migrate without issue if you copy the _.toml_ files from _~/.julia/environments/v1.4_ to _v1.5_.

Although, I still get these warnings using the latest versions (Julia 1.5.1, PlotlyJS 0.14.0, Plotly v0.3.0, Plots 1.6.4).

```julia
using Plots
plotly()

```

`[ Info: For saving to png with the Plotly backend ORCA has to be installed.`

```julia
using Plots
plotlyjs()

```

```julia
WARNING: redefinition of constant known_mimetypes. This may fail, cause incorrect answers, or produce other errors.
WARNING: redefinition of constant singleton_instance. This may fail, cause incorrect answers, or produce other errors.
WARNING: redefinition of constant routing_callback. This may fail, cause incorrect answers, or produce other errors.
WARNING: redefinition of constant webio_server_config. This may fail, cause incorrect answers, or produce other errors.
ERROR: ArgumentError: Package ORCA not found in current path:
- Run `import Pkg; Pkg.add("ORCA")` to install the ORCA package.
 
Stacktrace:
[1] require(::Module, ::Symbol) at .\loading.jl:893
[2] top-level scope at C:\Users\nboyer.AIP\.julia\packages\Plots\4EfKl\src\backends.jl:491
[3] eval at .\boot.jl:331 [inlined]
[4] _initialize_backend(::Plots.PlotlyJSBackend) at C:\Users\nboyer.AIP\.julia\packages\Plots\4EfKl\src\backends.jl:490
[5] backend at C:\Users\nboyer.AIP\.julia\packages\Plots\4EfKl\src\backends.jl:174 [inlined]
[6] plotlyjs(; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at C:\Users\nboyer.AIP\.julia\packages\Plots\4EfKl\src\backends.jl:31
[7] plotlyjs() at C:\Users\nboyer.AIP\.julia\packages\Plots\4EfKl\src\backends.jl:31
[8] top-level scope at REPL[4]:1
[9] include_string(::Function, ::Module, ::String, ::String) at .\loading.jl:1088

```

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 16, 2020, 4:05am UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/14 "2020-09-16T04:05:33Z")

</div>

You can add PlotlyBase,then try this example  
‘’’  
using Plots #AbstractPlotting  
plotly()  
x=1:10  
y=1:10  
z=1:10  
#Plots(x,y,f,st=:surface)  
a=Plots.scatter(x,y,z)  
plot(a)  
‘’’

Could you tell me how to copy the _.toml_ files from _~/.julia/environments/v1.4_ to _v1.5_ .?

---

<div class="post-metadata">

### Author: ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)
#### Post date: [September 16, 2020, 1:48pm UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/15 "2020-09-16T13:48:36Z")

</div>

For the standard Julia installation, you can do this manually in Windows File Explorer. Look for two files named _Manifest.toml_ and _Project.toml_ in _C:Users\<username\>.julia\environments\v1.4_. The _.julia_ folder is hidden by default (since it starts with a “.”), so you will need to check the “Hidden Items” checkbox under the “View” tab in File Explorer to see it. Copy those two files from the _v1.4_ to _v1.5_ folder and your packages should copy over. However, I don’t know if this works the same for JuliaPro.

To get the code formatting you wanted in your last post the triple apostrophies ‘’’ should be triple backticks ```. The backtick key is located above Tab on the U.S. keyboard.

---

<div class="post-metadata">

### Author: ![zlq178](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zlq178/32/17952_2.png) [@zlq178](https://discourse.julialang.org/u/zlq178)
#### Post date: [September 16, 2020, 2:07pm UTC](https://discourse.julialang.org/t/failed-to-precompile-orca/46494/16 "2020-09-16T14:07:16Z")

</div>

Ok. Thank you for your reminding, I will pay attention to the code formatting next time.
