Giter Club home page Giter Club logo

Comments (8)

Nekailrii avatar Nekailrii commented on August 22, 2024 2

I found the jupyter.exe file in the conda packages folder. I'm getting a different error now.

(base) PS C:\Windows\system32> raco iracket install --jupyter-exe C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\Scripts\jupyter.exe
Unable to create process using 'C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\python.exe C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\Scripts\jupyter-script.py --data-dir'
Received non-zero exit code from jupyter command.

This path also contants the jupyter-script.py file but not the python.exe file. That could be causing this error. But Python is included in the system path already.

I was having the same issue, however I found second executable named jupyter.exe under:

C:\Users\user_name\anaconda3\Scripts

When I ran in powershell:

PS C:\Users\user_name> raco iracket install --jupyter-exe C:\Users\user_name\anaconda3\Scripts\jupyter.exe   
Kernel installed in "C:\\Users\\user_name\\AppData\\Roaming\\jupyter\\kernels\\racket"

I encountered no issues and was able to use the iracket kernel.

from iracket.

rmculpepper avatar rmculpepper commented on August 22, 2024 2

Thanks @pgdanes, I've pushed a fix for the executable name on Windows.

from iracket.

pgdanes avatar pgdanes commented on August 22, 2024 1

I encountered the same problem trying to install it on windows.

It seems to be the behaviour of (find-executable-path) on windows is affecting this segment

(define (get-jupyter-exe [fail-ok? #f])
  (or (*use-jupyter-exe*)
      (find-executable-path "jupyter")
      (if fail-ok? #f (raise-user-error "Cannot find jupyter executable."))))
> (find-executable-path "jupyter")
#f
> (find-executable-path "jupyter.exe")
#<path:C:\Users\...\miniconda3\Scripts\jupyter.exe>

Would it be worth adding in a flag for windows specific installations?

from iracket.

naviabbot avatar naviabbot commented on August 22, 2024

Can replicate

from iracket.

rmculpepper avatar rmculpepper commented on August 22, 2024

The argument to the --jupypter-exe flag is the complete path to the Jupyter executable, not to its data directory. If the jupyter command is in your path, you should be able to just call raco iracket install. What happens when you try that?

from iracket.

pritesh-shrivastava avatar pritesh-shrivastava commented on August 22, 2024

Both jupyter and racket are in the path of the Anaconda Powershell Prompt, running as administrator. Here's the output if I dont provide --jupyter-exe flag -

(base) PS C:\Windows\system32> raco iracket install
Cannot find jupyter executable.

Also, here's the path to Jupyter runtime

(base) PS C:\Windows\system32> jupyter --runtime-dir
C:\Users\yashi\AppData\Roaming\jupyter\runtime

Now, using the runtime path also gives the same error.

(base) PS C:\Windows\system32> raco iracket install --jupyter-exe C:\Users\yashi\AppData\Roaming\jupyter\runtime
Received non-zero exit code from jupyter command.

Which file path should I use for Jupyter?

from iracket.

rmculpepper avatar rmculpepper commented on August 22, 2024

You need to find where jupyter.exe is installed and provide the complete path to that executable file (not just the directory part) as the argument to --jupyter-exe. That is, the argument should end with jupyter.exe.

from iracket.

pritesh-shrivastava avatar pritesh-shrivastava commented on August 22, 2024

I found the jupyter.exe file in the conda packages folder. I'm getting a different error now.

(base) PS C:\Windows\system32> raco iracket install --jupyter-exe C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\Scripts\jupyter.exe
Unable to create process using 'C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\python.exe C:\Users\yashi\.conda\pkgs\jupyter_core-4.7.0-py38haa244fe_0\Scripts\jupyter-script.py --data-dir'
Received non-zero exit code from jupyter command.

This path also contants the jupyter-script.py file but not the python.exe file. That could be causing this error. But Python is included in the system path already.

from iracket.

Related Issues (12)

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.