X

Geertjan's Blog

  • March 8, 2013

Python in NetBeans IDE 7.3

Geertjan Wielenga
Product Manager

Via this update center (which you can register in Tools | Plugins | Settings), you'll find you have the Python plugin available in NetBeans IDE 7.3:

http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

Lots of features are provided (http://wiki.netbeans.org/Python) but I especially like the ability of opening existing Python projects, such as the open source Cheetah templating engine, which I succeeded to build, as can be seen here:

Join the discussion

Comments ( 29 )
  • desshi Saturday, March 9, 2013

    It´s positive. :D


  • guest Sunday, March 10, 2013

    Is there django 1.5 support?

    I switched some time ago from netbeans to aptana (eclipse+pydev)

    because of the missing python support in netbeans.


  • Mark Heckler Monday, March 11, 2013

    Hi Geertjan,

    This is great to know for those occasional forays into Python, will definitely pass it along. Thanks for sharing it!

    All the best,

    Mark

    (@MkHeck)


  • guest Monday, March 11, 2013

    nice! of course many IDE features are not supported. Go to declaration and autocomplete do not work for foo.runFoo(). Still not bad

    class Foo:

    def runFoo(self):

    print "runniing"

    if __name__ == "__main__":

    foo = Foo()

    foo.runFoo()


  • guest Tuesday, March 12, 2013

    unfortunately broken go to declaration and autocomplete is a dealbreaker for me.


  • guest Wednesday, March 13, 2013

    agree, without autocomplete and go to declaration it is not usable. It used to work some years ago :(


  • guest Saturday, March 16, 2013

    Thanks for your great work. Much appreciated.


  • Carlos Correia Friday, March 22, 2013

    Thanks for the post.

    I was about to drop Netbeans completely (after using it since version 3), due to the lack of Python support (half of my projects are Java based and the other half is Python).


  • guest Tuesday, May 7, 2013

    I cannot locate the python plugin for 7.3. I can see all the other ones under tools > plugins > available - but nothing.

    Help!


  • Geertjan Tuesday, May 7, 2013

    Did you really not read this blog entry where the very first link is this one:

    http://wiki.netbeans.org/Python


  • guest Wednesday, May 22, 2013
  • guest Wednesday, May 22, 2013
  • guest Wednesday, May 22, 2013

    you have to add the repository link in your tools->plugins and hitting add button.


  • ToApolytoXaos Friday, May 31, 2013

    After I have installed the Python plugin, my IDE switched to the latest development edition and when I open a Python project, it would throw this error message:

    java.lang.UnsupportedOperationException: This IndexReader cannot make any changes to the index (it was opened with readOnly = true)

    at org.apache.lucene.index.ReadOnlySegmentReader.noWrite(ReadOnlySegmentReader.java:23)

    at org.apache.lucene.index.ReadOnlyDirectoryReader.acquireWriteLock(ReadOnlyDirectoryReader.java:43)

    at org.apache.lucene.index.IndexReader.deleteDocument(IndexReader.java:1339)

    at org.netbeans.modules.gsfret.source.usages.LuceneIndex.batchStore(LuceneIndex.java:512)

    at org.netbeans.modules.gsfret.source.usages.SourceAnalyser.batchStore(SourceAnalyser.java:171)

    at org.netbeans.modules.gsfret.source.usages.CachingIndexer$LanguageIndex.flush(CachingIndexer.java:159)

    at org.netbeans.modules.gsfret.source.usages.CachingIndexer.flush(CachingIndexer.java:112)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.updateFolder(RepositoryUpdater.java:1414)

    [catch] at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.scanRoots(RepositoryUpdater.java:1132)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.access$1900(RepositoryUpdater.java:654)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:792)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:679)

    at org.netbeans.modules.gsfret.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:110)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:679)

    at org.netbeans.modules.gsfret.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:654)

    at org.netbeans.napi.gsfret.source.Source$CompilationJob.run(Source.java:1358)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

    at java.util.concurrent.FutureTask.run(FutureTask.java:166)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

    at java.lang.Thread.run(Thread.java:722)

    Is there anything we could do about it?

    Thanks a lot for your hard work.


  • guest Wednesday, July 10, 2013

    The link to updates.xml.gz is dead.


  • guest Saturday, July 13, 2013

    I took off the .gz and it worked for me.


  • gvanto Monday, July 22, 2013

    Thanks, have updated my plugin repos, and got Python syntax colouring working now ...

    Very useful article!


  • gvanto Monday, July 22, 2013

    Thanks, this worked just fine for me. The syntax coloring is great.


  • gvanto Monday, July 22, 2013

    Thanks, this worked just fine for me. The syntax coloring is great.


  • yajo Friday, August 2, 2013

    I get the error "Networking problem in http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/extra/org-netbeans-modules-python-kit.nbm" when trying to install the packages "Python" and "Sample Python/Jython Projects". What do I do?


  • guest Tuesday, September 3, 2013

    Hi yayo. I had the same problem. However I kept on hitting the 'retry again' button, and it eventually succeeded. There must be a network problem to that server.


  • bakira Thursday, September 12, 2013

    Hi there !

    After installing this plugin I'm getting this error:

    "Warning - could not install some modules: Common Scripting Language API - No module providing the capability org.netbeans.modules.gsf could be found. Python Editor - The module named org.netbeans.modules.gsf/2 was needed and not found. 5 further modules could not be installed due to the above problems."

    with to option : A) exit and b) disable those plugin and continue

    the b option launch my IDE but without the python plugin/support...

    Someone's help ?


  • Geertjan Thursday, September 12, 2013

    Really impossible to help. You've provided no clues at all to reproduce the problem, e.g., which operating system, which version of NetBeans IDE, which JDK, etc.


  • bakira Friday, September 13, 2013

    My bad :s

    OS : Ubuntu 12.04 kernel 3.2.0.53

    Netbeans : 7.4 beta (turned on dev mode)

    Jdk : openjdk-7-jdk (version 7u25-2.3.10-1ubuntu0.12.04.2)


  • Geertjan Friday, September 13, 2013

    Where does it say that the Python support works with NetBeans 7.4 beta? Nowhere, right?


  • bakira Friday, September 13, 2013

    My bad again,

    thought that retro compatibility was on the middle of software production's life cycle.

    It's finally working on netbeans 7.3.

    Thanks for your help and amability


  • guest Thursday, November 21, 2013

    > Thanks for your help and amability

    Geertjan's hardly been amiable. Curt and patronizing would be a better description. Good work, but could be a little more sympathetic to the clueless.


  • Geertjan Thursday, November 21, 2013

    I think the "amiability" was meant ironically...


  • guest Wednesday, December 11, 2013

    lacks of good autocomplete in 7.4 :-/ , well at least doesn't makes it explode


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.