Giter Site home page Giter Site logo

No such kernel named lua about ilua HOT 4 CLOSED

guysv avatar guysv commented on July 28, 2024
No such kernel named lua

from ilua.

Comments (4)

guysv avatar guysv commented on July 28, 2024

first of all: macos support is work in proress (i.e. yet to exist).

just fresh-installed it on my mac, unlike your it launched, but crashed after the first command.

Regarding how I know jupyter, i'd say this bug happened because jupyter couldn't discover ilua's configuration files properly.
I have two requests to you:

  1. ls -laR /usr/local/share/jupyter/
  2. check if ipython, jupyter's primary shell, is working.

from ilua.

zccafa3 avatar zccafa3 commented on July 28, 2024

Thank you very much for your reply and input.
I used to have ilua installed on my old mac, and it would launch and run just fine.

  1. At first this did not work using the default directory. Seemed to work after providing the installed path.
    a) ~ % ls -laR /usr/local/share/jupyter ls: /usr/local/share/jupyter: No such file or directory
    b) '~ % ls -laR /Users/zccafa3/Library/Python/3.7/share/jupyter
    total 16
    drwxr-xr-x 4 zccafa3 staff 128 23 Aug 09:53 .
    drwxr-xr-x 5 zccafa3 staff 160 23 Aug 12:25 ..
    -rw-r--r--@ 1 zccafa3 staff 6148 23 Aug 09:53 .DS_Store
    drwxr-xr-x 5 zccafa3 staff 160 23 Aug 11:29 kernels

/Users/zccafa3/Library/Python/3.7/share/jupyter/kernels:
total 16
drwxr-xr-x 5 zccafa3 staff 160 23 Aug 11:29 .
drwxr-xr-x 4 zccafa3 staff 128 23 Aug 09:53 ..
-rw-r--r--@ 1 zccafa3 staff 6148 23 Aug 17:08 .DS_Store
drwxr-xr-x 6 zccafa3 staff 192 23 Aug 17:41 lua
drwxr-xr-x 5 zccafa3 staff 160 23 Aug 17:41 python3

/Users/zccafa3/Library/Python/3.7/share/jupyter/kernels/lua:
total 40
drwxr-xr-x 6 zccafa3 staff 192 23 Aug 17:41 .
drwxr-xr-x 5 zccafa3 staff 160 23 Aug 11:29 ..
-rw-r--r--@ 1 zccafa3 staff 157 23 Aug 17:41 kernel.json
-rw-r--r-- 1 zccafa3 staff 1856 23 Aug 11:29 logo-32x32.png
-rw-r--r-- 1 zccafa3 staff 4355 23 Aug 11:29 logo-64x64.png
-rw-r--r-- 1 zccafa3 staff 594 23 Aug 11:29 logo-license.txt

/Users/zccafa3/Library/Python/3.7/share/jupyter/kernels/python3:
total 24
drwxr-xr-x 5 zccafa3 staff 160 23 Aug 17:41 .
drwxr-xr-x 5 zccafa3 staff 160 23 Aug 11:29 ..
-rw-r--r-- 1 zccafa3 staff 143 23 Aug 17:41 kernel.json
-rw-r--r-- 1 zccafa3 staff 1084 23 Aug 09:26 logo-32x32.png
-rw-r--r-- 1 zccafa3 staff 2180 23 Aug 09:26 logo-64x64.png`

I use multiple versions of pycharm. Typically I use homebrew to manage package installations, not pip, as it better handles this and related pathing issues (in my experience). As brew install ilua was not available, I used pip3 install ilua to install the package. This required me to overcome some pathing issues with a .zshrc file;
export PATH="${PATH}:/Users/zccafa3/Library/Python/3.7/bin" export PYTHONPATH="${PYTHONPATH}:/Users/zccafa3/Library/Python/3.7/bin"
However, Lua 5.2.4 has been installed to the default location. I suspect it has something to do with this.

  1. This runs fine.
    `~ % ipython
    Python 3.7.3 (default, Apr 24 2020, 18:51:23)
    Type 'copyright', 'credits' or 'license' for more information
    IPython 7.17.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]:
`

from ilua.

chengsun avatar chengsun commented on July 28, 2024

Jupyter looks in a different data path by default on Mac OS. See: https://docs.jupyter.org/en/latest/use/jupyter-directories.html#id2

If your kernel lives at $path/kernels/lua/kernel.json, then you can set the environment variable JUPYTER_DATA_DIR=$path to get ilua working.

from ilua.

zccafa3 avatar zccafa3 commented on July 28, 2024

A long way down the road (sorry life got in the way for a while) and a fresh install later, I am able to use ilua again. Unfortunately, some other (unrelated) issues started to crop up with my mac, which lead to a whipe and fresh install, so I was not (and cannot currently) reproduce this issue. Closing this out (but of course re-open if you would like the record for yourselves). Thanks

from ilua.

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.