Gadfly package cannot be found? - julia

Using Julia 0.5.0 and Emacs 25.1 on a Windows 10 machine, I am attempting to use the Gadfly package. Unfortunately, the following output appears:
C:\Users\CaitlinG>julia -e "using Gadfly"
ERROR: ArgumentError: Module Gadfly not found in current path.
Run `Pkg.add("Gadfly")` to install the Gadfly package.
in require(::Symbol) at .\loading.jl:365
in eval(::Module, ::Any) at .\boot.jl:234
in process_options(::Base.JLOptions) at .\client.jl:239
in _start() at .\client.jl:318
C:\Users\CaitlinG>julia -e "Pkg.add(\"Gadfly\")"
INFO: Nothing to be done
INFO: METADATA is out-of-date — you may not have the latest version of Gadfly
INFO: Use `Pkg.update()` to get the latest versions of your packages
C:\Users\CaitlinG>julia -e "Pkg.update()"
INFO: Updating METADATA...
INFO: Updating cache of DataFrames...
INFO: Updating cache of DataFrames...
INFO: Computing changes...
INFO: No packages to install, update or remove
Does anyone know why this is occurring?
Thanks.

Related

How to load the PyPlot package in Julia-1.2.0-1

I cannot load the PyPlot package using Julia 1.2.0-1 running on MacOS 10.15.1.
After starting Julia I type a ] to get to "Pkg". I then type
add PyPlot
and get the following messages:
Updating registry at ~/.juliapro/JuliaPro_v1.2.01/registries/JuliaPro
Updating git-repo https://pkg.juliacomputing.com//registry/JuliaPro
ERROR: GitError(Code:EMERGECONFLICT, Class:Checkout, 1332 conflicts prevent checkout)
followed by a lengthy stacktrace. I have never seen this with previous Julia and MacOS versions; they just loaded the package.
Deleting the registry and restarting Julia did the trick! Thanks to all >who replied!

Julialang: error ` ERROR: LoadError: LoadError: Unable to open libLLVM!` when llvm is installed

I am still new to the Julia language, but ran into a strange error. So I am trying to precompile and load a package called Sympy.jl for symbolic mathematics like the eponymous Python package.
I have Julia 1.0.0 installed, and ran the code from the package manager:
build SpecialFunctions;
as this is a dependency for the Sympy package. I am getting an error that says:
ERROR: LoadError: LoadError: Unable to open libLLVM!
Now, I checked the julia versioninfo() command and it shows that LLVM is installed. Not sure why it says I am using red-hat linux when I am using Ubuntu. Here is the output.
Julia Version 1.0.0
Platform Info:
OS: Linux (x86_64-redhat-linux)
CPU: Intel(R) Core(TM) i7-6850K CPU # 3.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)
Does anyone know how to fix this? I googled around about all references to similar issues have to do with earlier versions of Julia, so was not sure what applied anymore.
make sure you have libLLVM.so in your path. If not, and LLVM is installed, then create a simlink to the library:
on ubuntu:
$ ln -s /usr/lib/x86-64-linux-gnu/libLLVM.6.0.so.1 /usr/lib/x86-64-linux-gnu/libLLVM.so

Building error with IJulia

