Skip to content

REPL tab-completion on Windows #611

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

Open
RefatIsmail96 opened this issue May 5, 2025 · 1 comment
Open

REPL tab-completion on Windows #611

RefatIsmail96 opened this issue May 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@RefatIsmail96
Copy link

RefatIsmail96 commented May 5, 2025

Affects: PythonCall

Describe the bug
A clear and concise description of what the bug is. What did you expect? What happened instead?
I imported a python package called mwpf, and when I tried to list its attributes (by pressing tab in REPL) I got the following error message that asked me to submit a bug report.

using PythonCall
const mwpf = PythonCall.pynew()
function init()
PythonCall.pycopy!(mwpf, pyimport("mwpf"))
return
end

julia> mwpf
Python: <module 'mwpf' from 'C:\Users\rismail\Desktop\EarlyFT\.CondaPkg\env\Lib\site-packages\mwpf\init.py'>

julia> mwpf.
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 0x7ffca6d86cbd -- PyType_Lookup at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
in expression starting at none:0
PyType_Lookup at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
PyObject_Dir at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
PyObject_Dir at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303 [inlined]
macro expansion at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:132 [inlined]
pydir at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:216
propertynames at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:293
unknown function (ip: 00000177aa93ff62)
complete_symbol at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:208
#complete_identifiers!#57 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1179
complete_identifiers! at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1079 [inlined]
completions at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1436
#complete_line#85 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:637
complete_line at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:634
unknown function (ip: 000001770966f468)
check_for_hint at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:387
#143 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2527
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]
#30 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:1711
jfptr_YY.30_8433.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
#254 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2614
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]
#30 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:1711
jfptr_YY.30_8473.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
macro expansion at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2861 [inlined]
macro expansion at .\lock.jl:273 [inlined]
#282 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2851
jfptr_YY.282_9008.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:2157 [inlined]
start_task at C:/workdir/src\task.c:1202
Allocations: 97558492 (Pool: 97554124; Big: 4368); GC: 96

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 0x7ffca6ea27c4 -- Py_FinalizeEx at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
in expression starting at none:0
Py_FinalizeEx at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
Py_FinalizeEx at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303 [inlined]
#37 at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\C\context.jl:194
unknown function (ip: 00000177aa940394)
_atexit at .\initdefs.jl:459
jfptr__atexit_71360.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:2157 [inlined]
ijl_atexit_hook at C:/workdir/src\init.c:271
ijl_exit at C:/workdir/src\init.c:207
jl_exception_handler at C:/workdir/src\signals-win.c:337 [inlined]
jl_exception_handler at C:/workdir/src\signals-win.c:229
__julia_personality at C:/workdir/src\win32_ucontext.c:28
_chkstk at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
RtlWow64GetCurrentCpuArea at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
KiUserExceptionDispatcher at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
PyType_Lookup at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
PyObject_Dir at C:\Users\rismail\Desktop\EarlyFT.CondaPkg\env\python312.dll (unknown line)
PyObject_Dir at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\C\pointers.jl:303 [inlined]
macro expansion at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:132 [inlined]
pydir at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\builtins.jl:216
propertynames at C:\Users\rismail.julia\packages\PythonCall\WMWY0\src\Core\Py.jl:293
unknown function (ip: 00000177aa93ff62)
complete_symbol at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:208
#complete_identifiers!#57 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1179
complete_identifiers! at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1079 [inlined]
completions at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPLCompletions.jl:1436
#complete_line#85 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:637
complete_line at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\REPL.jl:634
unknown function (ip: 000001770966f468)
check_for_hint at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:387
#143 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2527
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]
#30 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:1711
jfptr_YY.30_8433.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
#254 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2614
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]
#30 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:1711
jfptr_YY.30_8473.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
macro expansion at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2861 [inlined]
macro expansion at .\lock.jl:273 [inlined]
#282 at C:\workdir\usr\share\julia\stdlib\v1.11\REPL\src\LineEdit.jl:2851
jfptr_YY.282_9008.1 at C:\Users\rismail.julia\juliaup\julia-1.11.3+0.x64.w64.mingw32\share\julia\compiled\v1.11\REPL\u0gqU_hz07T.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:2157 [inlined]
start_task at C:/workdir/src\task.c:1202
Allocations: 97558492 (Pool: 97554124; Big: 4368); GC: 96

Your system
Please provide detailed information about your system:

  • The operating system: Windows 11
  • julia: 1.11.3
  • CondaPkg: 0.2.24
  • PythonCall: 0.9.24
  • PythonCall.C.python_version() => v"3.12.10"

julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50 (2025-01-21 19:42 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 22 × Intel(R) Core(TM) Ultra 7 155H
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 22 default, 0 interactive, 11 GC (on 22 virtual cores)
Environment:
JULIA_DEBUG = Distributed
JULIA_PYTHONCALL_PICKLE = dill
JULIA_EDITOR = code
JULIA_NUM_THREADS =

@RefatIsmail96 RefatIsmail96 added the bug Something isn't working label May 5, 2025
@cjdoris
Copy link
Collaborator

cjdoris commented May 11, 2025

I think this is a dup of #586, please join the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants