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.

Bug 150592 - [65cat] org.netbeans.modules.python.api.PythonException: Could not discover Python properties
Summary: [65cat] org.netbeans.modules.python.api.PythonException: Could not discover P...
Status: RESOLVED FIXED
Alias: None
Product: python
Classification: Unclassified
Component: Projects (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: Lou Dasaro
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 22:52 UTC by sunbiz
Modified: 2015-11-17 04:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 129895


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2008-10-17 22:52:12 UTC
Build: NetBeans IDE 6.5 RC1 (Build 20081016235259)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows Vista, 6.0, x86
User comments: Added new Python platform and got this exception
STACKTRACE: (first 10 lines)
org.netbeans.modules.python.api.PythonException: Could not discover Python properties
        at org.netbeans.modules.python.api.PythonPlatformManager.findPlatformProperties(PythonPlatformManager.java:184)
        at org.netbeans.modules.python.api.PythonPlatformManager.findBindeledJython(PythonPlatformManager.java:209)
        at org.netbeans.modules.python.api.PythonPlatformManager.<init>(PythonPlatformManager.java:50)
        at org.netbeans.modules.python.api.PythonPlatformManager.getInstance(PythonPlatformManager.java:64)
        at org.netbeans.modules.python.project.ui.Utils$PlatformModel.<init>(Utils.java:179)
        at org.netbeans.modules.python.project.ui.Utils.createPlatformModel(Utils.java:93)
        at org.netbeans.modules.python.project.templates.PanelOptionsVisual.<init>(PanelOptionsVisual.java:83)
        at org.netbeans.modules.python.project.templates.PanelConfigureProjectVisual.<init>
(PanelConfigureProjectVisual.java:88)
        at org.netbeans.modules.python.project.templates.PanelConfigureProject.getComponent
(PanelConfigureProject.java:35)
        at org.netbeans.modules.python.project.templates.PanelConfigureProject.readSettings
(PanelConfigureProject.java:76)
Comment 1 ardavis26 2008-10-18 13:16:08 UTC
what python command did you give it?
Comment 2 sunbiz 2008-10-19 07:18:27 UTC
Did not give any Python command. In the Python platforms dialog, pressed the New button and selected python.exe from 
Python26 installation folder... got this exception as soon as added the new platform
Comment 3 Jenselme 2015-10-02 17:32:11 UTC
I tried to replicate on linux. No success. I removed an execption that was thrown if the user tries to use a non existant file (eg /usr/bin/pyton instead of /usr/bin/python).

I think that some must try to replicate this on Windows to see if this is platform dependent or not.


changeset:   18336:b4fee592ebe3
bookmark:    main
tag:         tip
user:        Julien Enselme <jenselme@netbeans.org>
date:        Fri Oct 02 19:29:11 2015 +0200
summary:     Don't throw an exception if the user tries to use an inexistant file as a python executable
Comment 4 Lou Dasaro 2015-11-17 04:39:03 UTC
Between improved exception handling and better error messages, the bug is fixed!

Changeset: c3249b3bfed8
Author:    Lou Dasaro <mr_lou_d@netbeans.org>
Date:      2015-11-08 18:11
Message:   Added an informational / warning message when an invalid Python platform is encountered.

Changeset: 8fec7305fe04
Author:    Lou Dasaro <mr_lou_d@netbeans.org>
Date:      2015-11-10 13:14
Message:   Added guard to prevent user message from being displayed while autoDetect is running. Improved logged warning.