I used to use Julia in Jupyter notebook. I uninstalled yesterday the .julia directory because of other issues and after Pkg.add(IJulia) Im getting a building error related to ZMQ. the full error is below.
julia> Pkg.build("ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building ZMQ
Warning: staticfloat/juliatranslated/zeromq32-3.2.5 already installed, it's just not linked.
Error: Formulae found in multiple taps:
* staticfloat/juliadeps/zeromq32
* staticfloat/juliatranslated/zeromq32
Please use the fully-qualified name e.g. staticfloat/juliadeps/zeromq32 to refer the formula.
=================================[ ERROR: ZMQ ]=================================
LoadError: failed process: Process(`/Users/pacagal/.julia/v0.5/Homebrew/deps/usr/bin/brew link staticfloat/juliatranslated/zeromq32 --force`, ProcessExited(1)) [1]
while loading /Users/pacagal/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 35
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: ZMQ had build errors.
- packages with build errors remain installed in /Users/pacagal/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("ZMQ")`
- build a single package by running its `deps/build.jl` script
================================================================================
I have also run the build.jl file but I am getting an error too.
I was having the same issue this morning. In the terminal I ran brew install zmq and that resolved the issue.
I still had to run julia>Pkg.build("Nettle") after installing zmq and after that IJulia is running fine.

Confusing error when updating packages in Julia 0.5.0

When attempting to update the installed packages on my Windows 10 laptop with Julia 0.5.0 installed, the following error appeared with regard to Rmath:
C:\Users\CaitlinG>julia -e "Pkg.update()"
INFO: Updating METADATA...
INFO: Updating cache of ColorTypes...
INFO: Updating cache of Gadfly...
INFO: Updating cache of StatsBase...
INFO: Updating cache of DataFrames...
INFO: Updating cache of FixedPointNumbers...
INFO: Updating cache of Colors...
INFO: Updating cache of DataFrames...
INFO: Computing changes...
INFO: Upgrading ColorTypes: v0.2.8 => v0.2.11
INFO: Upgrading Colors: v0.6.8 => v0.6.9
INFO: Upgrading FixedPointNumbers: v0.1.8 => v0.2.1
INFO: Upgrading Gadfly: v0.5.0 => v0.5.1
INFO: Upgrading StatsBase: v0.11.0 => v0.11.1
INFO: Building Rmath
================================[ ERROR: Rmath ]================================
LoadError: ArgumentError: Module BinDeps not found in current path.
Run `Pkg.add("BinDeps")` to install the BinDeps package.
while loading C:\users\caitling\emacs251\.julia\v0.5\Rmath\deps\build.jl, in exp
ression starting on line 1
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: Rmath had build errors.
- packages with build errors remain installed in C:\users\caitling\emacs251\.ju
lia\v0.5
- build the package(s) and all dependencies with `Pkg.build("Rmath")`
- build a single package by running its `deps/build.jl` script
================================================================================
I am also confused by the inability of Julia to locate 'Gadfly.jl' despite the fact that it is installed as the above output would indicate.
Thank you.
It could be due to the path to your package directory being case sensitive. I had the same problem after specifying a local package directory until I realised, thanks to this discussion, that I had the wrong capitalisation in the specified path.
I'm pretty sure C:\\users should be C:\\Users but check the rest of your path which is currently:
C:\users\caitling\emacs251\.julia\
you can then check if this is the problem by
ENV["JULIA_PKGDIR"] ="C:\\Users\\caitling\\emacs251\\.julia"
Pkg.build("Rmath")

Installing Cairo and Winston for Julia

I am trying to install the Cairo and Winston packages fro Julia.
However, this is the following output that I receive when I try to test Winston.
julia> Pkg.add("Winston")
INFO: Nothing to be done.
julia> using Winston
ERROR: could not open file /Users/sethhirsh/.julia/v0.2/Cairo/src/../deps/deps.jl
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in reload_path at loading.jl:140
in _require at loading.jl:58
in require at loading.jl:46
vin include at boot.jl:238
in include_from_node1 at loading.jl:114
in reload_path at loading.jl:140
in _require at loading.jl:58
in require at loading.jl:46
at /Users/sethhirsh/.julia/v0.2/Cairo/src/Cairo.jl:3
at /Users/sethhirsh/.julia/v0.2/Winston/src/Winston.jl:3
julia> Pkg.add("Cairo")
INFO: Nothing to be done.
================================[ ERROR: Cairo ]================================
failed process: Process(/Users/sethhirsh/.julia/v0.2/Cairo/deps/src/glib-2.34.3/configure --prefix=/Users/sethhirsh/.julia/v0.2/Cairo/deps/usr, ProcessExited(1)) [1]v
at /Users/sethhirsh/.julia/v0.2/Cairo/deps/build.jl:130`
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: Homebrew and Cairo had build errors.
packages with build errors remain installed in /Users/sethhirsh/.julia/v0.2
build a package and all its dependencies with `Pkg.build(pkg)
build a single package by running its deps/build.jl script
================================================================================ `
Any help in fixing these errors is appreciated.
Me too got these errors once. For me When adding 'Winston' library 'Cairo' was a dependency. So What I would suggest is to completely uninstall Julia from system, because Package.rm() may not not make things clear for re-installation of packages alone. Then reinstall the Julia and make sure internet connection before typing Package.add("Winston"). Cairo will come along.

Resources