Skip to content

Error precompiling MySQL: ERROR: LoadError: UndefVarError: artifact_dir not defined #184

@logankilpatrick

Description

@logankilpatrick

I am following the docs here: https://mysql.juliadatabases.org/stable/ and get the following error when I run using MySQL:

julia> using MySQL
[ Info: Precompiling MySQL [39abe10b-433b-5dbd-92d4-e302a9df00cd]
ERROR: LoadError: UndefVarError: artifact_dir not defined
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:35
  [2] top-level scope
    @ ~/.julia/packages/MySQL/EgAUf/src/api/API.jl:20
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:418
  [4] include(x::String)
    @ MySQL ~/.julia/packages/MySQL/EgAUf/src/MySQL.jl:1
  [5] top-level scope
    @ ~/.julia/packages/MySQL/EgAUf/src/MySQL.jl:13
  [6] include
    @ ./Base.jl:418 [inlined]
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1318
  [8] top-level scope
    @ none:1
  [9] eval
    @ ./boot.jl:373 [inlined]
 [10] eval(x::Expr)
    @ Base.MainInclude ./client.jl:453
 [11] top-level scope
    @ none:1
in expression starting at /Users/logankilpatrick/.julia/packages/MySQL/EgAUf/src/api/API.jl:1
in expression starting at /Users/logankilpatrick/.julia/packages/MySQL/EgAUf/src/MySQL.jl:1
ERROR: Failed to precompile MySQL [39abe10b-433b-5dbd-92d4-e302a9df00cd] to /Users/logankilpatrick/.julia/compiled/v1.7/MySQL/jl_9mxmzv.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1466
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1410
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1120
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1013
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:997

Any suggestions how to resolve this?

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