annereinarz / Peridynamics

Simple 2D peridynamics code written in julia
6 stars 4 forks source link

Questions about PyCall object #2

Open haotuzi opened 5 years ago

haotuzi commented 5 years ago

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!

annereinarz commented 5 years ago

can you let me know which version of julia you are using please?

On Mon, Oct 15, 2018 at 1:42 PM haotuzi notifications@github.com wrote:

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: image] https://user-images.githubusercontent.com/43378587/46948911-35319c80-d0b2-11e8-8698-2128dc6cf357.png

what should i do?looking forward to your reply!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/annereinarz/Peridynamics/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/ALlrTIGA4HUewWYmGOIGB6gZ4UHygnAIks5ulHSogaJpZM4XcJ__ .

haotuzi commented 5 years ago

julia 1.0

annereinarz commented 5 years ago

this is the same version I use and I cannot replicate the issue. have you changed anything before running?

On Mon, Oct 15, 2018 at 2:38 PM haotuzi notifications@github.com wrote:

julia 1.0

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/annereinarz/Peridynamics/issues/2#issuecomment-429836871, or mute the thread https://github.com/notifications/unsubscribe-auth/ALlrTLUWjo5XFa93LcAz6PtyLTw9qphoks5ulIGqgaJpZM4XcJ__ .

haotuzi commented 5 years ago

NO. Is your computer system Linux or windows?

annereinarz commented 5 years ago

I use ubuntu. I'm afraid I cannot fix this issue if I cannot replicate it

On Mon, Oct 15, 2018 at 3:40 PM haotuzi notifications@github.com wrote:

NO,your computer system is windows?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/annereinarz/Peridynamics/issues/2#issuecomment-429856424, or mute the thread https://github.com/notifications/unsubscribe-auth/ALlrTPscnKSMWkgXaPcL3Qrwcr_MhmMVks5ulJBRgaJpZM4XcJ__ .

haotuzi commented 5 years ago

Oh,i see.thankyou