Comments (8)
;; Package-Version: 20200120.1721
;; Version: 0.4
from conda.el.
@gmoutso how are you activating the environment? Are you using conda-env-activate
or the autoactivate-mode
?
from conda.el.
I was using (conda-env-autoactivate-mode)
but I have the wrong exec-path
even without autoactivate (after conda-env-activate
).
from conda.el.
It works with emacs -Q (setting conda-anaconda-home and conda-env-home-directory to ~/miniconda). I will try to find what the issue is in my configuration.
from conda.el.
After a frantic search, I realised that my init.el works perfectly well when loaded with emacs --daemon
or emacs -q -l ~/.emacs.d/init.el
where I have:
(require 'conda)
(custom-set-variables '(conda-anaconda-home "/home/moutsopoulosg/miniconda/"))
(conda-env-initialize-interactive-shells)
;; if you want eshell support, include:
(conda-env-initialize-eshell)
;; if you want auto-activation (see below for details), include:
(conda-env-autoactivate-mode)
(setq conda-env-home-directory "/home/moutsopoulosg/miniconda/")
It fails when I run the daemon (as I usually do) with a systemctl unit systemctl start --user emacs
where under .config/systemd/user/emacs.service
[Unit]
Description=Emacs text editor
Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon
ExecStop=/usr/bin/emacsclient --eval "(kill-emacs)"
Environment=SSH_AUTH_SOCK=%t/keyring/ssh
Restart=on-failure
[Install]
WantedBy=default.target
I have no idea why. Close the bug if you think it is not in conda.el's.
In any case, thank you for the package and for your prompt response.
from conda.el.
@gmoutso can you confirm if conda-env-activate
works if you're not in daemon mode? I'd be happy to look into the daemon issue too but if it's not affecting conda.el
functionality I probably won't have any more knowledge than you do on how to start debugging 😄
from conda.el.
Both daemon and non-daemon are working now, but unfortunately I cannot find the critical change I made in my init.el between not working and working (whether daemon or not).
from conda.el.
With the changes to JSON activation this should be fixed; closing as inactive for now, but if this is still relevant please reopen!
from conda.el.
Related Issues (20)
- Error auto activating base env with custom conda home HOT 4
- conda-env-activate doesn't work but conda-env-list does HOT 6
- conda-env-name-to-dir errors HOT 3
- Error activating env HOT 16
- `conda-env-subdirectory` variable
- Add conda-config (similar to elpy-config) command to re-evaluate cached values HOT 2
- When python-shell-interpreter is set to "jupyter", conda is unable to change the environment of the interpreter. HOT 4
- Prefix is not added in shell prompt in Emacs 29.0.60 HOT 3
- Is there a reason not to get the user's config by default if it exists? HOT 4
- Activating environment when using 'emacs file.py'
- conda-env-activate-for-buffer sets PATH to "", causing "ls" "git" "bash" to fail HOT 9
- Error: `(void-function working-dir)` HOT 2
- Error when running the suggested config
- Eshell Python does not track environment HOT 2
- once conda-env-autoactivate-mode is called for one buffer, it activates for everyfile
- Auto Activate only for Python-mode
- Invalid version syntax HOT 5
- Add support for direct python invocation in the current environment
- Only .yml extension is recognised for activating environment
- conda.el, elpy, and python-mode conflicts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda.el.