# Evaluation into the closed module \`\_\_anon\_\_\` breaks incremental compilation because the side effects will not be permanent

**URL:** <https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346>\
**Category:** General Usage\
**Created:** [October 25, 2021, 4:27pm UTC](https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346 "2021-10-25T16:27:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maxim\_Lubov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maxim_lubov/32/29744_2.png) [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Post date:** [October 25, 2021, 4:27pm UTC](https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346/1 "2021-10-25T16:27:40Z")

</div>

I try to compile my project:

```julia
julia --project=@. --startup-file=no --trace-compile=sysimage/precompile.jl test/runtests.jl

```

This compilation gives me the following error:

````julia
LoadError: Evaluation into the closed module ` __anon__ ` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating ` __anon__ ` with `eval` during precompilation - don't do this.
Stacktrace:
  [1] eval
    @ .\boot.jl:360 [inlined]
  [2] _pywrap(o::PyCall.PyObject, mname::Symbol)
    @ PyCall c:\users\user1\.julia\packages\PyCall\3fwVL\src\PyCall.jl:393
  [3] _pywrap_pyimport
    @ c:\users\user1\.julia\packages\PyCall\3fwVL\src\PyCall.jl:414 [inlined]
  [4] _pywrap_pyimport(o::PyCall.PyObject)
    @ PyCall c:\users\user1\.julia\packages\PyCall\3fwVL\src\PyCall.jl:413
  [5] top-level scope
    @ c:\users\user1\.julia\packages\PyCall\3fwVL\src\PyCall.jl:594
  [6] include
    @ .\Base.jl:386 [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::String)
    @ Base .\loading.jl:1235
  [8] top-level scope
    @ none:1
  [9] eval
    @ .\boot.jl:360 [inlined]
 [10] eval(x::Expr)
    @ Base.MainInclude .\client.jl:446
 [11] top-level scope
    @ none:1
in expression starting at c:\users\user1\test_project\src\test_project.jl:1
```als
I use PyCall and import one Python function in my project. How to solve this problem?
````

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [October 25, 2021, 5:18pm UTC](https://discourse.julialang.org/t/evaluation-into-the-closed-module-anon-breaks-incremental-compilation-because-the-side-effects-will-not-be-permanent/70346/2 "2021-10-25T17:18:10Z")

</div>

Welcome! It’s impossible to help debug this without knowing what code you have in your module, what you’re trying to achieve and what you’ve tried so far. Please consider posting a minimally contained example, as described here:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
