Python in NetBeans IDE 7.3

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:

Comments:

It´s positive. :D

Posted by desshi on March 09, 2013 at 01:58 AM PST #

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.

Posted by guest on March 10, 2013 at 01:29 PM PDT #

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)

Posted by Mark Heckler on March 11, 2013 at 07:23 AM PDT #

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()

Posted by guest on March 11, 2013 at 02:30 PM PDT #

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

Posted by guest on March 11, 2013 at 06:08 PM PDT #

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

Posted by guest on March 13, 2013 at 01:06 AM PDT #

Thanks for your great work. Much appreciated.

Posted by guest on March 15, 2013 at 07:40 PM PDT #

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).

Posted by Carlos Correia on March 22, 2013 at 04:36 PM PDT #

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

Help!

Posted by guest on May 07, 2013 at 02:00 PM PDT #

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

http://wiki.netbeans.org/Python

Posted by Geertjan on May 07, 2013 at 02:20 PM PDT #

you have to add the http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz link in your tools->plugins add button.

Posted by guest on May 22, 2013 at 04:34 AM PDT #

you have to add the http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz link in your tools->plugins add button.

Posted by guest on May 22, 2013 at 04:35 AM PDT #

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

Posted by guest on May 22, 2013 at 04:36 AM PDT #

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.

Posted by ToApolytoXaos on May 30, 2013 at 11:35 PM PDT #

The link to updates.xml.gz is dead.

Posted by guest on July 10, 2013 at 02:01 AM PDT #

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

Posted by guest on July 12, 2013 at 10:15 PM PDT #

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

Very useful article!

Posted by gvanto on July 22, 2013 at 05:21 AM PDT #

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

Posted by gvanto on July 22, 2013 at 05:22 AM PDT #

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

Posted by gvanto on July 22, 2013 at 05:24 AM PDT #

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?

Posted by yajo on August 02, 2013 at 04:55 AM PDT #

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.

Posted by guest on September 03, 2013 at 07:57 AM PDT #

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 ?

Posted by bakira on September 12, 2013 at 02:37 AM PDT #

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.

Posted by Geertjan on September 12, 2013 at 06:57 AM PDT #

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)

Posted by bakira on September 13, 2013 at 03:14 AM PDT #

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

Posted by Geertjan on September 13, 2013 at 03:46 AM PDT #

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

Posted by bakira on September 13, 2013 at 06:24 AM PDT #

> 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.

Posted by guest on November 21, 2013 at 11:36 AM PST #

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

Posted by Geertjan on November 21, 2013 at 12:05 PM PST #

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

Posted by guest on December 11, 2013 at 06:41 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today