Closed
Description
I'm currently using PythonCall within a new Julia package. The environment is configured according to the docs. Indeed, PythonCall is was added as a dependency, CondaPkg.toml is present and so on.
Locally it works like a charm, but during standard Julia CI it fails to initialize due to pathof(PythonCall)
returning nothing
. It then triggers a Method Error by calling dirname(::Nothing)
. In fact, according to pathof
's docs:
help?> pathof
search: pathof
pathof(m::Module)
Return the path of the m.jl file that was used to import
module m, or nothing if m was not imported from a package.
Use dirname to get the directory part and basename to get the
file name part of the path.
I'm not really certain about init_juliacall
semantics, but I think this is a corner case to be addressed.
https://github.com/cjdoris/PythonCall.jl/blob/d193f567c6a4ddde84ecb0ca3a9a36c8335820d1/src/juliacall.jl#L20
Also, any tips or workarounds are appreciated!
Metadata
Metadata
Assignees
Labels
No labels