manolomartinez / greg

A command-line podcast aggregator
GNU General Public License v3.0
299 stars 37 forks source link

Allow installation as user #3

Closed kwbr closed 8 years ago

kwbr commented 11 years ago

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

manolomartinez commented 11 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?

kwbr commented 11 years ago

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

manolomartinez commented 11 years ago

and python setup.py install --user does not work? It works here...

kwbr commented 11 years ago

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
manolomartinez commented 11 years ago

Try pip install greg --user now, please.

kwbr commented 11 years ago

Failed. Log output: https://gist.github.com/kwbr/5563811

manolomartinez commented 11 years ago

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.

manolomartinez commented 9 years ago

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.

ghost commented 8 years ago

41 should be able to close this issue. Local user installs work great now.

manolomartinez commented 8 years ago

I think this issue is solved now, as you say. Closing.