Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Python Modules(How to get python modules to work with eclipse?)
Eclipse Python Modules [message #648668] Thu, 13 January 2011 16:47 Go to next message
Q Smith is currently offline Q Smith
Messages: 3
Registered: January 2011
Junior Member
I have managed to get various python modules (such as networkx and matplot) to work with the Python IDLE and iPython that I have on this computer also.

However, I figured that I would streamline the process by installing Eclipse and getting the Python plugin and then I can just run python right from the Eclipse window. However, it doesn't recognize the modules such as networkx (I configured it using autodetect and I tried it a few times and selected the normally non-selected options as well, but nothing works).

This problem defeats the purpose of getting Eclipse because I already have a very good editor that does all of the same things as Eclipse except for it can't run python itself, so I was wondering if anyone could help me with this?

Thanks.

#########################
## [[EDIT1]] ##
#########################

Well, I managed to get the modules to work in Eclipse, but now the visualizer won't actually display anything. It starts the visualizer, but nothing displays.

Any help with this new problem would be appreciated.

Thanks

##########################
## [[EDIT2]] ##
##########################

Again, an edit. I have found that the visualizer is actually working, but Eclipse terminates the console once the program is done, which is before I am able to look at the visualizations.

So now my question is:

Is there any way to stop Eclipse from terminating the file running in the console once it has finished running?

[Updated on: Thu, 13 January 2011 17:48]

Report message to a moderator

Re: Eclipse Python Modules [message #648680 is a reply to message #648668] Thu, 13 January 2011 19:22 Go to previous messageGo to next message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.01.13 14:47, q.smith47@gmail.com wrote:
> I have managed to get various python modules (such as networkx and
> matplot) to work with the Python IDLE and iPython that I have on this
> computer also.
> However, I figured that I would streamline the process by installing
> Eclipse and getting the Python plugin and then I can just run python
> right from the Eclipse window. However, it doesn't recognize the modules
> such as networkx (I configured it using autodetect and I tried it a few
> times and selected the normally non-selected options as well, but
> nothing works).
>
> This problem defeats the purpose of getting Eclipse because I already
> have a very good editor that does all of the same things as Eclipse
> except for it can't run python itself, so I was wondering if anyone
> could help me with this?
>
> Thanks.

There is no Eclipse project for Python specifically. Check out the web
for Python development and Eclipse. I find:

http://pydev.org/
http://wiki.python.org/moin/IntegratedDevelopmentEnvironment s
http://www.rose-hulman.edu/class/csse/resources/Eclipse/ecli pse-python-configuration.htm
(old)

But, of all, my bet would be Lars Vogella's doubtless excellent tutorial
on Python Development with PyDev and Eclipse:
http://www.vogella.de/articles/Python/article.html
Re: Eclipse Python Modules [message #648694 is a reply to message #648668] Thu, 13 January 2011 22:43 Go to previous messageGo to next message
Q Smith is currently offline Q Smith
Messages: 3
Registered: January 2011
Junior Member
Thanks, but as I stated, I managed to solve that problem (the problem was that I was using the incorrect python. I was using /usr/bin/python2.6 when I should have been using /usr/local/bin/python2.6)

Now I have the problem (well, not really problem) of the console terminating the file that I am running. I would like to stop it from doing that as I want to look at the visualization and check if it is correct.

Any help with this problem would be appreciated.
Re: Eclipse Python Modules [message #648839 is a reply to message #648694] Fri, 14 January 2011 12:04 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3052
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 13-Jan-11 20:43, Q Smith wrote:
> Thanks, but as I stated, I managed to solve that problem (the problem
> was that I was using the incorrect python. I was using
> /usr/bin/python2.6 when I should have been using /usr/local/bin/python2.6)
>
> Now I have the problem (well, not really problem) of the console
> terminating the file that I am running. I would like to stop it from
> doing that as I want to look at the visualization and check if it is
> correct.
>
> Any help with this problem would be appreciated.

Again, this list won't help you with Python questions. There isn't an
Eclipse-specific forum as far as I know. In your shoes, I'd definitively
try stackOverflow and carefully set a Python and Eclipse tag on my
question. I'd be surprised if you didn't get a response there.

Best of luck,

Russ
Previous Topic:How to get the proper relative position for Markers?
Next Topic:need code sample to send sms from PC using Java
Goto Forum:
  


Current Time: Thu Apr 17 14:36:14 EDT 2014

Powered by FUDForum. Page generated in 0.09493 seconds