pavelzw / pixi-pycharm

Conda shim for PyCharm that proxies pixi
https://pixi.sh/dev/ide_integration/pycharm
BSD 3-Clause "New" or "Revised" License
20 stars 1 forks source link

Pycharm access denied #47

Open Leo-VK opened 4 days ago

Leo-VK commented 4 days ago

Description

Hi Thanks for all the good work, I like the vision of pixi! When working with Pycharm 2024.3, I couldn't get the environment/project to run. Even though I followed the recommended installation procedure, I get the following console error in Pycharm when trying to run my main.py script:

" x access denied (os error 5)"

Would you know how to fix it?

The conda-shim environment is partly recognized and selectable: image

Versions

❯ pixi --version
# pixi 0.36.0
❯ pixi list | grep pixi-pycharm
Package                        Version             Build                   Size       Kind   Source
...
pixi-pycharm                   0.0.8               win_1234567_0           8.5 KiB    conda  pixi-pycharm-0.0.8-win_1234567_0.conda
...

PyCharm version: 2024.3

Platform: Win64

Logs

Attempting to run: ['list', '-n', 'default']
Attempting to run: ['info', '--envs', '--json']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', '-V']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/syspath.py']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/generator3/__main__.py', '-d', 'C:\\Users\\...\\AppData\\Local\\JetBrains\\PyCharm2024.3\\python_stubs\\1201198592', '-s', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python/helpers-pro/bundled_stubs']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/packaging_tool.py', 'list']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', '-V']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/syspath.py']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/generator3/__main__.py', '-d', 'C:\\Users\\...\\AppData\\Local\\JetBrains\\PyCharm2024.3\\python_stubs\\1201198592', '-s', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python/helpers-pro/bundled_stubs']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/packaging_tool.py', 'list']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', '-V']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/syspath.py']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/generator3/__main__.py', '-d', 'C:\\Users\\...\\AppData\\Local\\JetBrains\\PyCharm2024.3\\python_stubs\\1201198592', '-s', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python/helpers-pro/bundled_stubs']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/packaging_tool.py', 'list']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/syspath.py']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/generator3/__main__.py', '-d', 'C:\\Users\\...\\AppData\\Local\\JetBrains\\PyCharm2024.3\\python_stubs\\1201198592', '-s', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python/helpers-pro/bundled_stubs']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:/Program Files/JetBrains/PyCharm 2024.3/plugins/python-ce/helpers/packaging_tool.py', 'list']
Attempting to run: ['list', '-n', 'default']
Attempting to run: ['info', '--envs', '--json']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:\\Users\\...\\main.py']
Attempting to run: ['run', '-n', 'default', '--no-capture-output', 'python', 'C:\\Users\\...\\main.py']

Pycharm Logs

2024-11-15 14:49:10,210 [ 648125]   WARN - CondaPythonLegacy - Can't find python path to use, will use conda run instead
2024-11-15 14:49:10,211 [ 648126]   INFO - CondaLogger - Patching envs
2024-11-15 14:49:10,211 [ 648126]   INFO - CondaLogger - Patching envs
2024-11-15 14:49:15,674 [ 653589]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.SdkEntity to files
2024-11-15 14:49:15,682 [ 653597]   INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities com.intellij.platform.workspace.jps.entities.LibraryEntity to files
pavelzw commented 4 days ago

will take a look after investigating #46