-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No applicable method for JUPYTER::INSTALLER-PATH-PART #65
Comments
Pushed a fix. Let me know if it works. |
No joy. Same error. |
Did you git clone common-lisp-jupyter into |
I did |
I think I see what's going on here. In the local install, the pathname is hardcoded to |
I don't think that will fix the issue with the system bundler. Are you sure you want to use the bundler? It collects all the needed packages and deposits them into the system directory so there is no quicklisp dependency. It also depends on the version of common-lisp-jupyter in the quicklisp distribution, which could be why this is failing. It's odd that my commit fixed it on my end. Can you verify that you got that the latest commit? If everything is there then the following should work. (ql:quickload :common-lisp-jupyter)
(defvar a (make-instance 'j:system-bundle-installer))
(j::installer-path-part a :root) |
I'm not exactly clear on what the best option is. That's part of the reason I opened up issue #64. I do want to use quicklisp and asdf from the jupyter notebook and any install option that makes that possible is fine. Using the instructions above I get the same error. I'm relatively certain this is because my |
I am a little confused about which method you are using.
|
|
Ok. In this case I would do a user non-image kernel with just
|
That seems to have made the kernel appear in Jupyter-Lab, but it's unable to run any code.
Probably because there is no connection: If I look into the installation directories, I see that That empty directory looks suspicious, unless it is a data directory. I have confirmed that libzmq.dll is on the |
A local user install will only install stuff into Try testing with |
For anyone finding this issue with the same problems: Testing with
|
This is usually an indicator that there is something wrong with the Jupyter setup. It can be kind of hard to track down. I'll start setting up a Windows VM and see if I can reproduce it. |
FYI, the JupyterLab stuff, sans common lisp, works fine. Let me know if I can help. |
I have not been able to reproduce this yet, mostly to having a heck of a time trying to get msys setup with Jupyter and zmq. I have been able to get a working version using miniconda and the version of common-lisp-jupyter in quicklisp. After installing miniconda I did the following:
I then installed sbcl and quicklisp and did the following in sbcl
Initially the latter failed possibly because my code page was not utf-8. I don't really use Windows much, so I just fixed the offending code which was in |
Is there anything I can do to help debug zmq? What test can be run to ensure connectivity? I installed zmq with MSYS2 (note there is a difference with MSYS and MSYS2) and ensured it's on the PATH and it would be good to confirm it's functioning if we can. Also, it would be helpful for me to understand the differences between miniconda and pip for installations. For example I know that the pip Lab/Notebook works, and wonder then if it might be configuration? |
Can you tell what packages you installed in MSYS2? Like which python, etc. Anaconda/Miniconda distribute binaries in additional to Python packages. More of a general package manager. MSYS2 would not be needed in this case. Also I think that installation of all dependencies can be done with |
MSYS2 is pretty standard for what you need for CFFI. Here's what in there:
|
So you did not use the Python from MSYS2? |
No, that's from the Python download for Windows |
And clang vs gcc, correct? |
I didn't compile anything, it happened as part of the CLJ install. GCC is installed as part of MSYS2 base, so whatever was in the makefile was probably used. CC is configured as |
I just installed miniconda and Juypter. Pretty much the same problem. Jupyter Lab runs, but the kernel returns a similar error. I notice a timeout=1 in the output and wonder if this may be related to waiting for SBCL? When running SBCL under emacs/slime, start-up time can be up to 120 seconds, possibly due to the source being on a NFS mounted drive and having a very large set of files to scan through (ASDF scans for all the ASD files in the configured directory.
|
The default timeout for the kernel to respond is 60 seconds. You can increase it with the I think you can configure for the Lab/Notebook in the |
Console works with that parameter. However, it is specific to juypter-console. At least there's something working at the moment. Labs probably has something similar. |
Okay, so for anyone that finds this issue in the future: If you're getting kernel timeouts:
If you only installed Jupyter Lab, the notebook file won't exist, that's why you have to create it. |
Glad you got it working. I'll leave the issue open so others can see the solution and update the documentation along with the improved installation details soon. |
I'll report anything else here then. First thing to note: a fresh conda install with juypter labs is not a light-weight. 2GB taken up with jupyter-lab alone. |
DId you do Anaconda or Miniconda? |
Miniconda |
This problem has resurfaced after upgrading in early May 2021. I get the same error as reported above on 26 Feb (even the line numbers are the same), however increasing the notebook timeout has no effect this time. Increasing the ZMQ timeout results in an error about an invalid argument to ZMQ. The
|
Jupyter Lab no longer uses
|
I've got that generated, however as far as I can tell the timeout is still controlled by |
I believe that Jupyter Lab is now using a different kernel manager so the settings may not be shared. Their kernel manager is |
I added
This looks like a CFFI error. There's more information on the screen when I Ctrl-C out of the failure:
|
Ok, I'll set up a Windows VM and see if I can reproduce. I may come back with questions about your setup. |
Were you able to reproduce the problem? |
Unfortunately, no. I used the installation method here and it works just fine. Did you do an installation different that this? |
Cancel that last statement. Looks I just reproduced it. Had an old quicklisp version around. |
I think that I have a solution. Looks like the issue is in pzmq with a struct that is a different size on win64. Unfortunately I don't think I can grovel the size since zeromq changed some of the names of types along the way. If you want to try out a fix until I manage to figure out a general solution you can change following line to https://github.com/orivej/pzmq/blob/91dd3a891e639f41d44bfb5f449daf0fcd408e29/c-api.lisp#L588 |
I can give it a whirl if it's helpful, though of course a general solution is preferred so that others can reproduce the analysis and work on Windows. Is there anything I can do to help with that? |
I submitted a PR to pzmq for this. Until it gets reviewed/merged you can clone the following branch if you want to try it out. |
The maintainer of pzmq was able to find a better way to fix this and has merged that change. |
It looks like it's going to be a while before this makes it into the next release. ZMQ seems to do a new release about every six months, and then a month later it gets picked up by MSYS2. |
The changes to ZMQ are just documentation changes so you shouldn't need a new release there. The changes to make everything work again are just in https://github.com/orivej/pzmq/ so you should just be able to clone that or wait till the next Quicklisp updates. |
Quicklisp just updated. Everything should work now. Can you try again? |
It's running again now, thanks. |
Awesome. Closing. |
We might want to leave it open as a historical record. |
I prefer that resolved issues are closed, especially when the issues are bugs. Searching closed issues is not difficult on GitHub. The issues that I have left open are generally questions about usage which should turned in a FAQ maybe in the Wiki at some point. |
To reproduce using a git clone (cloned on 4 Feb) repo, SBCL, on the latest version of MS Windows and the latest Jupyter-Lab:
In the debugger:
The text was updated successfully, but these errors were encountered: