From: Aaron T. <ti...@ma...> - 2006-05-24 03:21:52
|
I'm trying to more elegantly organize my various programming projects in java and python. I started using Eclipse a few years ago but have more recently installed subversion with apache2 running locally on my laptop. Eclipse works quite nicely with subversion to manage a repository. But the reason I'm emailing the list is that I ran across PyDev (http://pydev.sourceforge.net/index.html). I just installed it. I really like it. I have all the advantages of Eclipse with syntax highlighting, managing of classes, easy navigation, etc. However, I'm using a Mac where one must use Fink in order to run vpython. Thus, I have to run the following command: /sw/bin/python2.3 vpythonfilename from Terminal (and have X11 running) in order to run a vpython program from the command line. If X11 is not running, I get the error: Gtk-WARNING **: cannot open display: :0.0 Well, running a vpython program from Eclipse gives the same error EVEN THOUGH X11 IS RUNNING. Any ideas why this doesn't work? Is anyone using Eclipse as their IDE for vpython on Mac? Thanks, Aaron Titus |
From: Aaron T. <ti...@ma...> - 2006-05-24 12:32:48
|
I fixed it. I was wrong about the error that I was getting from Eclipse. It said "cannot open display:" without the ":0.0" which meant that my DISPLAY environment variable wasn't being set (unlike in my shell profile in Terminal). Thus, in the Eclipse Run configuration, I clicked the Environment tab and added the DISPLAY=:0.0 environment variable. Now, I can run vpython programs from Eclipse on a Mac, and I am one happy guy. Is anyone else using Eclipse for coding vpython? Aaron On May 23, 2006, at 11:21 PM, Aaron Titus wrote: > I'm trying to more elegantly organize my various programming > projects in java and python. I started using Eclipse a few years > ago but have more recently installed subversion with apache2 > running locally on my laptop. Eclipse works quite nicely with > subversion to manage a repository. > > But the reason I'm emailing the list is that I ran across PyDev > (http://pydev.sourceforge.net/index.html). I just installed it. I > really like it. I have all the advantages of Eclipse with syntax > highlighting, managing of classes, easy navigation, etc. > > However, I'm using a Mac where one must use Fink in order to run > vpython. Thus, I have to run the following command: > > > /sw/bin/python2.3 vpythonfilename > > > from Terminal (and have X11 running) in order to run a vpython > program from the command line. If X11 is not running, I get the error: > > > Gtk-WARNING **: cannot open display: :0.0 > > > Well, running a vpython program from Eclipse gives the same error > EVEN THOUGH X11 IS RUNNING. Any ideas why this doesn't work? Is > anyone using Eclipse as their IDE for vpython on Mac? > > Thanks, > > Aaron Titus > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and > Risk! > Fully trained technicians. The highest number of Red Hat > certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > |
From: Jonathan B. <jbr...@ea...> - 2006-05-24 13:36:22
|
On Wed, 2006-05-24 at 08:32 -0400, Aaron Titus wrote: > I fixed it. I was wrong about the error that I was getting from > Eclipse. It said "cannot open display:" without the ":0.0" which > meant that my DISPLAY environment variable wasn't being set (unlike > in my shell profile in Terminal). > > Thus, in the Eclipse Run configuration, I clicked the Environment tab > and added the DISPLAY=:0.0 environment variable. > > Now, I can run vpython programs from Eclipse on a Mac, and I am one > happy guy. > > Is anyone else using Eclipse for coding vpython? Not so much for client programs. However, the .project and .cdtproject files in VPython CVS are a dead giveaway of what I'm using Eclipse for ;) -Jonathan > Aaron > > > On May 23, 2006, at 11:21 PM, Aaron Titus wrote: > > > I'm trying to more elegantly organize my various programming > > projects in java and python. I started using Eclipse a few years > > ago but have more recently installed subversion with apache2 > > running locally on my laptop. Eclipse works quite nicely with > > subversion to manage a repository. > > > > But the reason I'm emailing the list is that I ran across PyDev > > (http://pydev.sourceforge.net/index.html). I just installed it. I > > really like it. I have all the advantages of Eclipse with syntax > > highlighting, managing of classes, easy navigation, etc. > > > > However, I'm using a Mac where one must use Fink in order to run > > vpython. Thus, I have to run the following command: > > > > > > /sw/bin/python2.3 vpythonfilename > > > > > > from Terminal (and have X11 running) in order to run a vpython > > program from the command line. If X11 is not running, I get the error: > > > > > > Gtk-WARNING **: cannot open display: :0.0 > > > > > > Well, running a vpython program from Eclipse gives the same error > > EVEN THOUGH X11 IS RUNNING. Any ideas why this doesn't work? Is > > anyone using Eclipse as their IDE for vpython on Mac? > > > > Thanks, > > > > Aaron Titus > > > > > > > > ------------------------------------------------------- > > All the advantages of Linux Managed Hosting--Without the Cost and > > Risk! > > Fully trained technicians. The highest number of Red Hat > > certifications in > > the hosting industry. Fanatical Support. Click to learn more > > http://sel.as-us.falkag.net/sel? > > cmd=lnk&kid=107521&bid=248729&dat=121642 > > _______________________________________________ > > Visualpython-users mailing list > > Vis...@li... > > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |