This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
With the latest build 20081217-381, create the PLYDemo sample project, right click and select Run. The following exception popped up. java.lang.NullPointerException at org.netbeans.modules.python.project.ui.actions.RunCommand.invokeAction(RunCommand.java:48) at org.netbeans.modules.python.project.PythonActionProvider$1.run(PythonActionProvider.java:70) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1005)
Workaround: - select tokenizer.py for Main Module from the project Properties Then, the project can be run but the following error occurred using the default python platform runtime from the sample project. Traceback (most recent call last): File "C:\Users\peter\Documents\NetBeansProjects\PLYDemo-PythonSample3\src\tokenizer.py", line 50, in <module> import ply.lex as lex ImportError: No module named ply.lex
In order to run this project, an external module "PLY" should be installed in the python installation. PLY can be downloaded from http://www.dabeaz.com/ply/ The original problem in this issue is still valid that the default Main Module should be changed to tokenizer.py to work.
*** Issue 155790 has been marked as a duplicate of this issue. ***
Default run file has been changed to tokenizer.py but user must still set python version to Python instance not default jython. This could be added to the readme. System: Build 528 Product Version: NetBeans IDE Dev (Build 20090106142255) Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133 System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
Fixed in http://hg.netbeans.org/main/rev/5cbf471f0c8d.
verified in build 20090108