JuliaPy / JuliaPy/PyCall.jl

Error importing cv2 in julia0.7

未关闭
#554 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Julia
星标
1.5k
派生
186
PR 合并指标
30 天内没有已合并 PR

描述

```
julia> @pyimport cv2
ERROR: BoundsError: attempt to access ""
at index [1]
Stacktrace:
[1] checkbounds at ./strings/basic.jl:193 [inlined]
[2] codeunit at ./strings/string.jl:87 [inlined]
[3] getindex at ./strings/string.jl:206 [inlined]
[4] (::getfield(PyCall, Symbol("##77#81")))(::Tuple{String,PyObject}) at /home/ayush99/.julia/dev/PyCall/src/PyCall.jl:336
[5] iterate(::Base.Iterators.Filter{getfield(PyCall, Symbol("##77#81")),Array{Tuple{AbstractString,PyObject},1}}) at ./iterators.jl:434
[6] iterate at ./generator.jl:44 [inlined]
[7] grow_to!(::Array{Symbol,1}, ::Base.Generator{Base.Iterators.Filter{getfield(PyCall, Symbol("##77#81")),Array{Tuple{AbstractString,PyObject},1}},getfield(PyCall, Symbol("##76#80"))}) at ./array.jl:674
[8] collect(::Base.Generator{Base.Iterators.Filter{getfield(PyCall, Symbol("##77#81")),Array{Tuple{AbstractString,PyObject},1}},getfield(PyCall, Symbol("##76#80"))}) at ./array.jl:617
[9] pywrap(::PyObject, ::Symbol) at /home/ayush99/.julia/dev/PyCall/src/PyCall.jl:336
[10] pywrap(::PyObject) at /home/ayush99/.julia/dev/PyCall/src/PyCall.jl:328
[11] top-level scope at /home/ayush99/.julia/dev/PyCall/src/PyCall.jl:526
```

Importing other packages such as numpy seems to work just fine.

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with the @pyimport cv2 entry point and the pywrap code around PyCall.jl:336, using the provided stack trace to inspect the failing string access. Compare this path with the successful numpy import and reproduce the issue on Julia 0.7. Done means cv2 imports without the BoundsError while other package imports remain functional.

由索引模型根据 Issue 内容生成。

评估

技术栈
julia, opencv, python
领域
backend, computer-vision
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。