views:

50

answers:

1

So I just installed SubnetTree (http://www.icir.org/robin/pysubnettree/) and if I open the Python interactive interpreter I can successfully import it without any error messages. I use it in one of my programs and can successfully run it without a hitch. However, Eclipse marks the import as an error, and this is a problem as I use Eclipse for debugging. I have gone to preferences and have restored the Python interpreter I am using to no avail. I was able to merely restore the Python interpreter exit, and reopen it on my other machine(OS X 10.5, I am now using OS X 10.6) and it identified SubnetTree just fine. Any idea of how I should go about this? Thanks in advance.

+2  A: 

Hi Stunner, if you already tried "refreshing" your interpreter's PYTHONPATH (in Eclipse's Pydev Python interpreter configuration) and it didn't work you could try deleting the interpreter from the list and creating it again. When doing this, you should get all your modules loaded correctly, even the missing new modules.

Federico Cáceres
Awesome! That did it. For anyone else who is wondering... I had to remove the interpreter listed there, then hit "Auto Config" and it opened a box with all of the system python libraries selected, I had to select /Library/Python/2.6/site-packages as well(was unselected by default) and after that it recognized the module. Thanks for the help!
Stunner