Skip to content

Doesn't work on 1.7.0-beta2 or 1.8 #26

Closed
@PallHaraldsson

Description

@PallHaraldsson

This works:

(@v1.8) pkg> add PythonCall#master  # with or without master, while I get an error for 1.7, likely bad installation of Julia.

[Do you have any idea what might be happening? And since works in 1.6, an issue for Julia not your package?]

But doesn't work in 1.8 nor beta2 (and likely not in beta3 either):

julia> @time using PythonCall
ERROR: InitError: type DataType has no field mutable
Stacktrace:
  [1] getproperty
    @ ./Base.jl:37 [inlined]
  [2] pointer_from_obj(o::Vector{String})
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/utils.jl:236
  [3] PyJuliaValue_SetValue(__o::Ptr{PythonCall.CPython.PyObject}, v::Vector{String})
    @ PythonCall.CPython ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliabase.jl:70
  [4] PyJuliaValue_New(t::Ptr{PythonCall.CPython.PyObject}, v::Vector{String})
    @ PythonCall.CPython ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliabase.jl:89
  [5] PyJuliaVectorValue_New
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliavector.jl:244 [inlined]
  [6] PyJuliaValue_From
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliavector.jl:245 [inlined]
  [7] PyObject_From
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/object.jl:82 [inlined]
  [8] exec_impl(f::PythonCall.var"#245#263", code::PythonCall.PyCode, globals::PythonCall.PyDict{String, PythonCall.PyObject}, locals::Nothing, extrakeys::Tuple{PythonCall.PyInternedString, PythonCall.PyInternedString}, extravals::Tuple{Vector{String}, Bool})
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/eval.jl:38
  [9] macro expansion
    @ ~/.julia/packages/PythonCall/r2eLx/src
┌ Error: Pkg.precompile error
│   exception =
│    SystemError: mktemp: Permission denied
│    Stacktrace:
│      [1] systemerror(p::Symbol, errno::Int32; extrainfo::Nothing)
│        @ Base ./error.jl:174
│      [2] #systemerror#68
│        @ ./error.jl:173 [inlined]
│      [3] systemerror
│        @ ./error.jl:173 [inlined]
│      [4] mktemp(parent::String; cleanup::Bool)


[ Info: Precompiling PythonCall [6099a3de-0909-46bc-b1f4-468b9a2dfc0d]
ERROR: InitError: type DataType has no field mutable
Stacktrace:
  [1] getproperty
    @ ./Base.jl:37 [inlined]
  [2] pointer_from_obj(o::Vector{String})
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/utils.jl:236
  [3] PyJuliaValue_SetValue(__o::Ptr{PythonCall.CPython.PyObject}, v::Vector{String})
    @ PythonCall.CPython ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliabase.jl:70
  [4] PyJuliaValue_New(t::Ptr{PythonCall.CPython.PyObject}, v::Vector{String})
    @ PythonCall.CPython ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliabase.jl:89
  [5] PyJuliaVectorValue_New
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliavector.jl:244 [inlined]
  [6] PyJuliaValue_From
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/juliavector.jl:245 [inlined]
  [7] PyObject_From
    @ ~/.julia/packages/PythonCall/r2eLx/src/cpython/object.jl:82 [inlined]
  [8] exec_impl(f::PythonCall.var"#245#263", code::PythonCall.PyCode, globals::PythonCall.PyDict{String, PythonCall.PyObject}, locals::Nothing, extrakeys::Tuple{PythonCall.PyInternedString, PythonCall.PyInternedString}, extravals::Tuple{Vector{String}, Bool})
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/eval.jl:38
  [9] macro expansion
    @ ~/.julia/packages/PythonCall/r2eLx/src/eval.jl:156 [inlined]
 [10] (::PythonCall.var"#243#261")()
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/init.jl:203
 [11] with_gil(f::PythonCall.var"#243#261", c::Bool)
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/gil.jl:10
 [12] with_gil(f::Function)
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/gil.jl:9
 [13] init()
    @ PythonCall ~/.julia/packages/PythonCall/r2eLx/src/init.jl:195
 [14] (::PythonCall.var"#275#276")()
    @ PythonCall ~/.julia/packages/Requires/035xH/src/init.jl:11
 [15] __init__()
    @ PythonCall ~/.julia/packages/Requires/035xH/src/init.jl:18
 [16] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:768
 [17] _require_from_serialized(path::String)
    @ Base ./loading.jl:821
 [18] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1130
 [19] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1013
 [20] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:997
 [21] top-level scope
    @ timing.jl:210
during initialization of module PythonCall

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions