discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] boost::serialization/archive -> Attribute Error: 'mod


From: Ludwig Stephan (CR/AEH4)
Subject: [Discuss-gnuradio] boost::serialization/archive -> Attribute Error: 'module' object has no attribute '<blockname>'
Date: Wed, 4 Mar 2015 14:32:28 +0000

Hello all,

I have some problems in getting my OOT module running with boost::serialization 
(have never used this part of boost before). The library is installed on a 
recent Kubuntu 14.10 with pybombs GNU radio. Once trying to run a GRC model 
with a component of this module, I get the error 

Attribute Error: 'module' object has no attribute '<blockname>'. 

But let's start from the beginning:
I am trying to use the serialization feature of boost 
(http://www.boost.org/doc/libs/1_57_0/libs/serialization/doc/index.html) in 
order to be able to make a BLOB out of my transmit data (some integer values 
and a std::vector<gr_complex>) to be then passed to gr-ieee802-11 blocks.

I have hunted the problem down to a minimal example block, which does nothing 
but has the following two lines in the constructor:
std::stringstream  serialized_strm;
boost::archive::binary_oarchive oa(serialized_strm);

All run smoothly (i.e. block does nothing) without the latter line, but once I 
add boost::archive::binary_oarchive [..], I do get the described error. If I 
import the module into plain python and try to construct the block - same error 
message.

To the standard header I added:
#include <sstream>
#include <boost/archive/binary_oarchive.hpp>

I have not changed CMakeLists.txt, because boost is already linked by GNU radio 
(correct?) and such the added part should be.

Could you give any hints, how to further hunt down my problem? Any ideas for a 
solution? Do I have to edit some CMakeLists.txt in order to add the 
functionality? Where do I have to?

Mit freundlichen Grüßen / Best regards

 Stephan Ludwig

Robert Bosch GmbH
Corporate Sector Research & Advance Engineering, Communication Technology 
(CR/AEH4) 
Renningen
70465 Stuttgart
GERMANY
www.bosch.com

Tel. +49(711)811-8809
Fax +49(711)811-1052
Mobile +49(172)5630639
address@hidden

Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart, HRB 
14000; 
Chairman of the Supervisory Board: Franz Fehrenbach; Managing Directors: Dr. 
Volkmar Denner, 
Dr. Stefan Asenkerschbaumer, Dr. Rolf Bulander, Dr. Stefan Hartung, Dr. Dirk 
Hoheisel, Christoph Kübel, 
Uwe Raschke, Wolf-Henning Scheider, Dr. Werner Struth, Peter Tyroller





reply via email to

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