Netbeans does not allow Python 2.6 as the default platform (forcing Jython2.5)

I am trying to run python Netbeans to run with the default python platform installed on Python 2.6.1 (my system python), so in Netbeans I do the following:

Tools -> Python Platform
Set Python 2.6.1 to "default"

However, this is impossible to do. Whenever I restart Netbeans, it returns to Jython 2.5 again.

In addition, I can obviously auto-detect and find Python 2.6.1, but whenever I do this "Default", Netbeans still works with Jython 2.5 in this session. (I know this because when I import sys and do sys.path, it only has Jython library libraries). And when I remove Jython, I get an error:

"The selected project broke the python platform: default => binding to the existing python platform in the project properties."

I tried this 6.5 and 6.7. And I still get the same behavior. Also, I know that my system python is working because I can use the python interpreter.

+3
source share
2 answers

Looks like http://netbeans.org/bugzilla/show_bug.cgi?id=180693 , which provides a clumsy and unstable workaround.

This requires serious complaints about netbean imo error tracking.

+1
source

, Netbeans - ( ) .

Python 2.6.2/Netbeans 6.5.1

NetBeans IDE 6.5.1 (Build 200903060201)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Python : "Jython 2.5b0 +"

, Python: "Python 2.6.2": , :

import sys
print(sys.path)

:

...'d:\\python26\\DLLs', 'd:\\python26\\lib'...

, - Python - dunno?

0

Source: https://habr.com/ru/post/1731400/


All Articles