GithubHelp home page GithubHelp logo

Exec path is set incorrectly about conda.el HOT 5 CLOSED

orausch avatar orausch commented on August 20, 2024
Exec path is set incorrectly

from conda.el.

Comments (5)

seblemaguer avatar seblemaguer commented on August 20, 2024 1

Hello,

I faced the same problem which seems to be due to the shell activation of conda which is supposed to set some variables. On my side, I replaced conda--get-path-prefix with the following implementation:

(defun conda--get-path-prefix (env-dir)
  "Get a platform-specific path string to utilize the conda env in ENV-DIR.
It's platform specific in that it uses the platform's native path separator."
  (s-trim
   (with-output-to-string
     (with-current-buffer standard-output
       (process-file shell-file-name nil '(t nil) nil shell-command-switch
                     (format "%s/bin/conda ..activate \"%s\" %s"
                             conda-anaconda-home
                             (if (eq system-type 'windows-nt)
                                 "cmd.exe"
                               "bash")
                             env-dir))))))

so it go take the full path of conda based on conda-aconaconda-home

from conda.el.

necaris avatar necaris commented on August 20, 2024

@orausch can you tell me a bit more about your system? OS, Emacs version, etc?

from conda.el.

orausch avatar orausch commented on August 20, 2024

Sure; my OS is debian testing, my emacs version is 26.1. Conda is installed in a non-standard location: ~/.local/opt/miniconda3, and my conda version is 4.8.2

from conda.el.

necaris avatar necaris commented on August 20, 2024

from conda.el.

orausch avatar orausch commented on August 20, 2024

@seblemaguer Yes, that seems like a reasonable solution IMO.

from conda.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.