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

Set user parameter to True #9

Merged

Conversation

nikoskaragiannakis
Copy link
Contributor

@nikoskaragiannakis nikoskaragiannakis commented Feb 3, 2018

The user parameter in https://github.com/bgschiller/postgres_kernel/blob/master/setup.py#L31 is by default False in the distutils.command.install.install class (https://github.com/python/cpython/blob/master/Lib/distutils/command/install.py#L153). Thus, it tries to use '/usr/local/share/jupyter' and raises a Permission denied error.

To use the local jupyter kernel, you need to pass user=True

This small PR fixes the problem (I tested with python setup.py install before and after the fix).

@nikoskaragiannakis nikoskaragiannakis mentioned this pull request Feb 3, 2018
@bgschiller bgschiller merged commit af0b7a3 into bgschiller:master Feb 3, 2018
@bgschiller
Copy link
Owner

Awesome, good catch. 👍

@nikoskaragiannakis nikoskaragiannakis deleted the bugfix/make_pip_installable branch February 3, 2018 20:23
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

Successfully merging this pull request may close these issues.

2 participants