Comments (4)
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:
ls -laR /usr/local/share/jupyter/
- check if
ipython
, jupyter's primary shell, is working.
from ilua.
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.
- 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.
- 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.
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.
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)
- Ctrl-C Interrupt Support HOT 5
- What exactly is required from the custom lua interpreter? HOT 5
- Operation not permitted when piping in stdin HOT 2
- RFE: A way to pass additional help_links from kernel.json HOT 3
- Install error on macOS HOT 4
- Installing to Jupyter's kernelspec? HOT 2
- Implement a backend running the kernel in the same process using lupa HOT 1
- Got error in jupyter lab HOT 19
- Exception 'coroutine' object is not subscriptable on typing anything HOT 11
- How to pip install ilua in specify lua version? HOT 4
- ilua in fedora 34 no docstrings, only ? HOT 1
- how to quit/close/exit ilua? HOT 2
- Exit cleanly when no Lua executable found HOT 1
- Tab-completion crashes HOT 7
- The included "inspect" module poorly respects __tostring metamethods
- builtins.AttributeError: 'ILuaKernel' object has no attribute 'proto' HOT 10
- Docstring crashing shell HOT 3
- printing HOT 7
- Passing ipython command line arguments HOT 11
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 ilua.