Skip to content

Questions about PyCall object #2

@haotuzi

Description

@haotuzi

Hello, it's me again.
I still can't run the test.jl file successfully, and I can't solve this problem myself.The result of the error is as follows:

[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]

[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
Number of timesteps: 114
ERROR: LoadError: PyCall.PyError("\$(Expr(:escape, :(ccall(#= C:\\Users\\huoze\\.julia\\packages\\Py
Call\\0jMpb\\src\\pyfncall.jl:44 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsp
tr, kw))))", PyCall.PyObject(Ptr{PyCall.PyObject_struct} @0x0000000053d46930), PyCall.PyObject(Ptr{P
yCall.PyObject_struct} @0x000000002280c6a8), PyCall.PyObject(Ptr{PyCall.PyObject_struct} @0x00000000
2a6d4308))
Stacktrace:
 [1] pyerr_check at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\exception.jl:60 [inlined]
 [2] pyerr_check at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\exception.jl:64 [inlined]
 [3] macro expansion at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\exception.jl:84 [inlined]
 [4] __pycall!(::PyCall.PyObject, ::Ptr{PyCall.PyObject_struct}, ::PyCall.PyObject, ::Ptr{Nothing})
at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\pyfncall.jl:44
 [5] _pycall!(::PyCall.PyObject, ::PyCall.PyObject, ::Tuple{String}, ::Int64, ::Ptr{Nothing}) at C:\
Users\huoze\.julia\packages\PyCall\0jMpb\src\pyfncall.jl:22
 [6] #pycall#88 at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\pyfncall.jl:11 [inlined]
 [7] pycall at C:\Users\huoze\.julia\packages\PyCall\0jMpb\src\pyfncall.jl:86 [inlined]
 [8] #savefig#97(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function,
 ::String) at C:\Users\huoze\.julia\packages\PyPlot\fZuOQ\src\PyPlot.jl:179
 [9] savefig at C:\Users\huoze\.julia\packages\PyPlot\fZuOQ\src\PyPlot.jl:176 [inlined]
 [10] top-level scope at D:\Julia TEST\test.jl:120 [inlined]
 [11] top-level scope at .\none:0
 [12] include_string(::Module, ::String, ::String) at .\loading.jl:1005
 [13] (::getfield(Atom, Symbol("##129#135")){String,String,Module})() at C:\Users\huoze\.julia\packa
ges\Atom\7rQ1O\src\eval.jl:125
 [14] withpath(::getfield(Atom, Symbol("##129#135")){String,String,Module}, ::String) at C:\Users\hu
oze\.julia\packages\CodeTools\hB4Hy\src\utils.jl:30
 [15] withpath at C:\Users\huoze\.julia\packages\Atom\7rQ1O\src\eval.jl:46 [inlined]
 [16] #128 at C:\Users\huoze\.julia\packages\Atom\7rQ1O\src\eval.jl:122 [inlined]
 [17] with_logstate(::getfield(Atom, Symbol("##128#134")){String,String,Module}, ::Base.CoreLogging.
LogState) at .\logging.jl:397
 [18] with_logger at .\logging.jl:493 [inlined]
 [19] #127 at C:\Users\huoze\.julia\packages\Atom\7rQ1O\src\eval.jl:121 [inlined]
 [20] hideprompt(::getfield(Atom, Symbol("##127#133")){String,String,Module}) at C:\Users\huoze\.jul
ia\packages\Atom\7rQ1O\src\repl.jl:85
 [21] macro expansion at C:\Users\huoze\.julia\packages\Atom\7rQ1O\src\eval.jl:120 [inlined]
 [22] (::getfield(Atom, Symbol("##126#132")){Dict{String,Any}})() at .\task.jl:85
in expression starting at D:\Julia TEST\test.jl:109

image

what should i do?looking forward to your reply!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions