Closed wangnangg closed 6 years ago
@Shushman this is a dependency for BayesNets.jl. Does this work for you in 1.0?
I am able to using
and test
TikzGraphs
on 1.0. Is the above error due to it not having a Project.toml
or something?
using
and test
do not work for me. I am using the prebuilt Julia 1.0 binary.
julia> using TikzGraphs
[ Info: Precompiling TikzGraphs [b4f28e30-c73f-5eaf-a395-8a9db949a742]
ERROR: LoadError: UndefVarError: mimewritable not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
[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] top-level scope at none:2
[7] eval at ./boot.jl:319 [inlined]
[8] eval(::Expr) at ./client.jl:389
[9] top-level scope at ./none:3
in expression starting at /home/wangnan/.julia/packages/TikzPictures/9Y3H0/src/TikzPictures.jl:105
ERROR: LoadError: Failed to precompile TikzPictures [37f6aa50-8035-52d0-81c2-5a1d08754b2d] to /home/wangnan/.julia/compiled/v1.0/TikzPictures/826g6.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
[4] _require(::Base.PkgId) at ./logging.jl:311
[5] require(::Base.PkgId) at ./loading.jl:852
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:834
[8] include at ./boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at ./loading.jl:1038
[10] include(::Module, ::String) at ./sysimg.jl:29
[11] top-level scope at none:2
[12] eval at ./boot.jl:319 [inlined]
[13] eval(::Expr) at ./client.jl:389
[14] top-level scope at ./none:3
in expression starting at /home/wangnan/.julia/packages/TikzGraphs/EDkIk/src/TikzGraphs.jl:12
ERROR: Failed to precompile TikzGraphs [b4f28e30-c73f-5eaf-a395-8a9db949a742] to /home/wangnan/.julia/compiled/v1.0/TikzGraphs/oGL7c.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
[4] _require(::Base.PkgId) at ./logging.jl:311
[5] require(::Base.PkgId) at ./loading.jl:852
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:834
Did you dev TikzPictures
or add TikzPictures
first? Or did you just do add TikzGraphs
?
EDIT - These packages are currently being fixed, so the registered versions of them are still incorrect for Julia 1.0. You need to dev
the packages rather than add
-ing them in the package manager (see https://docs.julialang.org/en/latest/stdlib/Pkg/ for details)
In this specific case, first dev TikzPictures
which will add the latest master
and then do using TikzPictures
to see that it compiles correctly. Then do rm TikzGraphs
so that it is removed from your manifest and then do dev TikzGraphs
. After this you should be able to build it.
It works.
dev TikzPictures
dev TikzGraphs
Great! I am closing the issue for now.
Error message upon building: