-
Notifications
You must be signed in to change notification settings - Fork 51
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
Invalid version syntax #154
Comments
It looks like an issue with |
Here is my versions:
|
I have a similar error. I think it's unrelated to conda.el.
Opening vterm probably shows the error that's causing the issue. |
conda/conda#13451 For me it was an issue with the conda python plugin, which unsets the CONDA_PREFIX variable. |
Ooh, thank you for digging!
|
Hello, sorry for not responding since my last comment. I have been able to use conda.el, I don't know how and why the error disappeared. But it came back today. I installed mamba at /home/simon/mamba.
conda -V returns: conda 24.7.1 which conda return: /home/simon/mamba/bin/conda I have no idea why there is this error, I ll give a try with anaconda instead of mamba. Edit: In my first comment, I was using anaconda and I'm now on mamba. |
Thank you for the update! I'll have a look at this -- there are patches in place in Doom and other projects for Mamba support, I'll have to look at that. |
There is definitely something wrong, I tried with Anaconda instead and I got the same error. Now I try back with mamba, then it works, even with wrong CONDA_PREFIX variable and config:
where my path is /home/simon/miniforge3 ... |
Let's leave it open, since there's clearly something wrong I should look into. |
I've know idea why, but the error returned, so if you want me to check some stuffs, let me know. |
The shell points to the new installation (24.7.1). But it looks like there is still a reference to the old installation (probably in |
I removed anaconda3 for mamba and I manually activate my envs with the pyvenv package as a workaround. |
What about Line 164 in ce748a5
Did you install conda in init.el |
I installed conda through packages.el. I removed it and use default installation as you mentionned, but it doesn't solve the problem. How can I call the internal function |
With M-x eval-expression, and then enter |
It returns "cannot". I will try to investigate this eval-expression. |
@Simon-chevolleau Any chance you could try the branch in #165 and see if that fixes it? |
I'm still getting the same error with "fix/invalid-version-string" branch, with "cannot" returned. |
@Simon-chevolleau Can you paste the full output from running After I uninstalled and reinstalled, to make sure I didn't have any lingering issues from a really old Conda installation, this is what I get: $ conda -V
conda 24.9.1 |
Here it is:
|
This should display the whole error message: Does |
While I guess I solved the problem thank to you recommandations: |
Thank you @WhoisDonlee for helping ! |
I get back to this problem, and I know how to exactly trigger it, it is not related to doom envvars. |
Expected behavior
conda-env-activate
should activate a conda environment after, interactively, selecting it.Experienced behavior
An error is returned, specifying the version 4.8.3 + a string: "can't". However, I don't fully understand from which application this version is related to.
Error
Config
Environment
OS: Ubuntu 24.04
Emacs: 29.1
Doom core: v3.0.0-pre HEAD -> master 03d692f1 2023-12-08 15:11:45 -0500
Doom modules: v23.12.0-pre HEAD -> master 03d692f1 2023-12-08 15:11:45 -0500
conda: 23.7.4
conda.el (MELPA): 20231109.219
The text was updated successfully, but these errors were encountered: