question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi!

I’ve been trying to use jupyter notebook, and when I type in a terminal:

sudo pip3 install jupyter it says:

Requirement already satisfied (use --upgrade to upgrade): jupyter in ./.local/lib/python3.5/site-packages
Cleaning up...

Then I type:

sudo pip3 install jupyter --upgrade
Requirement already up-to-date: jupyter in ./.local/lib/python3.5/site-packages
Cleaning up...

And then I try to run jupyter:

jupyter notebook
Traceback (most recent call last):
  File "/usr/local/bin/jupyter-notebook", line 7, in <module>
    from notebook.notebookapp import main
  File "/usr/local/lib/python2.7/dist-packages/notebook/notebookapp.py", line 28, in <module>
    from jinja2 import Environment, FileSystemLoader
  File "/usr/local/lib/python2.7/dist-packages/jinja2/__init__.py", line 33, in <module>
    from jinja2.environment import Environment, Template
  File "/usr/local/lib/python2.7/dist-packages/jinja2/environment.py", line 13, in <module>
    from jinja2 import nodes
  File "/usr/local/lib/python2.7/dist-packages/jinja2/nodes.py", line 19, in <module>
    from jinja2.utils import Markup
  File "/usr/local/lib/python2.7/dist-packages/jinja2/utils.py", line 531, in <module>
    from markupsafe import Markup, escape, soft_unicode
ImportError: No module named markupsafe

What can I do tu be able to run this??

Thank you so much!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
takluyvercommented, Dec 1, 2015

On 1 December 2015 at 08:34, Luis Diaz notifications@github.com wrote:

Unexpected error while saving file: Untitled.ipynb [Errno 13] Permission denied: ‘/home/luisdiaz/.local/share/jupyter/notebook_secret’

It’s not possible to run it without being superuser?

That location is normally user writable, but it has somehow ended up being owned by root in your case. We should probably do something more graceful, but it’s a bit of a pathological case. You should be able to fix it by running this in a terminal:

sudo chown -R luisdiaz:luisdiaz ~/.local/share/jupyter

That changes the owner of that directory to your user.

Thomas

1reaction
LuisDiazUgenacommented, Dec 1, 2015

I’ve been able to run the program as non root user, but it keeps saying:

image

Thanks

EDIT

I’ve fix it using:

 sudo chown -R luisdiaz:luisdiaz /home/luisdiaz/Escritorio/git-projects/jupyter\ notebooks/.ipynb_checkpoints/
Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Fix an Add-on for This Website Failed to Run Error
If the Add on for the website failed to run Internet Explorer error bothers you, modify security settings or disable add-ons and try...
Read more >
Failed to run service - Microsoft Community
Windows Key + r - then type "cmd" right click on that, and run as administrator. type "wuauclt.exe /updatenow" and hit enter. This...
Read more >
Failed run.. : r/running - Reddit
I feel so disappointed in myself for not pushing and getting the miles in (I stopped at 4 miles down, when my pace...
Read more >
Agent Client Collector - Check failed to run - ServiceNow
Error - Check failed to run. Response code: 3 check command denied by the agent allow list This is not a custom check....
Read more >
Re: Content filters have failed to run and are currently disabled
Content filters have failed to run and are currently disabled. Go to solution ... The error mentions a test resource thats missing.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found