# Julia 1.4.2 fails to include Plots package

**URL:** <https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473>\
**Category:** General Usage\
**Tags:** question, package, plotting\
**Created:** [May 30, 2020, 4:03pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473 "2020-05-30T16:03:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adamszk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamszk/32/15315_2.png) [@Adamszk](https://discourse.julialang.org/u/Adamszk)\
**Post date:** [May 30, 2020, 4:03pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/1 "2020-05-30T16:03:16Z")

</div>

Hi,  
I am trying to do simple plots in julia. I wrote,  
using Pkg  
Pkg.add(“Plots”)  
and it failed. It displayed some lenghty text about FFMEG artifacts in red colour.  
How do I fix it?

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [May 30, 2020, 4:10pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/2 "2020-05-30T16:10:51Z")

</div>

How long was the message, approximately?

Just kidding 😉 Can you please copy paste the error message?

Btw. if you want to get help quickly and efficiently, check out this short introduction how to make it easier to help you: [https://discourse.julialang.org/t/psa-make-it-easier-to-help-you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you)

---

<div class="post-metadata">

**Author:** ![Adamszk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamszk/32/15315_2.png) [@Adamszk](https://discourse.julialang.org/u/Adamszk)\
**Post date:** [May 30, 2020, 4:28pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/3 "2020-05-30T16:28:13Z")

</div>

Its okay in linux but fails in windows 7. I will get error message shortly.

---

<div class="post-metadata">

**Author:** ![Adamszk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adamszk/32/15315_2.png) [@Adamszk](https://discourse.julialang.org/u/Adamszk)\
**Post date:** [May 30, 2020, 5:01pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/4 "2020-05-30T17:01:10Z")

</div>

Version 1.4.2 (2020-05-23)

julia\> using Pkg

julia\> Pkg.add(“Plots”)  
Updating registry at `C:\Users\Adam\.julia\registries\General`  
Updating git-repo `https://github.com/JuliaRegistries/General.git`  
Resolving package versions…  
Downloading artifact: FFMPEG  
Exception setting “SecurityProtocol”: “Cannot convert null to type “[System.Net](http://System.Net).  
SecurityProtocolType” due to invalid enumeration values. Specify one of the fol  
lowing enumeration values and try again. The possible enumeration values are “S  
sl3, Tls”.”  
At line:1 char:35

- [System.Net.ServicePointManager]:: \<\<\<\< SecurityProtocol =
  - CategoryInfo : InvalidOperation: (🙂 , RuntimeException
  - FullyQualifiedErrorId : PropertyAssignmentException

Exception calling “DownloadFile” with “2” argument(s): “The underlying connecti  
on was closed: An unexpected error occurred on a send.”  
At line:7 char:24

- $webclient.DownloadFile \<\<\<\< (“[https://github.com/JuliaBinaryWrappers/FFMPEG\_](https://github.com/JuliaBinaryWrappers/FFMPEG_)  
jll.jl/releases/download/FFMPEG-v4.1.0+3/FFMPEG.v4.1.0.x86\_64-w64-mingw32.tar.g  
z”, “C:\Users\Adam\AppData\Local\Temp\jl\_N7MVE21aPx-download.gz”)
  - CategoryInfo : NotSpecified: (🙂 , MethodInvocationException
  - FullyQualifiedErrorId : DotNetMethodException  
ERROR: Unable to automatically install ‘FFMPEG’ from ‘C:\Users\Adam.julia\packa  
ges\FFMPEG\_jll\tCUYA\Artifacts.toml’  
Stacktrace:  
[1] error(::String) at .\error.jl:33  
[2] ensure\_artifact\_installed(::String, ::Dict{String,Any}, ::String; platform:  
:Pkg.BinaryPlatforms.Platform, verbose::Bool, quiet\_download::Bool) at D:\buildb  
ot\worker\package\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Artifacts.jl:8  
94  
[3] ensure\_all\_artifacts\_installed(::String; platform::Pkg.BinaryPlatforms.Plat  
form, pkg\_uuid::Nothing, include\_lazy::Bool, verbose::Bool, quiet\_download::Bool  
) at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src  
Artifacts.jl:958  
[4] download\_artifacts(::Pkg.Types.Context, ::Array{String,1}; platform::Pkg.Bi  
naryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\package\_win64\build  
usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:616  
[5] download\_artifacts(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; p  
latform::Pkg.BinaryPlatforms.Windows, verbose::Bool) at D:\buildbot\worker\packa  
ge\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:595  
[6] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUI  
D,1}; preserve::Pkg.Types.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows)  
at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\Op  
erations.jl:1091  
[7] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; preserve::Pkg.Ty  
pes.PreserveLevel, platform::Pkg.BinaryPlatforms.Windows, kwargs::Base.Iterators  
.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\buildbot\worker\pa  
ckage\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:159  
[8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\buildbot\w  
orker\package\_win64\build\usr\share\julia\stdlib\v1.4\Pkg\src\API.jl:112  
[9] #add#27 at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1  
.4\Pkg\src\API.jl:109 [inlined]  
[10] add at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.4  
Pkg\src\API.jl:109 [inlined]  
[11] #add#24 at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v  
1.4\Pkg\src\API.jl:107 [inlined]  
[12] add at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdlib\v1.4  
Pkg\src\API.jl:107 [inlined]  
[13] add(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTu  
ple{(),Tuple{}}}) at D:\buildbot\worker\package\_win64\build\usr\share\julia\stdl  
ib\v1.4\Pkg\src\API.jl:106  
[14] add(::String) at D:\buildbot\worker\package\_win64\build\usr\share\julia\st  
dlib\v1.4\Pkg\src\API.jl:106  
[15] top-level scope at REPL[2]:1

julia\>

---

<div class="post-metadata">

**Author:** ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Post date:** [May 30, 2020, 5:04pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/5 "2020-05-30T17:04:51Z")

</div>

The legend says that a man once managed to include Plots on the first try. I am yet to meet that man…

---

<div class="post-metadata">

**Author:** ![YangsenMeteo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yangsenmeteo/32/15590_2.png) [@YangsenMeteo](https://discourse.julialang.org/u/YangsenMeteo)\
**Post date:** [June 9, 2020, 2:30pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/6 "2020-06-09T14:30:55Z")

</div>

Similar error happened when I typed  
“”“using Pkg  
Pkg.add(“Plots”)”“”  
to install Plots packages.  
Below are error codes:  
“”" 使用“2”个参数调用“DownloadFile”时发生异常:“在 WebClient 请求期间发生异常。”  
所在位置 行:7 字符: 1

- $webclient.DownloadFile("[https://github.com/JuliaBinaryWrappers/FFMPE](https://github.com/JuliaBinaryWrappers/FFMPE) …
- 

```julia
  + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : WebException

```

ERROR: Unable to automatically install ‘FFMPEG’ from ‘C:\Users\41832.julia\packages\FFMPEG\_jll\tCUYA\Artifacts.toml’“”"  
I have searched solution to this problem on StackOverFlow and found nothing.

---

<div class="post-metadata">

**Author:** ![YangsenMeteo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yangsenmeteo/32/15590_2.png) [@YangsenMeteo](https://discourse.julialang.org/u/YangsenMeteo)\
**Post date:** [June 9, 2020, 2:47pm UTC](https://discourse.julialang.org/t/julia-1-4-2-fails-to-include-plots-package/40473/8 "2020-06-09T14:47:45Z")

</div>

I was trying to install Plots package with Julia REPL but failed.  
‘’‘Thanks for your suggestion’‘’
