# Cannot Pkg.build Conda

**URL:** <https://discourse.julialang.org/t/cannot-pkg-build-conda/13192>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 10, 2018, 4:39pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192 "2018-08-10T16:39:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoodNews](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@GoodNews](https://discourse.julialang.org/u/GoodNews)\
**Post date:** [August 10, 2018, 4:39pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/1 "2018-08-10T16:39:51Z")

</div>

Hello everyone,

A few days ago I started programming julia and now I got stuck.  
My final goal is to plot with Julia, but for this I need Conda - and here comes my problem:  
When I execute Pkg.build(“Conda”) I get

```julia
ERROR: LoadError: ArgumentError: isdefined: too few arguments (expected 2)
Stacktrace:
 [1] top-level scope at none:0
 [2] include at .\boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1038
 [4] include(::Module, ::String) at .\sysimg.jl:29
 [5] include(::String) at .\client.jl:388
 [6] top-level scope at none:0
in expression starting at C:\Users\benej\.julia\packages\Conda\a196m\deps\build.jl:7

```

Could anybody help me?  
Regards,

Ben

---

<div class="post-metadata">

**Author:** ![Moses](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@Moses](https://discourse.julialang.org/u/Moses)\
**Post date:** [August 10, 2018, 6:13pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/2 "2018-08-10T18:13:13Z")

</div>

Hi Ben,

from the file path given in your error message I asume you are running Julia on Windows OS.

Which package do you want to use for plotting? I had a lot of trouble with the Python-related/-dependent packages as well, because I don’t have Python installed.

As I am using Juno (from JuliaPro) I found it easier to use PlotlyJS (Java Script-based plotting).  
Would that be an option for you as well?

Best

Moses

---

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [August 10, 2018, 6:21pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/3 "2018-08-10T18:21:00Z")

</div>

See [here](https://github.com/JuliaPy/Conda.jl/issues/112). Apparently this should be fixed in Conda v1.0.1 … try `Pkg.update()`.

---

<div class="post-metadata">

**Author:** ![GoodNews](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@GoodNews](https://discourse.julialang.org/u/GoodNews)\
**Post date:** [August 10, 2018, 8:19pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/4 "2018-08-10T20:19:45Z")

</div>

Hello,

thank you for your messages.  
@crbinz: I use conda 4.5.4 and I think until now julia 1.0.0 is the most actual version.  
‘Pkg.update’ did not solve my problem… Do you have any other idea?

@Moses: I just want to have a possibility to make some easy plots.  
PlotlyJS seems to be a good alternative.  
Now on 'Pkg.build(“PlotlyJS”) I get

```julia
  Building MbedTLS ───→ `C:\Users\benej\.julia\packages\MbedTLS\Qo8TN\deps\build.log`
  Building HttpParser → `C:\Users\benej\.julia\packages\HttpParser\yGK3a\deps\build.log`
┌ Error: Error building `HttpParser`:
│ ERROR: LoadError: UndefVarError: is_windows not defined
│ Stacktrace:
│ [1] top-level scope at none:0
│ [2] include at .\boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at .\loading.jl:1038
│ [4] include(::Module, ::String) at .\sysimg.jl:29
│ [5] include(::String) at .\client.jl:388
│ [6] top-level scope at none:0
│ in expression starting at C:\Users\benej\.julia\packages\HttpParser\yGK3a\deps\build.jl:10
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
  Building WebIO ─────→ `C:\Users\benej\.julia\packages\WebIO\7rrhi\deps\build.log`
┌ Error: Error building `WebIO`:
│ ERROR: LoadError: MethodError: no method matching replace(::String, ::Regex, ::String)
│ Closest candidates are:
│ replace(::String, !Matched::Pair{#s55,B} where B where #s55<:AbstractChar; count) at strings/util.jl:414
│ replace(::String, !Matched::Pair{#s52,B} where B where #s52<:Union{Tuple{Vararg{AbstractChar,N} where N}, Set{#s49} where #s49<:AbstractChar, AbstractArray{#s50,1} where #s50<:AbstractChar}; count) at strings/util.jl:419
│ replace(::String, !Matched::Pair; count) at strings/util.jl:423
│ ...
│ Stacktrace:
│ [1] install_ijulia_config() at C:\Users\benej\.julia\packages\WebIO\7rrhi\deps\build.jl:15
│ [2] top-level scope at none:0
│ [3] include at .\boot.jl:317 [inlined]
│ [4] include_relative(::Module, ::String) at .\loading.jl:1038
│ [5] include(::Module, ::String) at .\sysimg.jl:29
│ [6] include(::String) at .\client.jl:388
│ [7] top-level scope at none:0
│ in expression starting at C:\Users\benej\.julia\packages\WebIO\7rrhi\deps\build.jl:55
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
  Building Blink ─────→ `C:\Users\benej\.julia\packages\Blink\uzZJ3\deps\build.log`
┌ Error: Error building `Blink`:
│ ERROR: LoadError: LoadError: LoadError: UndefVarError: is_apple not defined
│ Stacktrace:
│ [1] top-level scope at none:0
│ [2] eval at .\boot.jl:319 [inlined]
│ [3] @static(::LineNumberNode, ::Module, ::Any) at .\osutils.jl:19
│ [4] include at .\boot.jl:317 [inlined]
│ [5] include_relative(::Module, ::String) at .\loading.jl:1038
│ [6] include at .\sysimg.jl:29 [inlined]
│ [7] include(::String) at C:\Users\benej\.julia\packages\Blink\uzZJ3\deps\build.jl:1
│ [8] top-level scope at none:0
│ [9] include at .\boot.jl:317 [inlined]
│ [10] include_relative(::Module, ::String) at .\loading.jl:1038
│ [11] include(::Module, ::String) at .\sysimg.jl:29
│ [12] include(::String) at .\client.jl:388
│ [13] top-level scope at none:0
│ in expression starting at C:\Users\benej\.julia\packages\Blink\uzZJ3\src\AtomShell\install.jl:9
│ in expression starting at C:\Users\benej\.julia\packages\Blink\uzZJ3\src\AtomShell\install.jl:9
│ in expression starting at C:\Users\benej\.julia\packages\Blink\uzZJ3\deps\build.jl:4
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
  Building PlotlyJS ──→ `C:\Users\benej\.julia\packages\PlotlyJS\i6J4s\deps\build.log`
┌ Error: Error building `PlotlyJS`:
│ ERROR: LoadError: LoadError: UndefVarError: Markdown not defined
│ Stacktrace:
│ [1] include at .\boot.jl:317 [inlined]
│ [2] include_relative(::Module, ::String) at .\loading.jl:1038
│ [3] include(::Module, ::String) at .\sysimg.jl:29
│ [4] include(::String) at .\client.jl:388
│ [5] top-level scope at none:0
│ [6] include at .\boot.jl:317 [inlined]
│ [7] include_relative(::Module, ::String) at .\loading.jl:1038
│ [8] include(::Module, ::String) at .\sysimg.jl:29
│ [9] include(::String) at .\client.jl:388
│ [10] top-level scope at none:0
│ in expression starting at C:\Users\benej\.julia\packages\PlotlyJS\i6J4s\deps\make_schema_docs.jl:3
│ in expression starting at C:\Users\benej\.julia\packages\PlotlyJS\i6J4s\deps\build.jl:10
└ @ Pkg.Operations C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:1068
  Building Conda ─────→ `C:\Users\benej\.julia\packages\Conda\m7vem\deps\build.log`
  Building FFTW ──────→ `C:\Users\benej\.julia\packages\FFTW\Kjb9G\deps\build.log`

```

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [August 10, 2018, 8:41pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/5 "2018-08-10T20:41:08Z")

</div>

If you just started using Julia, use 0.7, not a prerelease of 1.0.

---

<div class="post-metadata">

**Author:** ![crbinz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/crbinz/32/1919_2.png) [@crbinz](https://discourse.julialang.org/u/crbinz)\
**Post date:** [August 11, 2018, 1:14am UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/6 "2018-08-11T01:14:53Z")

</div>

I meant that `Conda.jl v1.0.1` is the version that should fix this issue. Can you check the installed version of `Conda.jl` with `] status`?

---

<div class="post-metadata">

**Author:** ![GoodNews](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@GoodNews](https://discourse.julialang.org/u/GoodNews)\
**Post date:** [August 12, 2018, 1:01pm UTC](https://discourse.julialang.org/t/cannot-pkg-build-conda/13192/7 "2018-08-12T13:01:14Z")

</div>

I did not know about the prerelease status of Julia 1.0.0,  
after I switched to 0.7.0 it works fine.  
For the first, I will go on like this.  
Thank you guys!  
Ben
