JuliaPy / JuliaPy/PyCall.jl

Using Casadi from Julia

Open
#915 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

I am using Casadi from Julia and have the following code:

```
using PyCall
cd = pyimport("casadi")
opti = cd.Opti()
x = opti.variable()
```

This results in `ValueError('call stack is not deep enough')`.

However, the following workaround works:

```
using PyCall
cd = pyimport("casadi")
opti = cd.Opti()
x = py"$(opti).variable()"
```

Also the code works fine when run directly in Python. What is the reason for this?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.