JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
475 stars 87 forks source link

InexactError: check_top_bit(Int32, -1) #481

Closed J-Massey closed 4 years ago

J-Massey commented 4 years ago

Good afternoon, I'm very new to julia (within the week) and am trying to plot a couple of things with pyplot as that's what I'm familiar with. I've added the PyPlot package but when I try and load it into my script I get this error:

LoadError: InexactError: check_top_bit(Int32, -1) in expression starting at /home/masseyjmo/Workspace/Lotus/projects/vforce/velocity_profiles/blasius.jl:6 throw_inexacterror(::Symbol, ::Any, ::Int32) at boot.jl:567 check_top_bit at boot.jl:581 [inlined] toUInt64 at boot.jl:691 [inlined] Type at boot.jl:722 [inlined] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.PipeEndpoint,Base.TTY,RawFD}) at process.jl:347

495 at process.jl:509 [inlined]

setup_stdio(::getfield(Base, Symbol("##495#496")){Cmd,Base.Process}, ::Tuple{Pipe,Base.TTY,IOStream}) at process.jl:490

_spawn#494(::Nothing, ::Function, ::Cmd, ::Tuple{Pipe,Base.TTY,IOStream}) at process.jl:508

(::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Pipe,Base.TTY,IOStream}) at none:0

_spawn#491(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,IOStream}) at process.jl:398

_spawn(::Base.CmdRedirect, ::Tuple{Pipe,Base.TTY,IOStream}) at process.jl:398

open#504(::Bool, ::Bool, ::Function, ::Base.CmdRedirect, ::Base.TTY) at process.jl:599

open at process.jl:0 [inlined]

open(::Base.CmdRedirect, ::String, ::Base.TTY) at process.jl:567 create_expr_cache(::String, ::String, ::Array{Pair{Base.PkgId,UInt64},1}, ::Base.UUID) at loading.jl:1111 compilecache(::Base.PkgId, ::String) at loading.jl:1194 _require(::Base.PkgId) at loading.jl:960 require(::Base.PkgId) at loading.jl:858 require(::Module, ::Symbol) at loading.jl:853

Have you got any advice?

Thanks, Jonah

J-Massey commented 4 years ago

All that was required was a quick restart and I was away