Cannot Pkg.build Conda

question

#1

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

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


#2

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


Pkg.build Conda doesn't work
#3

See here. Apparently this should be fixed in Conda v1.0.1 … try Pkg.update().


#4

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

  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`

#5

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


#6

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?


#7

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