Following up on a discussion with @cjdoris's on slack, I'm recording an issue I happened to run into when working with PythonCall/CondaPkg in some of our CI tests:
Edge case: The order of using PythonCall and using Conda can lead to downloaded python packages being looked for in the wrong place, based on platform and python package manager
Summary from brief tests used on a sample Julia package:
- Using pixi with PythonCall loaded before CondaPkg: fails on macos ❌
ENV["JULIA_CONDAPKG_BACKEND"] = "Pixi"
using PythonCall
using CondaPkg
CondaPkg.add("numpy")
... <importing numpy not found>
- Using micromamba with PythonCall loaded before CondaPkg: fails on windows ❌
ENV["JULIA_CONDAPKG_BACKEND"] = "MicroMamba"
using PythonCall
using CondaPkg
CondaPkg.add("numpy")
... <hits permissions issue>
maybe related to mamba-org/mamba#2705?
- Using either pixi or micromamba with PythonCall loaded AFTER CondaPkg: passes on all platforms ✅ Thanks @cjdoris!
Following up on a discussion with @cjdoris's on slack, I'm recording an issue I happened to run into when working with PythonCall/CondaPkg in some of our CI tests:
Edge case: The order of
using PythonCallandusing Condacan lead to downloaded python packages being looked for in the wrong place, based on platform and python package managerSummary from brief tests used on a sample Julia package:
maybe related to mamba-org/mamba#2705?