Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add pixi interpreter in PyCharm #2993

Open
2 tasks done
hotlogical opened this issue Jan 23, 2025 · 1 comment
Open
2 tasks done

Can't add pixi interpreter in PyCharm #2993

hotlogical opened this issue Jan 23, 2025 · 1 comment

Comments

@hotlogical
Copy link

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

When trying to add the pixi interpreter to a project in PyCharm I follow the instructions and in the "Add Python Interpreter" dialog I choose:

"Select existing"
"Type: Conda"
Path to conda: /home/elc/repos/apitest/.pixi/envs/default/libexec/conda"
"Reload environments"
"Environment: default"

The "default" environment is found but there is a red line around the box containing "default", the "OK" button to finish the dialog is greyed out and the interpreter can't be selected.

Image

Issue description

Unable to select the pixi interpreter in a PyCharm project.
I'm using the latest pixi - 0.40.3
This issue occurs with the latest PyCharm version - 2024.3.1.1
Using the two previous versions of PyCharm - 2024.2.5 and 2024.1.7 the issue is not there and the dialog box correctly selects the pixi interpreter from the project (using the exact same project).

Expected behavior

"Add Python Interpreter" dialog box adds the pixi interpreter to a PyCharm project (and all packages)

@hotlogical
Copy link
Author

Adding pixi info

System

   Pixi version: 0.40.3
       Platform: linux-64

Virtual packages: __unix=0=0
: __linux=6.8.0=0
: __glibc=2.39=0
: __cuda=12.4=0
: __archspec=1=skylake_avx512
Cache dir: /home/elc/.cache/rattler/cache
Auth storage: /home/elc/.rattler/credentials.json
Config locations: No config files found

Global

        Bin dir: /home/elc/.pixi/bin
Environment dir: /home/elc/.pixi/envs
   Manifest dir: /home/elc/.pixi/manifests/pixi-global.toml

Project

           Name: apitest
        Version: 0.1.0
  Manifest file: /home/elc/repos/apitest/pyproject.toml
   Last updated: 21-01-2025 19:53:45

Environments

    Environment: default
       Features: default
       Channels: conda-forge

Dependency count: 4
Dependencies: aiohttp, pixi-pycharm, requests, python
PyPI Dependencies: apitest
Target platforms: linux-64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant