Boost::serialization/archive -> Attribute Error: 'module' object has no attribute '<blockname>'

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 ‘’.

But let’s start from the beginning:
I am trying to use the serialization feature of boost
(Serialization)
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
#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 Gren / Best regards

Stephan Ludwig

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

Tel. +49(711)811-8809
Fax +49(711)811-1052
Mobile +49(172)5630639
[email protected]

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 Kbel,
Uwe Raschke, Wolf-Henning Scheider, Dr. Werner Struth, Peter Tyroller

Sorry, I did not google well enough :frowning: . I found this thread here:
https://lists.nongnu.org/archive/html/discuss-gnuradio/2015-02/msg00122.html

and ldd libgnuradio-.so does not show libboost-serialization,
so I have to add the library as written by Tom in above’s thread.

Sorry for bothering you.

Best regards

Stephan Ludwig

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

Tel. +49(711)811-8809
Fax +49(711)811-1052
Mobile +49(172)5630639
[email protected]

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 Kbel,
Uwe Raschke, Wolf-Henning Scheider, Dr. Werner Struth, Peter Tyroller

-----Ursprngliche Nachricht-----
Von: discuss-gnuradio-bounces+stephan.ludwig2=removed_email_address@domain.invalid
[mailto:discuss-gnuradio-bounces+stephan.ludwig2=removed_email_address@domain.invalid]
Im Auftrag von Ludwig Stephan (CR/AEH4)
Gesendet: Mittwoch, 4. Mrz 2015 15:32
An: [email protected]
Betreff: [Discuss-gnuradio] boost::serialization/archive → Attribute
Error: ‘module’ object has no attribute ‘’

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 ‘’.

But let’s start from the beginning:
I am trying to use the serialization feature of boost
(Serialization)
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
#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 Gren / Best regards

Stephan Ludwig

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

Tel. +49(711)811-8809
Fax +49(711)811-1052
Mobile +49(172)5630639
[email protected]

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 Kbel,
Uwe Raschke, Wolf-Henning Scheider, Dr. Werner Struth, Peter Tyroller


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio