Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with PythonCall.jl #1056

Open
LilithHafner opened this issue Oct 6, 2023 · 1 comment
Open

Incompatible with PythonCall.jl #1056

LilithHafner opened this issue Oct 6, 2023 · 1 comment

Comments

@LilithHafner
Copy link

I can't load this package and PythonCall.jl in the same Julia session without error

x@x dev % julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 1.9.3 (2023-08-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using PyCall, PythonCall
    CondaPkg Found dependencies: /Users/x/.julia/packages/PythonCall/qTEA1/CondaPkg.toml
    CondaPkg Dependencies already up to date
ERROR: InitError: Python: SystemError: initialization of _datetime did not return an extension module
Python stacktrace:
 [1] <module>
   @ 
SYSTEM (REPL): showing an error caused an error
ERROR: Python: 
SYSTEM (REPL): caught exception of type PyException while trying to handle a nested exception; giving up

julia> 
x@x dev % julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _' |  |
  | | |_| | | | (_| |  |  Version 1.9.3 (2023-08-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> using PythonCall, PyCall
    CondaPkg Found dependencies: /Users/x/.julia/packages/PythonCall/qTEA1/CondaPkg.toml
    CondaPkg Dependencies already up to date
julia(25115,0x206e11b40) malloc: *** error for object 0x137f60050: pointer being freed was not allocated
julia(25115,0x206e11b40) malloc: *** set a breakpoint in malloc_error_break to debug

[25115] signal (6): Abort trap: 6
in expression starting at REPL[1]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 8260202 (Pool: 8255891; Big: 4311); GC: 12
zsh: abort      julia
x@x dev % julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.9.3 (2023-08-24)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 8 × Apple M2
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores
Environment:
  JULIA_EDITOR = code
@LilithHafner
Copy link
Author

Adding documentation pointing to https://juliapy.github.io/PythonCall.jl/stable/pycall/#Tips would help, making the error give that hint would be even better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant