Best Python IDE … found :)

I’ve looked around at a few IDE’s for Python and I think I’ve settled on one.  Initially I considered Eclipse but I’ve now decided that NetBeans 6.5.1 is a much better solution for Linux (or Windows) Python development.

Installing it was easy.  I downloaded the C/C++ version of the IDE (since I didn’t plan to do any Java based stuff).  It is just over 20Mb at the NetBeans website.  Note: I did C/C++ then Python but you can simply download the IDE with Python from the Python EA (Easy Access) page.

In Thunar (on the Linpus) right-click on the Netbeans ‘.sh’ file, select properties and then permissions and chose to ‘allow file to run as a program’. Double click on the file to run it and the installation process begins.  Just click ‘Next’ in most cases.

After installing it; use the right-click menu (assuming you have it active) to run the IDE from the development area.  Once started, mine started to upgrade some modules for CVS, and so on (which is okay).  After the obligatory restart of the IDE, I simply used the Plugins menu in Tools to add Python support.  This is a Beta state module.

All is well? Unfortunately not; I tried to create a new project and this hung the IDE part way through creating files.  I tried NetBeans 6.5 Python EA on Windows Vista also and this worked a little better.  However, it wouldn’t pick up the gtk module in the debugger, even though IDLE did.  So still some problems but maybe you will have better luck.

Update: I did a fress install of the Netbeans Python EA after installing Python, GTK, Cairo & GObject and this appears to work in the debugger.

Nevertheless, there is a really useful tutorial on the NetBeans site.

I’ve also stumbled upon this amazing selection of programming tutorials!  In particular using Python development in NetBeans.   Replace ‘import glib’ in these tutorials with ‘import gobject’ throughout these tutorials.

Another alternative is the ActivePython IDE


Bluetooth Working on Linpus & Aspire One A150

After some hunting around I found a useful website for getting things working on the Acer Aspire One that is installed with Linpus Lite Linux.  I got a cheap USB bluetooth dongle which when plugged into the Aspire would simply see the USB device:

$ lsusb
 ID 1131:1004 Integrated System Solution Corp.

What is needed are the appropriate programs and drivers to communicate with the bluetooth dongle and their devices.

So first; I got the required packages.  The easiest way is to use ‘yum’ which required

$ sudo yum install bluez-gnome bluez-hcidump bluez-lib bluez-utils gnome-bluetooth

The second part is slightly harder.  This is because kernel modules are required.  These are small bits of the core operating system that need to exist for bluetooth (or anything that needs to work with hardware).

There are two files required: (see comments below for recent versions of these files)

Download the kernel modules pack bluetooth.tgz (compiled using a vanilla kernel), extract the files and copy them to the folder /lib/modules/

Now download bluetooth2.tgz, extract and copy the drivers to /lib/modules/

Note: Each tgz file expands into its own ‘bluetooth‘ folder so the simplest way to install these files is to copy them into the …/drivers/net and …/kernel/drivers folder (one per location as per the above instructions) and then issue the command tar xvfz <filename>. If you get an error during the copy or extraction, make sure you are using sudo.

$ cd /lib/modules/
$ sudo tar xvfz /home/user/Downloads/bluetooth2.tgz
$ cd net
$ sudo tar xvfz /home/user/Downloads/bluetooth.tgz


$ sudo depmod
$ sudo /etc/init.d/bluetooth start


$ /usr/bin/bluetooth-applet

And I had the Bluetooth icon on the taskbar and I could connect to a phone with the appropriate PassKey, etc. and transfer files.

%d bloggers like this: