Running Pydev as root [message #1703740] |
Tue, 04 August 2015 15:13 |
Folatt RPG Messages: 1 Registered: August 2015 |
Junior Member |
|
|
I have a PyDev project that I would like to run in eclipse. However this program uses redis that apparently needs root access.
This is the error I get when running the app as user:
Traceback (most recent call last):
File "/home/vagrant/kraken/krakend", line 12, in <module>
from kraken.application import run_daemon
File "/home/vagrant/kraken/kraken/application.py", line 7, in <module>
import messages
File "/home/vagrant/kraken/kraken/messages.py", line 6, in <module>
from redis_storage import storage
File "/home/vagrant/kraken/kraken/redis_storage.py", line 172, in <module>
storage = Storage()
File "/home/vagrant/kraken/kraken/redis_storage.py", line 9, in __init__
self.connect()
File "/home/vagrant/kraken/kraken/redis_storage.py", line 18, in connect
raise ConnectionError("arkOS Redis: %s" % e)
arkos.utilities.errors.ConnectionError: Failed to connect to arkOS Redis: Error 13 connecting to unix socket: /tmp/arkos-redis.sock. Permission denied. service
So I was wondering if I could run this PyDev application as root in eclipse?
|
|
|
Re: Running Pydev as root [message #1703768 is a reply to message #1703740] |
Tue, 04 August 2015 18:59 |
|
On 08/04/2015 12:27 PM, Folatt RPG wrote:
> I have a PyDev project that I would like to run in eclipse. However this
> program uses redis that apparently needs root access.
>
> This is the error I get when running the app as user:
> Traceback (most recent call last):
> File "/home/vagrant/kraken/krakend", line 12, in <module>
> from kraken.application import run_daemon
> File "/home/vagrant/kraken/kraken/application.py", line 7, in <module>
> import messages
> File "/home/vagrant/kraken/kraken/messages.py", line 6, in <module>
> from redis_storage import storage
> File "/home/vagrant/kraken/kraken/redis_storage.py", line 172, in
> <module>
> storage = Storage()
> File "/home/vagrant/kraken/kraken/redis_storage.py", line 9, in __init__
> self.connect()
> File "/home/vagrant/kraken/kraken/redis_storage.py", line 18, in connect
> raise ConnectionError("arkOS Redis: %s" % e)
> arkos.utilities.errors.ConnectionError: Failed to connect to arkOS
> Redis: Error 13 connecting to unix socket: /tmp/arkos-redis.sock.
> Permission denied. service
>
> So I was wondering if I could run this PyDev application as root in
> eclipse?
PyDev is a set of third-party plug-ins for Eclipse, but that aren't
supported by Eclipse. Like all third-party plug-ins, PyDev is supported
in non-Eclipse forums like stackoverflow.com. See pydev.org.
It's problematic running PyDev/Eclipse in root. You have to iron out the
windowing thing. So, in effect, it's not really an Eclipse or PyDev
problem per se, but one to sort out on your development host. You might
look at...
http://unix.stackexchange.com/questions/46868/how-to-operate-as-root-in-gui
....to get started.
Best of luck.
|
|
|
Powered by
FUDForum. Page generated in 0.07761 seconds