Friday, July 15, 2011

Python - lauterbach

it is interesting to notice that with lauterbach you dont get a wrapper for scripting languages.
i am not saying that they will have to :) , but i would assume from a testing standpoint it will be great to have a scripting language interface to the same.

Lauterbach - trace32 is a really powerful tool . i am going to start using python scrpiting language with latuerbach. fortunately they provide a trace32 api that i can use.

we will have to see how things go by :) . atleast the idea for now when i am writing this blog is , you dont have python wrapper for lauterbach and i am trying to findout what we can do about it.

Wednesday, July 13, 2011

pybluez - bluetooth

For all who have been using python or who wanted to use python,
we can access RFCOMM profile via pybluez.
pybluez is the software supplied at code.google.com is a python wraper for bluetooth testing.
for now all the profiles are not supported ( read bluetooth related books/ postings for you to understand what profiles mean) . it supports only RFCOMM and L2CAP.
you can download it from the below.

http://code.google.com/p/pybluez

Monday, July 11, 2011

Python: AttributeError: 'module' object has no attribute

if you are getting the AttributeError: ' Module' object has no attribute do the following.

1. don't give the same name to your python script as that of library that you have imported.
python will import your script file instead of the orginal librarby file.
2. check the import file definition (if you are using a ide, just right click and say go to definiton )
to see if it has the attribute that you are trying to use . in simple , just do a ctrl-f and search the parameter that you are looking for.

Saturday, July 9, 2011

Active state python

There are quite a few sites where python downloads are available.
one such is activestate python. you can download the different versions/releases of python . be sure you are downloading the version that suits your operating system and needs.


brief note : active state supplies executable for lot of scripting languages. the above url is for python.

Also, if you are first time user of python , i strongly recommend using one of the editors for python. i have used activate state python komodo ide ( trial version) . looks powerful and simple.
it supports a lot of scripting languages too. i have also used editplus , pythonwin, eclipse too.
i don't have a preference , it just helps you find flaws with your syntax and easy to check the definitions for the files that you are importing .


if you want more information about other ide just drop me a email. i will reply.

Note : i have windows7 (64 bit) and python64 bit did not go well with it , so just download 32 bit python , it works for both 64 bit and 32 bit operating systems as well.



Active state python

There are quite a few sites where python downloads available.
one such is activestate python. you can download the different versions of python available for download. be sure you are downloading the version that suits your operating system and needs.


brief note : active state supplies executable for lot of scripting languages. the above url is for python.

Also, if you are first time user of python , i strongly recommend using one of the editors for python. i have used activate state python komodo ide ( trial version) . looks powerful and simple.
it supports a lot of scripting languages too. i have also used editplus , pythonwin, eclipse too.
i don't have a preference , it just helps you find flaws with your syntax and easy to check the definitions for the files that you are importing .


if you want more information about other ide just drop me a email. i will reply.

Note : i have windows7 (64 bit) and python64 bit did not go well with it , so just download 32 bit python , it works for both 64 bit and 32 bit operating systems as well.



Friday, July 8, 2011

Download Python

you can download python from the below site

www.python.org/getit

Make sure you choose the right version depending on what operating system that you will be supporting