bgschiller / postgres_kernel

A simple Jupyter kernel for PostgreSQL
MIT License
64 stars 19 forks source link

Set user parameter to True #9

Closed nikoskaragiannakis closed 6 years ago

nikoskaragiannakis commented 6 years ago

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).

bgschiller commented 6 years ago

Awesome, good catch. 👍