PythonCall.jl
                                
                                 PythonCall.jl copied to clipboard
                                
                                    PythonCall.jl copied to clipboard
                            
                            
                            
                        Python and Julia in harmony.
Using [PythonCall.jl](https://github.com/JuliaPy/PythonCall.jl), how do I best handle python exception patters such as the following python: ``` try: database = client.create_database(DATABASE_NAME) except exceptions.CosmosResourceExistsError: database = client.get_database_client(DATABASE_NAME) ``` [xref stackoverflow](https://stackoverflow.com/questions/77333648/julia-pythoncall-jl-how-do-i-handle-python-exceptions)
**Affects:** JuliaCall **Describe the bug** I sometimes get segfaults when importing julicall in combination with other packages. ``` x@x ~ % python -c 'import juliacall; import torch; from torch.autograd import...
**Affects:** PythonCall **Describe the bug** I just turned off threads to make PythonCall work, but now I experience that every time I try interrupting the julia REPL (with PythonCall loaded...
I'm getting a segfault with PythonPlot.jl after a testsuite has finished, assuming that it's during finalizers https://github.com/stevengj/PythonPlot.jl/pull/24 ``` signal (11): Segmentation fault in expression starting at none:0 _PyInterpreterState_GET at /usr/local/src/conda/python-3.11.0/Include/internal/pycore_pystate.h:116...
Hello, I have tracked the source of the error to the following: Julia tries to install CondaPkg. The thing is that I do not use CondaPkg as I have set...
Completes #376
This PR tentatively addresses #293
## Rationale Create a formal benchmark pipeline to compare - Python - PythonCall (dev) - PythonCall (stable) - PyCall _Originally posted by @cjdoris in https://github.com/cjdoris/PythonCall.jl/issues/300#issuecomment-1547350528_ ### Requirements 1. **Match benchmark...
**Affects:** PythonCall When I run `pyexec("x = 1", Main)`, it successfully sets the global variable. When, on the other hand, I run `@pyexec "x = 1"`, it does not. This...
I observe a very strange behaviour that pyimport fails on windows if it was installed via conda-forge. If it was installed via pip, everything works fine. I've opened an [issue...