You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue occurs because CondaPkg detects a change in the load path. Specifically, it tries to compare Base.load_path and meta.load_path in the function _resolve_can_skip_1(conda_env, load_path, meta_file). The comparison fails because Base.load_path contains an uncapitalized directory (e.g.,"c:\Users...") for the active project, while meta.load_path has a capitalized path (e.g., "C:\Users...").
The problem seems to stem from how Julia initializes the Base.ACTIVE_PROJECT variable. Specifically, the issue arises from the line unsafe_string(Base.JLOptions().project) in the function Base.init_active_project.
While this appears to be more of a Julia-related issue rather than a problem within CondaPkg, I wanted to bring it to the attention of CondaPkg users in case others encounter the same issue.
As a simple workaround, you can manually activate the project with the correct path before calling CondaPkg. For example:
For example: Pkg.activate("C:\Users...")
The text was updated successfully, but these errors were encountered:
pkg> add CondaPkg#compare-load-path fixes the environment re-install whenever using PythonCall on Windows in CondaPkg 0.2.25. Julia launched with julia +lts --startup-file=no --project=debug. CondaPkg 0.2.24 did not have this problem.
This issue occurs because CondaPkg detects a change in the load path. Specifically, it tries to compare Base.load_path and meta.load_path in the function _resolve_can_skip_1(conda_env, load_path, meta_file). The comparison fails because Base.load_path contains an uncapitalized directory (e.g.,"c:\Users...") for the active project, while meta.load_path has a capitalized path (e.g., "C:\Users...").
The problem seems to stem from how Julia initializes the Base.ACTIVE_PROJECT variable. Specifically, the issue arises from the line unsafe_string(Base.JLOptions().project) in the function Base.init_active_project.
While this appears to be more of a Julia-related issue rather than a problem within CondaPkg, I wanted to bring it to the attention of CondaPkg users in case others encounter the same issue.
As a simple workaround, you can manually activate the project with the correct path before calling CondaPkg. For example:
For example: Pkg.activate("C:\Users...")
The text was updated successfully, but these errors were encountered: