Skip to content

Pythox.Janitor exited after using ~PY #21

@wingyplus

Description

@wingyplus

Reproduce repo wingyplus/sqlglot_ex#1.

After I convert Pythox.eval into ~PY and run it with iex -S mix, the Pythonx throws an error that Pythonx.Janitor process exited:

$ iex -S mix
Erlang/OTP 27 [erts-15.2.3] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] 
[jit]

==> pythonx
c++ -shared -fPIC -fvisibility=hidden -std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-
comment -I/nix/store/n0xcdacdnm62wv2x1w75w1jhjhsqz1fy-erlang-27.3/lib/erlang/erts-15.2.3/i
nclude -I/Users/thanabodee/src/github.com/wingyplus/sqlglot_ex/deps/fine/include -O3 -unde
fined dynamic_lookup -flat_namespace /Users/thanabodee/src/github.com/wingyplus/sqlglot_ex
/deps/pythonx/c_src/python.cpp /Users/thanabodee/src/github.com/wingyplus/sqlglot_ex/deps/
pythonx/c_src/pythonx.cpp -o /Users/thanabodee/src/github.com/wingyplus/sqlglot_ex/_build/
dev/lib/pythonx/priv/libpythonx.so
Compiling 10 files (.ex)
Generated pythonx app
==> sqlglot_ex
Compiling 2 files (.ex)
[pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python object will not
 be deallocated
               [pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python 
object will not be deallocated
                              [pythonx] whereis(Pythonx.Janitor) failed. This is unexpecte
d and a Python object will not be deallocated
                                             [pythonx] whereis(Pythonx.Janitor) failed. Th
is is unexpected and a Python object will not be deallocated
                                                            [pythonx] whereis(Pythonx.Jani
tor) failed. This is unexpected and a Python object will not be deallocated
                                                                           [pythonx] where
is(Pythonx.Janitor) failed. This is unexpected and a Python object will not be deallocated

[pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python object will not
 be deallocated
               [pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python 
object will not be deallocated
                              [pythonx] whereis(Pythonx.Janitor) failed. This is unexpecte
d and a Python object will not be deallocated
                                             [pythonx] whereis(Pythonx.Janitor) failed. Th
is is unexpected and a Python object will not be deallocated
                                                            [pythonx] whereis(Pythonx.Jani
tor) failed. This is unexpected and a Python object will not be deallocated
                                                                           [pythonx] where
is(Pythonx.Janitor) failed. This is unexpected and a Python object will not be deallocated

[pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python object will not
 be deallocated
               [pythonx] whereis(Pythonx.Janitor) failed. This is unexpected and a Python 
object will not be deallocated

== Compilation error in file lib/sql_glot.ex ==
** (exit) exited in: GenServer.call(Pythonx.Janitor, :ping, 5000)
    ** (EXIT) no process: the process is not alive or there's no process currently associa
ted with the given name, possibly because its application isn't started
    (elixir 1.18.3) lib/gen_server.ex:1121: GenServer.call/3
    (pythonx 0.4.5-dev) lib/pythonx.ex:242: Pythonx.eval/3
    (pythonx 0.4.5-dev) lib/pythonx/ast.ex:22: Pythonx.AST.scan_globals/1
    (pythonx 0.4.5-dev) expanding macro: Pythonx.sigil_PY/2
    lib/sql_glot.ex:23: SQLGlot.transpile/4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions