pixi
pixi copied to clipboard
PermissionDenied Error in PowerShell: A Puzzling Discrepancy
Checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.
Reproducible example
[project]
name = "test_pixi"
version = "0.1.0"
description = "Add a short description here"
channels = ["conda-forge", "pytorch"]
platforms = ["win-64"]
[tasks]
start = "jupyter-lab --no-browser"
[dependencies]
python = "3.11.*"
jupyterlab = ">=4.2.3,<4.3"
pytorch = ">=2.3.1,<2.4"
torchvision = ">=0.18.1,<0.19"
biopython = ">=1.84,<2"
scipy = ">=1.14.0,<1.15"
Issue description
PS C:\Users\Downloads\rosalind> pixi run start
✨ Pixi task (start in default): jupyter-lab --no-browser
× An activation error occurred: IoError(Os { code: 5, kind: PermissionDenied, message: "액세스가
│ 거부되었습니다." })
PS C:\Users\Downloads\rosalind> pixi run start
✨ Pixi task (start in default): jupyter-lab --no-browser
× An activation error occurred: IoError(Os { code: 5, kind: PermissionDenied, message: "액세스가
│ 거부되었습니다." })
PS C:\Users\Downloads\rosalind> pixi run start
✨ Pixi task (start in default): jupyter-lab --no-browser
× failed to activate environment
╰─▶ An activation error occurred: IoError(Os { code: 5, kind: PermissionDenied, message: "액세스
가 거부되었습니다." })
PS C:\Users\Downloads\rosalind> pixi run start
✨ Pixi task (start in default): jupyter-lab --no-browser
[I 2024-08-07 17:14:28.789 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-08-07 17:14:28.797 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-08-07 17:14:28.806 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-08-07 17:14:29.290 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-08-07 17:14:29.344 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-08-07 17:14:29.347 ServerApp] jupyter_lsp | extension was successfully loaded.
Expected behavior
I'm encountering a peculiar issue with a script that runs flawlessly on Linux but throws a PermissionDenied error in the Windows PowerShell environment. What's even more perplexing is that the script occasionally executes successfully after multiple attempts. The scenario is as follows:
The script runs without any issues on Linux. When run in Windows PowerShell, it randomly results in a PermissionDenied error. Surprisingly, repeated execution sometimes allows the script to run successfully.
This inconsistent behavior is quite confusing, and I'm struggling to understand the root cause. What could be the reason behind this erratic permission denial in PowerShell, especially considering its smooth operation in Linux?
Also I've tried execute the terminal in supervisor mode, but it is not solved the problem. Any insights or assistance in resolving this issue would be greatly appreciated. Thank you in advance for your help!