Docs integration should not throw errors
- Lingua principale
- Julia
- Stelle
- 1.5k
- Fork
- 186
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
```
julia> using PyCall, PyPlot
julia> x= 1:10
1:10
julia> y= 1:10
1:10
julia> fig, ax = subplots()
(Figure(PyObject ), PyObject )
julia> ax[:plot](x,y)
1-element Array{PyObject,1}:
PyObject
help?> ax
search: ax axis axes axvspan axvline axhspan axhline Axes3D max maximum maximum! maxintfloat delaxes minmax typemax findmax
ERROR: PyError ($(Expr(:escape, :(ccall(#= /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/conversions.jl:87 =# @pysym(PyString_AsStringAndSize), Cint, (PyPtr, Ptr{Ptr{UInt8}}, Ptr{Int}), po, _ps_ptr, _ps_len)))))
TypeError('expected bytes, NoneType found')
Stacktrace:
[1] pyerr_check at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:60 [inlined]
[2] pyerr_check at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:64 [inlined]
[3] macro expansion at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/exception.jl:84 [inlined]
[4] convert(::Type{String}, ::PyObject) at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/conversions.jl:87
[5] getdoc at /home/pfitzseb/.julia/packages/PyCall/0jMpb/src/PyCall.jl:857 [inlined]
[6] getdoc(::Any, ::Any) at ./docs/Docs.jl:254
[7] doc(::Base.Docs.Binding, ::Type) at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:86
[8] doc(::Base.Docs.Binding) at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:85
[9] top-level scope at /home/pfitzseb/Documents/Git/julia/usr/share/julia/stdlib/v1.2/REPL/src/docview.jl:285
```
Originally reported in https://github.com/JunoLab/Juno.jl/issues/217. Seems to happen for all Julia versions between 0.7 and master, afaict.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Reproduce the PyCall and PyPlot REPL session, then inspect PyCall/src/conversions.jl:87, PyCall.jl:857, Julia's Docs.jl:254, and REPL/docview.jl:86. The work is done when requesting help for the plotted object no longer throws the reported TypeError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- julia, matplotlib, python
- Ambito
- documentation
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100