Skip to content

PythonPlot v1.0.7 fails to precompile #59

Description

@rozmanmg

Upon attempting to using PythonPlot I am getting the following warning:

Info Given PythonPlot was explicitly requested, output will be shown live 
WARNING: Method definition axis(Any...) in module PythonPlot at /home/xxxxxx/.julia/packages/PythonPlot/Xa6bF/src/PythonPlot.jl:175 overwritten at /home/xxxxxx/.julia/packages/PythonPlot/Xa6bF/src/PythonPlot.jl:184.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? PythonPlot
WARNING: Method definition axis(Any...) in module PythonPlot at /home/xxxxxx/.julia/packages/PythonPlot/Xa6bF/src/PythonPlot.jl:175 overwritten at /home/xxxxxx/.julia/packages/PythonPlot/Xa6bF/src/PythonPlot.jl:184.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Warning: Replacing docs for `PythonPlot.axis :: Tuple` in module `PythonPlot`
└ @ Base.Docs docs/Docs.jl:249

I have not had such a warning in the earlier versions of PythonPlot.

Way to reproduce: julia -e 'using Pkg; Pkg.activate(temp=true); Pkg.add("PythonPlot"); using PythonPlot'

Julia version:

$ julia -e "using InteractiveUtils; versioninfo()"
Julia Version 1.12.6
Commit 15346901f00 (2026-04-09 19:20 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × 13th Gen Intel(R) Core(TM) i5-1335U
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, alderlake)
  GC: Built with stock GC
Threads: 12 default, 1 interactive, 12 GC (on 12 virtual cores)
Environment:
  JULIA_DEPOT_PATH = /home/xxxxxx/.julia
  JULIA_NUM_THREADS = auto
  LD_ARGV0_REL = ../bin/vshd
  JULIA_EDITOR = emacsclient
  JULIA_PKG_DEVDIR = /home/xxxxxx/juliadev
  JULIA_CONDAPKG_BACKEND = Null
  JULIA_PYTHONCALL_EXE = /home/xxxxxx/.julia/conda/3/x86_64/bin/python
  JULIA_CONDAPKG_EXE = /home/xxxxxx/.julia/conda/3/x86_64/bin/conda

Possibly relevant part of startup.jl:

# https://juliapy.github.io/PythonCall.jl/stable/pythoncall/#pythoncall-config
# PythonCall settings for using the existing python and python packages
ENV["JULIA_CONDAPKG_BACKEND"] = "Null"
ENV["JULIA_PYTHONCALL_EXE"] = "/home/xxxxxx/.julia/conda/3/x86_64/bin/python"
ENV["JULIA_CONDAPKG_EXE"] = "/home/xxxxxx/.julia/conda/3/x86_64/bin/conda"

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