# PyError pyeval.jl not found

**URL:** <https://discourse.julialang.org/t/pyerror-pyeval-jl-not-found/70813>\
**Category:** General Usage\
**Tags:** pycall\
**Created:** [November 2, 2021, 3:33pm UTC](https://discourse.julialang.org/t/pyerror-pyeval-jl-not-found/70813 "2021-11-02T15:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_schwarzer](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@max\_schwarzer](https://discourse.julialang.org/u/max_schwarzer)\
**Post date:** [November 2, 2021, 3:33pm UTC](https://discourse.julialang.org/t/pyerror-pyeval-jl-not-found/70813/1 "2021-11-02T15:33:00Z")

</div>

I am using Anaconda and when trying to use PyCall in Julia I get the following error:

> ERROR: PyError ($(Expr(:escape, :(ccall(#= C:\Users\mschwarz.julia\packages\PyCall\BD546\src\pyeval.jl:38 =# @pysym(:PyEval\_EvalCode), PyPtr, (PyPtr, PyPtr, PyPtr), o, globals, locals))))) \<class ‘FileNotFoundError’\>  
> FileNotFoundError(2, ‘No such file or directory’)  
> File “C:\Users\mschwarz.julia\packages\PyCall\BD546\src\pyeval.jl”, line 1, in   
> const Py\_single\_input = 256 # from Python.h

> Stacktrace:  
> [1] pyerr\_check  
> @ C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:62 [inlined]  
> [2] pyerr\_check  
> @ C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:66 [inlined]  
> [3] \_handle\_error(msg::String)  
> @ PyCall C:\Users\mschwarz.julia\packages\PyCall\BD546\src\exception.jl:83

The file pyeval.jl does exist in the specified path.

I tried the following which didn’t help:

> ENV[“PYTHON”] = “”  
> Pkg.build(“PyCall”)
> 
> using PyCall, Conda

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [November 2, 2021, 4:08pm UTC](https://discourse.julialang.org/t/pyerror-pyeval-jl-not-found/70813/2 "2021-11-02T16:08:25Z")

</div>

> [@max\_schwarzer](#):
>
> @pysym(:PyEval\_EvalCode), PyPtr, (PyPtr, PyPtr, PyPtr), o, globals, locals))))) \<class ‘FileNotFoundError’\>

This is an error from evaluating _python_ code (`PyEval_EvalCode` is a Python API function) — you are apparently trying to evaluate a Python file and it is not finding it. What code are you trying to execute?

---

<div class="post-metadata">

**Author:** ![max\_schwarzer](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@max\_schwarzer](https://discourse.julialang.org/u/max_schwarzer)\
**Post date:** [November 4, 2021, 4:29pm UTC](https://discourse.julialang.org/t/pyerror-pyeval-jl-not-found/70813/3 "2021-11-04T16:29:38Z")

</div>

Thanks this hint was enough, it simply couldn’t find the .py file I intended to load
