Skip to content
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

kernel.json has hardcoded python path #9

Open
isuruf opened this issue Oct 15, 2018 · 4 comments
Open

kernel.json has hardcoded python path #9

isuruf opened this issue Oct 15, 2018 · 4 comments

Comments

@isuruf
Copy link

isuruf commented Oct 15, 2018

This should just be python or the path to sys.executable replaced by setup.py

@redtrumpet
Copy link

I ran into trouble with this, because jupyter is running with python3.6 on my Ubuntu system, but python is actually Python 2.7. I got the error message

/usr/bin/python: No module named jupyter_kernel_singular

in my jupyter log, and fixed it (for now) by adjusting the "hardcoded" path to /usr/bin/python3.6. Fortunately it's not really hardcoded, but configurable. Still not optimal though.

@rjacuna
Copy link

rjacuna commented May 26, 2019

The fixed code needs to be pushed to the pip3 repository, I ran into the issue and it took me a couple of hours to figure out what went wrong.

@sebasguts
Copy link
Owner

Sorry for wastig your time. I uloaded the fixed code to PyPI. Hope it works now.

@EmmanuelCharpentier
Copy link

EmmanuelCharpentier commented Jul 24, 2020

Sorry for wastig your time. I uloaded the fixed code to PyPI. Hope it works now.

Unfortunately not. I'm trying to install it in Sage, where it is packaged with a very thin wrapper around pip, and the resultant kernel.json still is

{
    "argv": ["/usr/bin/python", "-m", "jupyter_kernel_singular", "-f", "{connection_file}"],
    "codemirror_mode": "singular",
    "display_name": "Singular",
    "language": "singular"
}

Since /usr/bin/python is still Python 2, the kernel isn't found.

Contrast this with the installatuion procedure of the Gap kernel, which builds a custom kernel.json (including the current executable (sys.executable): in the Sage case, it finds ths correct Sage script) and dumps it in the relevant directory before installing.

Could you check what is installable via pip ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants