-
Notifications
You must be signed in to change notification settings - Fork 21
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
Python environments issue #373
Comments
Hi @Altonss, how conda works? This works similar to pyenv? I have the default permission for ### Load pyenv automatically
PYENV_ROOT="${HOME}/.pyenv"
export PYENV_ROOT
command -v pyenv >/dev/null || export PATH="${PYENV_ROOT}/bin:${PATH}"
eval "$(pyenv init -)"
### Load pyenv-virtualenv automatically
eval "$(pyenv virtualenv-init -)" This allows me to work with my virtualenvs on flatpak's vscodium, is there something like that for conda? Are the conda binaries and environments on your home directory? |
I don't know about pyenv, but when creating a conda environment (with
This works all fine in the terminal (with my system bash). But VSCodium has a special integration of those environments at several locations, and with conda none seem to work:
This is maybe more an issue with conda (as Venv seems to work). |
This issue on the VSCode flatpak seems similar: flathub/com.visualstudio.code#396 |
Well for me looks more it's that vscodium is not able to found where is located the Can you run |
This just returns |
Installing conda inside of the flatpak by default might actually be a good solution, for an out of the box solution for VSCodium to work well. |
I disagree to have conda builtin in VSCodium. You should use a flatpak extension or |
What would be the reason for not wanting a builtin conda installation? AFAIK the same is currently done with python executable, being builtin in VSCodium... |
VSCodium is a general purpose IDE, so we can't cater it to a specific language. Flatpak is sandboxed so you need to provide to the app the necessary access to your system conda (with extensions or env overrides). |
Python is built-in in Said that, I think if you create an extension on namespace com.vscodium.codium/com.vscodium.codium.yaml Lines 28 to 34 in 27d1b63
|
I agree, but whatever the technical justification, the fact is that the user experience for a developer is broken by default (at least for very common python projects). If the only acceptable solution to this, is an extension, how would be the user experience? Is it a simple install from flathub and it works? How about guiding the user, when he encounters the error message I mentioned,
would it be possible to explain/link to the solution or would this require a too complex patch? |
I think "broken by default" is not the best statement, the isolation of the environment is intended here, not only for this package but with any flatpak package, then if the developers of a tool or any user want the features that flatpak provide they need to fix the tool or do a workaround to be compliant with flatpak sandbox, if you think that is not for you, you can find the regular packages for your distribution here
when someone add something like this, com.vscodium.codium/com.vscodium.codium.yaml Lines 28 to 34 in 27d1b63
then if you download the tool like flatpak install flathub com.visualstudio.code.tool.podman After restart codium this tool is available inside the codium's sandbox without any other user intervention.
This kind of guiding are already in the FAQ, then will be needed to add a solution to this particular in the same way on README.md as well |
Sure, but the underlying (VSCodium) tool isn't really well adapted for this isolation and fails in strange ways (like this very issue shows), which is totally understandable and normal :) So yes the experience is kind of "broken" in the sense that in order to have a working environment, one has to do all the research and fixing we are for example doing in this issue ^^. |
Like a mention before, I think the best solution for your needs is to install the distribution package. |
I have an issue with my Python path: the only thing I see is :
No local conda environment is showing up at all.
If I want to create a conda environement from within vscodium I get this error :
Install `conda` to create conda environments.
conda
is installed on my system!Originally posted by @Altonss in #26 (comment)
The text was updated successfully, but these errors were encountered: