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

**URL:** <https://www.ruby-forum.com/t/boost-serialization-archive-attribute-error-module-object-has-no-attribute-blockname/234433>\
**Category:** GNU Radio\
**Created:** [March 4, 2015, 3:34pm UTC](https://www.ruby-forum.com/t/boost-serialization-archive-attribute-error-module-object-has-no-attribute-blockname/234433 "2015-03-04T15:34:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [March 4, 2015, 3:34pm UTC](https://www.ruby-forum.com/t/boost-serialization-archive-attribute-error-module-object-has-no-attribute-blockname/234433/1 "2015-03-04T15:34:17Z")

</div>

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](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   
#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

> **[Want to know how to live #LikeABosch?](https://www.bosch.com/)**
>
> Moving stories and inspiring interviews. Experience the meaning of "invented for life" by Bosch completely new. Visit our international website.

Tel. +49(711)811-8809  
Fax +49(711)811-1052  
Mobile +49(172)5630639  
removed\_email\_address@domain.invalid

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

---

<div class="post-metadata">

**Author:** ![Ludwig\_Stephan\_SCR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e36b37/32.png) [@Ludwig\_Stephan\_SCR](https://www.ruby-forum.com/u/Ludwig_Stephan_SCR)\
**Post date:** [March 4, 2015, 3:52pm UTC](https://www.ruby-forum.com/t/boost-serialization-archive-attribute-error-module-object-has-no-attribute-blockname/234433/2 "2015-03-04T15:52:15Z")

</div>

Sorry, I did not google well enough ☹ . I found this thread here:  
[https://lists.nongnu.org/archive/html/discuss-gnuradio/2015-02/msg00122.html](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

> **[Want to know how to live #LikeABosch?](https://www.bosch.com/)**
>
> Moving stories and inspiring interviews. Experience the meaning of "invented for life" by Bosch completely new. Visit our international website.

Tel. +49(711)811-8809  
Fax +49(711)811-1052  
Mobile +49(172)5630639  
removed\_email\_address@domain.invalid

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](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: removed\_email\_address@domain.invalid  
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](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   
#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

> **[Want to know how to live #LikeABosch?](https://www.bosch.com/)**
>
> Moving stories and inspiring interviews. Experience the meaning of "invented for life" by Bosch completely new. Visit our international website.

Tel. +49(711)811-8809  
Fax +49(711)811-1052  
Mobile +49(172)5630639  
removed\_email\_address@domain.invalid

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  
removed\_email\_address@domain.invalid  
[https://lists.gnu.org/mailman/listinfo/discuss-gnuradio](https://lists.gnu.org/mailman/listinfo/discuss-gnuradio)
