SIGSEGV 11 when interactively loading own Julia module
- Dominant language
- Python
- Stars
- 893
- Forks
- 101
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to get a first simple example running with JuliaPy, loading a minimal Julia module into Python. Here is the Julia module:
```julia
module TestMod
export fn
function fn(x)
x ^ 2
end
end
```
It is loaded and used by the following Python code.
```python
from julia import Main
Main.include("/path/to/file.jl")
Main.TestMod.fn(3)
```
This works when calling non-interactively (i.e. if the first two lines of the above Python code are called together). However, if interactively I first excute the Python import statement and then afterwards the Main.include statement, I get the following.
```
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
```
I also get that crash when I try to otherwise access `Main.TestMod.fn`, e.g., by calling
```
fn = Main.TestMod.fn
```
Is this expected behaviour? I.e., is it not possible to load custom modules from given files one after the other?
Thank you!
PS:
I tried this on a Mac (10.12.6) with Julia 1.1.1, the Python module julia-0.4.1 and the following Python version (running in PyCharm).
'2.7.16 |Anaconda, Inc.| (default, Mar 14 2019, 16:24:02) \n[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]'
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.