[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] TypeError in Python... why?

From: Davide Anastasia
Subject: [Discuss-gnuradio] TypeError in Python... why?
Date: Wed, 30 May 2007 11:12:01 +0200

Hi List,
I'm writing a new module starting from the source code of
unpacked_to_packed_ss. Instead of taking the LSB from of the source, I
need to take the MSB. So, I change few lines, use the environment
provided by "how to write a new module", put in my source code, change
Makefile.am and write a new python test script (which is attached with
this mail).
My code compile clean, but the python test fails with a strange a (for
me) incomprehensible error:

ERROR: test_001 (__main__.qa_u_msb2p)
Traceback (most recent call last):
  File "./qa_u_msb2_p.py", line 46, in test_001
    u2p = dspcola.unpacked_msb_to_packed_ss (1, gr.GR_MSB_FIRST)
  File "/home/rocker/Tesi/My/SVN/dspcola/src/lib/dspcola.py", line 137,
in unpacked_msb_to_packed_ss
    return _dspcola.unpacked_msb_to_packed_ss(*args)
TypeError: in method 'unpacked_msb_to_packed_ss', argument 2 of type

Attached there is my python test and the Makefile.am I put in src/lib/
of the source tree.
Davide Anastasia

web: http://www.davideanastasia.com/
email: address@hidden

Attachment: qa_u_msb2_p.py
Description: Text Data

Attachment: Makefile.am
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]