Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Running Pydev as root(How do I run a PyDev project as root?)
Running Pydev as root [message #1703740] Tue, 04 August 2015 15:13 Go to next message
Folatt RPG is currently offline Folatt RPGFriend
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 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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.
Previous Topic:[Ubuntu] Eclipse Crashes on First Run
Next Topic:Eclipse with Jazz (Rational Team Concert) - Best References for Study?
Goto Forum:
  


Current Time: Tue Oct 22 19:06:33 GMT 2019

Powered by FUDForum. Page generated in 0.04056 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top