Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyCall.py2array errors on adjoint. #1087

Open
consumere opened this issue Nov 27, 2024 · 0 comments
Open

PyCall.py2array errors on adjoint. #1087

consumere opened this issue Nov 27, 2024 · 0 comments

Comments

@consumere
Copy link

on my Windows machine

using PyCall
@pyimport pandas as pd
pd.DataFrame([1 2.2 3]')|>x->PyCall.py2array(Array,x)

gives
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks. Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ff8b3d1ec77 -- PyObject_GetBuffer at C:\Users\xxx\.julia\conda\3\x86_64\python310.dll (unknown line) in expression starting at REPL[87]:1 PyObject_GetBuffer at C:\Users\chs72fw\.julia\conda\3\x86_64\python310.dll (unknown line) isbuftype! at C:\Users\chs72fw\.julia\packages\PyCall\1gn3u\src\pybuffer.jl:134 [inlined] py2array at C:\Users\chs72fw\.julia\packages\PyCall\1gn3u\src\conversions.jl:400 convert at C:\Users\chs72fw\.julia\packages\PyCall\1gn3u\src\conversions.jl:421 jfptr_convert_8829 at C:\Users\chs72fw\.julia\compiled\v1.11\PyCall\GkzkC_1UwCw.dll (unknown line) py2array at C:\Users\chs72fw\.julia\packages\PyCall\1gn3u\src\conversions.jl:350 unknown function (ip: 000002c286acea0c) py2array at C:\Users\chs72fw\.julia\packages\PyCall\1gn3u\src\conversions.jl:407 #341 at .\REPL[87]:1 [inlined] |> at .\operators.jl:926 unknown function (ip: 000002c286ace28b) jl_apply at C:/workdir/src\julia.h:2157 [inlined] do_call at C:/workdir/src\interpreter.c:126 eval_value at C:/workdir/src\interpreter.c:223 eval_stmt_value at C:/workdir/src\interpreter.c:174 [inlined] eval_body at C:/workdir/src\interpreter.c:681 jl_interpret_toplevel_thunk at C:/workdir/src\interpreter.c:821 jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:943 jl_toplevel_eval_flex at C:/workdir/src\toplevel.c:886 ijl_toplevel_eval at C:/workdir/src\toplevel.c:952 [inlined] ijl_toplevel_eval_in at C:/workdir/src\toplevel.c:994 eval at .\boot.jl:430 [inlined] eval_user_input at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:245 repl_backend_loop at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:342 #start_repl_backend#59 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:327 start_repl_backend at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:324 #run_repl#72 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:483 run_repl at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:469 jfptr_run_repl_10352 at C:\Users\chs72fw\.julia\juliaup\julia-1.11.1+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_e6ieL.dll (unknown line) #1139 at .\client.jl:446 jfptr_YY.1139_15054 at C:\Users\chs72fw\.julia\juliaup\julia-1.11.1+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_e6ieL.dll (unknown line) jl_apply at C:/workdir/src\julia.h:2157 [inlined] jl_f__call_latest at C:/workdir/src\builtins.c:875 #invokelatest#2 at .\essentials.jl:1055 [inlined] invokelatest at .\essentials.jl:1052 [inlined] run_main_repl at .\client.jl:430 repl_main at .\client.jl:567 [inlined] _start at .\client.jl:541 jfptr__start_73819.1 at C:\Users\xxx\.julia\juliaup\julia-1.11.1+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line) jl_apply at C:/workdir/src\julia.h:2157 [inlined] true_main at C:/workdir/src\jlapi.c:900 jl_repl_entrypoint at C:/workdir/src\jlapi.c:1059 mainCRTStartup at C:/workdir/cli\loader_exe.c:58 BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line) RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line) Allocations: 154153994 (Pool: 154148040; Big: 5954); GC: 300
similar on osx:
[6740] signal 11 (1): Segmentation fault: 11 in expression starting at REPL[3]:1 PyObject_GetBuffer at /Users/apfel/.julia/conda/3/x86_64/lib/libpython3.10.dylib (unknown line) isbuftype! at /Users/apfel/.julia/packages/PyCall/1gn3u/src/pybuffer.jl:134 [inlined] py2array at /Users/apfel/.julia/packages/PyCall/1gn3u/src/conversions.jl:400 convert at /Users/apfel/.julia/packages/PyCall/1gn3u/src/conversions.jl:421 jfptr_convert_8689 at /Users/apfel/.julia/compiled/v1.11/PyCall/GkzkC_xBpQw.dylib (unknown line) py2array at /Users/apfel/.julia/packages/PyCall/1gn3u/src/conversions.jl:350 unknown function (ip: 0x117f671b8) py2array at /Users/apfel/.julia/packages/PyCall/1gn3u/src/conversions.jl:407 #1 at ./REPL[3]:1 [inlined] |> at ./operators.jl:926 unknown function (ip: 0x117f66989) jl_apply at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/./julia.h:2157 [inlined] do_call at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/interpreter.c:126 eval_stmt_value at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/interpreter.c:174 eval_body at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/interpreter.c:663 jl_interpret_toplevel_thunk at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/interpreter.c:821 jl_toplevel_eval_flex at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/toplevel.c:943 jl_toplevel_eval_flex at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/toplevel.c:886 ijl_toplevel_eval at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/toplevel.c:952 [inlined] ijl_toplevel_eval_in at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/toplevel.c:994 eval at ./boot.jl:430 [inlined] eval_user_input at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:245 repl_backend_loop at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:342 #start_repl_backend#59 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:327 start_repl_backend at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:324 #run_repl#72 at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:483 run_repl at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/usr/share/julia/stdlib/v1.11/REPL/src/REPL.jl:469 jfptr_run_repl_10090 at /Users/apfel/.julia/juliaup/julia-1.11.1+0.x64.apple.darwin14/share/julia/compiled/v1.11/REPL/u0gqU_D0D38.dylib (unknown line) #1139 at ./client.jl:446 jfptr_YY.1139_14579 at /Users/apfel/.julia/juliaup/julia-1.11.1+0.x64.apple.darwin14/share/julia/compiled/v1.11/REPL/u0gqU_D0D38.dylib (unknown line) jl_apply at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/./julia.h:2157 [inlined] jl_f__call_latest at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/builtins.c:875 #invokelatest#2 at ./essentials.jl:1055 [inlined] invokelatest at ./essentials.jl:1052 [inlined] run_main_repl at ./client.jl:430 repl_main at ./client.jl:567 [inlined] _start at ./client.jl:541 jfptr__start_72559.1 at /Users/apfel/.julia/juliaup/julia-1.11.1+0.x64.apple.darwin14/lib/julia/sys.dylib (unknown line) jl_apply at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/./julia.h:2157 [inlined] true_main at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/jlapi.c:900 jl_repl_entrypoint at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-macmini-x64-5.0/build/default-macmini-x64-5-0/julialang/julia-master/src/jlapi.c:1059 Allocations: 1392531 (Pool: 1392469; Big: 62); GC: 2 Segmentation fault: 11

@consumere consumere changed the title PyCall.py2array piping error. PyCall.py2array errors on adjoint. Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant