Closed kwbr closed 8 years ago
Sorry for taking so long to reply.
If I am not missing something, even if I take out /etc/greg.conf, you will have problems installing as user: the libraries are not world-writable either. Have you tried installing greg with virtualenv? How do you normally go about installing python packages as user?
For example I can use pip install --user goobook
which installs goobook with all it's dependencies into a folder hierarchy in the users home directory. Under Linux this directory is $HOME/.local.
This is a python standard since 2.4 I think. http://docs.python.org/2/install/index.html#alternate-installation-the-user-scheme
and python setup.py install --user
does not work? It works here...
The last lines when trying python setup.py install --user
are:
...
copying data/greg.conf -> /etc
error: /etc/greg.conf: Permission denied
When trying to start greg I get:
$ greg
Traceback (most recent call last):
File "/home/kai/.local/bin/greg", line 17, in <module>
from greg.gregparser import main
ImportError: No module named greg.gregparser
Try pip install greg --user
now, please.
Failed. Log output: https://gist.github.com/kwbr/5563811
I've seen from your error log that you are using python 2. Greg is python 3. This is certainly not clear enough in the README; I will improve this.
Some of the latest changes I have made should allow user install from pip -- I think! If you are still using greg, or interested in it, please give it a go.
I think this issue is solved now, as you say. Closing.
Installing as a user is not possible at the moment because /etc/greg.conf is required and the setup.py tries to install it at this fixed place. Please consider a plain user install (pip install --user ...)