# \#pythoncall

**URL:** https://discourse.julialang.org/tag/pythoncall/735.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Controlling Blender from Julia using bpy and PythonCall.jl](https://discourse.julialang.org/t/controlling-blender-from-julia-using-bpy-and-pythoncall-jl/137707)

<div class="topic-metadata">

**Author:** [@ChetanVardhan](https://discourse.julialang.org/u/ChetanVardhan)\
**Replies:** 3\
**Last updated:** [July 13, 2026, 7:04pm UTC](https://discourse.julialang.org/t/controlling-blender-from-julia-using-bpy-and-pythoncall-jl/137707 "2026-07-13T19:04:12Z")

</div>

Recently I have been trying to use Blender from Julia. I have got a pretty good workflow using the rpyc package in Python. With this, we can import bpy in Julia using PythonCall.jl This is the Python script to be run i…

---

## [Running Julia inside Blender through VSCode (using PythonCall/JuliaCall)](https://discourse.julialang.org/t/running-julia-inside-blender-through-vscode-using-pythoncall-juliacall/96838)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 9\
**Last updated:** [July 13, 2026, 6:56pm UTC](https://discourse.julialang.org/t/running-julia-inside-blender-through-vscode-using-pythoncall-juliacall/96838 "2026-07-13T18:56:26Z")

</div>

Hi all, I’ve been using a workflow that I came up with that consists of using Blender through its GUI and programmatically with Julia at the same time. I usually develop in Julia using VSCode and its “execute line” and …

---

## [Modern approach to update an old package relying on PyCall and custom script to insall a python package](https://discourse.julialang.org/t/modern-approach-to-update-an-old-package-relying-on-pycall-and-custom-script-to-insall-a-python-package/137169)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [May 18, 2026, 6:26pm UTC](https://discourse.julialang.org/t/modern-approach-to-update-an-old-package-relying-on-pycall-and-custom-script-to-insall-a-python-package/137169 "2026-05-18T18:26:03Z")

</div>

I am the maintainer of OdsIO, an old package that wrap ezodf python module to read and write data on ODS (LibreOffice) spreadsheets. This has been my first package and at that time I used PyCall and made the installatio…

---

## [CondaPkg installs incompatible free-threaded NumPy](https://discourse.julialang.org/t/condapkg-installs-incompatible-free-threaded-numpy/136421)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 13\
**Last updated:** [March 27, 2026, 10:13pm UTC](https://discourse.julialang.org/t/condapkg-installs-incompatible-free-threaded-numpy/136421 "2026-03-27T22:13:53Z")

</div>

I’ve been working on a small Python project recently, and I’m now considering using PythonCall again to speed up a few places more easily. But when I went to make a fresh Julia environment with current versions, I hit a …

---

## [Exposing julia packages to python users](https://discourse.julialang.org/t/exposing-julia-packages-to-python-users/136272)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 13\
**Last updated:** [March 23, 2026, 10:24am UTC](https://discourse.julialang.org/t/exposing-julia-packages-to-python-users/136272 "2026-03-23T10:24:27Z")

</div>

Hello everyone. I have a Julia package which I would like to expose to python users. Seems the most obvious way would be using juliacall, similar to how diffeqpy seems to do it. I tried working with that approach for n…

---

## [How to set python version in a package wrapped by PythonCall (Solved: operator error)](https://discourse.julialang.org/t/how-to-set-python-version-in-a-package-wrapped-by-pythoncall-solved-operator-error/133598)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 1\
**Last updated:** [November 2, 2025, 8:27am UTC](https://discourse.julialang.org/t/how-to-set-python-version-in-a-package-wrapped-by-pythoncall-solved-operator-error/133598 "2025-11-02T08:27:12Z")

</div>

I am writing a wrapper package using PythonCall and I would like to set the python version to \<= 3.13. I tried to set the version in CondaPkg.toml: \[deps\] python = "\<=3.13" but it doesn’t seem to work (version is still…

---

## [PythonCall ecosystem updates](https://discourse.julialang.org/t/pythoncall-ecosystem-updates/132500)

<div class="topic-metadata">

**Author:** [@cjdoris](https://discourse.julialang.org/u/cjdoris)\
**Replies:** 0\
**Last updated:** [September 18, 2025, 10:23pm UTC](https://discourse.julialang.org/t/pythoncall-ecosystem-updates/132500 "2025-09-18T22:23:03Z")

</div>

There’s been a lot going on in the world of PythonCall.jl and friends, so I thought I’d give a brief round-up of what’s new from the last year. Firstly, a reminder of the packages I’m talking about: PythonCall.jl: Int…

---

## [Error when precompiling packages that rely on PythonCall](https://discourse.julialang.org/t/error-when-precompiling-packages-that-rely-on-pythoncall/132371)

<div class="topic-metadata">

**Author:** [@opsssi](https://discourse.julialang.org/u/opsssi)\
**Replies:** 3\
**Last updated:** [September 14, 2025, 9:36pm UTC](https://discourse.julialang.org/t/error-when-precompiling-packages-that-rely-on-pythoncall/132371 "2025-09-14T21:36:02Z")

</div>

Hi! I have a problem when trying to use the Package OptimizationSciPy.jl (and I got the same error previously when trying to install other packages that require PythonCall. ▶ versioninfo ▶ \]add OptimizationSciPy ▶ err Wha…

---

## [Convert a PythonCall df to Julia df, incomplete conversion](https://discourse.julialang.org/t/convert-a-pythoncall-df-to-julia-df-incomplete-conversion/132054)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 6\
**Last updated:** [September 3, 2025, 6:02am UTC](https://discourse.julialang.org/t/convert-a-pythoncall-df-to-julia-df-incomplete-conversion/132054 "2025-09-03T06:02:34Z")

</div>

Hi, I have a PythonCall result looking like: julia\> forecast Python: ds trend yhat\_lower ... multiplicative\_terms\_lower multiplicative\_terms\_upper yhat 0 2024-04-08 06:19…

---

## [Can't build PythonCall](https://discourse.julialang.org/t/cant-build-pythoncall/132013)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 7\
**Last updated:** [September 2, 2025, 2:40pm UTC](https://discourse.julialang.org/t/cant-build-pythoncall/132013 "2025-09-02T14:40:21Z")

</div>

Hi, Julia 1.11.6: julia\> import Pkg julia\> Pkg.build("PythonCall") Precompiling project... ✗ PythonPlot 0 dependencies successfully precompiled in 4 seconds. 482 already precompiled. 1 dependency errored. For …

---

## [Version \`CXXABI\_1.3.15' not found when loading matplotlib through PythonCall](https://discourse.julialang.org/t/version-cxxabi-1-3-15-not-found-when-loading-matplotlib-through-pythoncall/131671)

<div class="topic-metadata">

**Author:** [@zhzhang](https://discourse.julialang.org/u/zhzhang)\
**Replies:** 23\
**Last updated:** [August 19, 2025, 9:26pm UTC](https://discourse.julialang.org/t/version-cxxabi-1-3-15-not-found-when-loading-matplotlib-through-pythoncall/131671 "2025-08-19T21:26:09Z")

</div>

Hi folks, I want to call some functions from the Python package matplotlib in Julia through PythonCall.jl. However, it prompts version 'CXXABI\_1.3.15' not found. Here is the error message: julia\> using PythonCall juli…

---

## [Gradual Julia-ization of Python libraries](https://discourse.julialang.org/t/gradual-julia-ization-of-python-libraries/117828)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 36\
**Last updated:** [July 18, 2025, 9:07am UTC](https://discourse.julialang.org/t/gradual-julia-ization-of-python-libraries/117828 "2025-07-18T09:07:26Z")

</div>

Context Python has a large community\[1\]. However, many of its most-used numerical libraries – numpy, scipy, scikit-learn, pandas, pytorch, jax – are not written in Python. Instead, a frontend API is written in Python, hi…

---

## [Concurrent Downloads.curl usage results in Error: curl\_multi\_socket\_action: 8](https://discourse.julialang.org/t/concurrent-downloads-curl-usage-results-in-error-curl-multi-socket-action-8/129860)

<div class="topic-metadata">

**Author:** [@csvance](https://discourse.julialang.org/u/csvance)\
**Replies:** 0\
**Last updated:** [June 13, 2025, 12:54pm UTC](https://discourse.julialang.org/t/concurrent-downloads-curl-usage-results-in-error-curl-multi-socket-action-8/129860 "2025-06-13T12:54:33Z")

</div>

Hi everyone, new to Julia and looking to integrate it into a SaMD as an alternative to Numba for performance critical sections of the code. As part of the performance critical sections, I’m trying to to use gRPC to call…

---

## [KeyError on the first time I import my (in development) package with Revise](https://discourse.julialang.org/t/keyerror-on-the-first-time-i-import-my-in-development-package-with-revise/129797)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [June 11, 2025, 9:16am UTC](https://discourse.julialang.org/t/keyerror-on-the-first-time-i-import-my-in-development-package-with-revise/129797 "2025-06-11T09:16:47Z")

</div>

I am developing a package that uses PythonCall. The first time I import my package I get the error: ERROR: InitError: KeyError: key Base.PkgId(Base.UUID("6099a3de-0909-46bc-b1f4-468b9a2dfc0d"), "PythonCall") not found …

---

## [How to point Julia to a python executable](https://discourse.julialang.org/t/how-to-point-julia-to-a-python-executable/129388)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 9\
**Last updated:** [May 29, 2025, 10:30pm UTC](https://discourse.julialang.org/t/how-to-point-julia-to-a-python-executable/129388 "2025-05-29T22:30:34Z")

</div>

Hello, When trying to precompile PythonCall I received the following error IOError: could not spawn \`/Users/jerome/.julia/environments/v1.11/.CondaPkg/.pixi/envs/default/bin/python --version\`: no such file or directory …

---

## [How to import a file in PythonCall](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 3\
**Last updated:** [April 30, 2025, 2:22pm UTC](https://discourse.julialang.org/t/how-to-import-a-file-in-pythoncall/128565 "2025-04-30T14:22:41Z")

</div>

I have some python code I’d like to call in Julia. The code is in a file in the same folder as pwd() but no matter what method I use I always get the error ERROR: Python: ModuleNotFoundError: No module named 'x' The fir…

---

## [PythonCall not working in Jupyter Notebook in VSCode](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 1\
**Last updated:** [April 9, 2025, 1:25pm UTC](https://discourse.julialang.org/t/pythoncall-not-working-in-jupyter-notebook-in-vscode/127841 "2025-04-09T13:25:00Z")

</div>

The PythonCall is not working in Jupyter Notebook in VScode. The answer to fib(100) is nothing. Nevertheless the code works beautifully in REPL. Many thanks for any help you may provide. using PythonCall fib(x) = py…

---

## [Define Python function in Julia file with PythonCall?](https://discourse.julialang.org/t/define-python-function-in-julia-file-with-pythoncall/98593)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 10\
**Last updated:** [April 9, 2025, 1:02pm UTC](https://discourse.julialang.org/t/define-python-function-in-julia-file-with-pythoncall/98593 "2025-04-09T13:02:22Z")

</div>

Context: I have a Pluto notebook for teaching where I need to create a Python function. I want to use PythonCall for better portability, but I miss the py"..." syntax of PyCall which allows you to directly define Python …

---

## [Python downstream testing, can't figure out CI to install the libraries?](https://discourse.julialang.org/t/python-downstream-testing-cant-figure-out-ci-to-install-the-libraries/127153)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 4\
**Last updated:** [March 20, 2025, 7:44am UTC](https://discourse.julialang.org/t/python-downstream-testing-cant-figure-out-ci-to-install-the-libraries/127153 "2025-03-20T07:44:10Z")

</div>

For our diffeqpy library, we used to have downstream testing setup in SciMLBase.jl so that way our core changes wouldn’t break the core functionality when accessed through Python. However, it’s not working now after the …

---

## [Example of a hybrid Python-Julia package, based on Julia code](https://discourse.julialang.org/t/example-of-a-hybrid-python-julia-package-based-on-julia-code/126720)

<div class="topic-metadata">

**Author:** [@cdsousa](https://discourse.julialang.org/u/cdsousa)\
**Replies:** 5\
**Last updated:** [March 9, 2025, 11:21pm UTC](https://discourse.julialang.org/t/example-of-a-hybrid-python-julia-package-based-on-julia-code/126720 "2025-03-09T23:21:55Z")

</div>

How cursed can this be? :sweat\_smile:

---

## [RFC – ergonomic juliacall syntax for passing Python variables to Julia](https://discourse.julialang.org/t/rfc-ergonomic-juliacall-syntax-for-passing-python-variables-to-julia/124266)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 23\
**Last updated:** [December 31, 2024, 12:28am UTC](https://discourse.julialang.org/t/rfc-ergonomic-juliacall-syntax-for-passing-python-variables-to-julia/124266 "2024-12-31T00:28:04Z")

</div>

I want to get feedback on an API for ergonomically passing Python variables to Julia code via juliacall. Here are a couple of ideas: from juliacall import Main as jl # proposal jl.teval("const MY\_CONST = $(x)", x=my\_py…

---

## [PythonCall.pyimport opencv on Windows](https://discourse.julialang.org/t/pythoncall-pyimport-opencv-on-windows/124146)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 4\
**Last updated:** [December 26, 2024, 3:42pm UTC](https://discourse.julialang.org/t/pythoncall-pyimport-opencv-on-windows/124146 "2024-12-26T15:42:22Z")

</div>

I’m trying to PythonCall.pyimport opencv on Windows: const cv2 = PythonCall.pynew() function \_\_init\_\_() PythonCall.pycopy!(cv2, pyimport("cv2")) end but I run into Python: ImportError: DLL load failed while import…

---

## [Errors Using PythonCall.jl and PythonPlot.jl with a Python Virtual Environment](https://discourse.julialang.org/t/errors-using-pythoncall-jl-and-pythonplot-jl-with-a-python-virtual-environment/124084)

<div class="topic-metadata">

**Author:** [@ericdammannjr](https://discourse.julialang.org/u/ericdammannjr)\
**Replies:** 2\
**Last updated:** [December 22, 2024, 8:40pm UTC](https://discourse.julialang.org/t/errors-using-pythoncall-jl-and-pythonplot-jl-with-a-python-virtual-environment/124084 "2024-12-22T20:40:02Z")

</div>

I really have been struggling with this issue and not sure what to do. For context, I have a brand-new Windows PC, and I have Julia 1.11.2 and Python 3.13.1 installed on it. I did the following: I created a Python virtu…

---

## [PythonCall just works when I close the REPL after importing OpenSSL\_jll, but I cannot make it work in the same session](https://discourse.julialang.org/t/pythoncall-just-works-when-i-close-the-repl-after-importing-openssl-jll-but-i-cannot-make-it-work-in-the-same-session/123122)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 1\
**Last updated:** [November 26, 2024, 10:35pm UTC](https://discourse.julialang.org/t/pythoncall-just-works-when-i-close-the-repl-after-importing-openssl-jll-but-i-cannot-make-it-work-in-the-same-session/123122 "2024-11-26T22:35:18Z")

</div>

Hi all, I am trying to make the following workflow involving PythonCall to work in the same Julia session. I am experiencing some problems with PythonCall and SSL credentials, which thanks to @cjdoris I managed to make …

---

## [Stop \`CondaPkg\` for finding dependencies in other projects](https://discourse.julialang.org/t/stop-condapkg-for-finding-dependencies-in-other-projects/122562)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 6\
**Last updated:** [November 13, 2024, 11:12pm UTC](https://discourse.julialang.org/t/stop-condapkg-for-finding-dependencies-in-other-projects/122562 "2024-11-13T23:12:45Z")

</div>

Hi, I am using CondaPkg and PythonCall for more than one of my projects. When I install a second project using CondaPkg, this second one finds the dependencies of the first one and tries to solve all the dependencies to…

---

## [Julia-Python interface fails in Julia library likely due to wrong SSL credentials](https://discourse.julialang.org/t/julia-python-interface-fails-in-julia-library-likely-due-to-wrong-ssl-credentials/121675)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 18\
**Last updated:** [November 13, 2024, 5:28pm UTC](https://discourse.julialang.org/t/julia-python-interface-fails-in-julia-library-likely-due-to-wrong-ssl-credentials/121675 "2024-11-13T17:28:51Z")

</div>

Hi all, I am experiencing a very complicated bug regarding SSL certification in a Julia package integrated with Python using PyCall and/or PythonCall (we have problems with the two actually, so probably the source of er…

---

## [PythonCall spends a lot of time showing stuff for JAX](https://discourse.julialang.org/t/pythoncall-spends-a-lot-of-time-showing-stuff-for-jax/121346)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 8:59pm UTC](https://discourse.julialang.org/t/pythoncall-spends-a-lot-of-time-showing-stuff-for-jax/121346 "2024-10-15T20:59:43Z")

</div>

Hi everyone, especially @cjdoris! I’m trying to call JAX from Julia and I find that PythonCall.jl has a lot of overhead in a simple conversion case due to… printing? Has anyone run into the same issue? Setup code: usi…

---

## [PythonCall.jl with CondaPkg.jl in MPI scenario](https://discourse.julialang.org/t/pythoncall-jl-with-condapkg-jl-in-mpi-scenario/121191)

<div class="topic-metadata">

**Author:** [@J-C-Q](https://discourse.julialang.org/u/J-C-Q)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 12:37pm UTC](https://discourse.julialang.org/t/pythoncall-jl-with-condapkg-jl-in-mpi-scenario/121191 "2024-10-11T12:37:31Z")

</div>

Hi everyone, I’m working on a julia package that has PythonCall.jl and CondaPkg.jl in its dependencies. Now, I want to do some calculations using my package on a cluster with MPI.jl. The problem is (this is my understa…

---

## [How to call PythonCall.jl behind a julia HTTP webserver?](https://discourse.julialang.org/t/how-to-call-pythoncall-jl-behind-a-julia-http-webserver/119563)

<div class="topic-metadata">

**Author:** [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Replies:** 2\
**Last updated:** [September 24, 2024, 2:09pm UTC](https://discourse.julialang.org/t/how-to-call-pythoncall-jl-behind-a-julia-http-webserver/119563 "2024-09-24T14:09:21Z")

</div>

Hi there, I am wondering how I could use langchain from Python as part of a webserver. I am running into segmenation faults certainly due to multithreading. Does someone know a way whether the new @unlock and @lock are …

---

## [PythonCall.jl style regarding type conversion](https://discourse.julialang.org/t/pythoncall-jl-style-regarding-type-conversion/117626)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 6\
**Last updated:** [July 31, 2024, 8:48am UTC](https://discourse.julialang.org/t/pythoncall-jl-style-regarding-type-conversion/117626 "2024-07-31T08:48:40Z")

</div>

I’m migrating some code from PyCall.jl to PythonCall.jl. While so far I’m loving the integration with CondaPkg.jl to handle the Python environment, I’m finding the lack of automatic type conversion quite cumbersome. I un…

[Next page](https://discourse.julialang.org/tag/pythoncall/735.md?match_all_tags=true&page=1&tags%5B%5D=pythoncall)
