views:

120

answers:

2

I recently downloaded and installed feedparser with python, I tried to run it but Netbeans shouts on import: ImportError: No module named feedparser

restarted the Netbeans, still no go.

A: 

You might need to set the PYTHONPATH environment variable to include the install path of feedparser. Just a guess, but this has fixed this issue in the past for me.

Matt Boehm
I read the linked segment, didn't understand what I had to do (using linux btw)
Asaf
A: 

Netbeans by default uses Jython,
if you go to Tools>Python Platforms and see that Jython is the default.
Switch it to Python and so the installed libraries would work.
If you already have a project, you should right click on it,
choose Python and on the platform choose Python instead of Jython.

Asaf