Re: [Discuss-gnuradio] Adding public methods(getters() and setters()) to out of tree modules in GNURadio

2016-08-02 Thread Johnathan Corgan
You are doing the right things.  However, there is a long standing bug in
our gr_modtool created template that doesn't trigger recompiling the SWIG
wrapper when changing the public .h file(s).  Just do a 'make clean',
'make', and 'sudo make install' again.

-Johnathan

Johnathan Corgan
Corgan Labs - SDR Training and Development Services
http://corganlabs.com

On Tue, Aug 2, 2016 at 1:40 PM, Damindra Bandara  wrote:

> Hi,
>
> I am looking for a way to add public methods to GNURadio OOT modules. I
> modified the _impl.cc and _impl.h files. I also
> added the function signature as a virtual function to
> /include/.h file. I compiled the code(make /make
> install/ldconfig), and I did not get any errors. However, the functions are
> not visible outside. For example, I cannot use the public methods from the
> topblock.py.
>
> If you could give me some guidelines to make public methods in OOT
> modules, I would really appreciate it.
>
> Thank you,
>
> Damindra
>
> --
> Damindra Savithri Bandara,
> Ph.D. in Information Technology (Candidate)
> George Mason University,
> Fairfax,
> Virginia
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Excellent blog about SDR development...

2016-08-02 Thread Tommy Markstein
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Thanks for the link, pretty interesting


- -Tommy, KM4QKF

On 8/2/2016 3:17 PM, Mike Harpe wrote:
> Found this via a Xilinx Facebook posting. I don't know if this
> young man is on this list but if you are I salute you. This is
> impressive. He uses GNU Radio.
> 
> http://electronics.kitchen/misc/freesrp/
> 
> Your notes about the Xilinx tools made this old guy feel much
> better about struggling to learn the tools. The notes about board
> design were also very educational.
> 
> Mike Harpe, N4PLE Sellersburg, IN
> 
> 
> ___ Discuss-gnuradio
> mailing list Discuss-gnuradio@gnu.org 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJXoTpgAAoJEMARzwo+WemUI7AQAITALp6x9ArpEtXbt+kkjLoS
pDRWNKMey4xiap9szOjBnlsJCan6FfJT49EHIPkyfTEsuSuRkT2bbZ+ReXaLIlzP
Moj76yAzVWTgZJzfdrf/a0DvFUp71CCwrQpSPEVpkIVVz5H2bmSYui+Muesj4tCn
lQMSORmvzDuWPHTS4QteXxKC4N6gXNagOKeoKAaecGjSnGgKXCcM0fhM+e5HGwSS
f4UsdyAdSP4r5vm3uTGvO+cSJw3kDBqZ4C4Huv3DgxM6h3boIL6hlZ3HseEVWyPN
yCzeIwQmKo4nBjabzx53FZracV5by3xUg8Sulpd9wsKuUQC6cACHWwwzk4iUCCgj
eBtCU96grdlErsfYlMuZVJUc/zGgluLfJOPw1BaU0SGUHfEGInvbpSosovxf59tm
R/p4EJU9vxOgunQzU/AVezPjrOFL63lpuXCp84fU7XPkjv8QWIQnLND6cVioPoHL
TxbN0kJDAX3PWR4VEaqxJYgubHJepfnnWo9c6WIMn7zHppxpgd0HnsGQ+7bAZB2F
5JM++Sh2uUmI1rBnDP/AJREmbV6RY+DKJ02GGOQyWBm1WRQH+urnKlwRAGEZ7hwi
uNHkQfjgaX+m4yc0d0hupMv/zX9cZF61gSMT9FA9wNXKsmT+NTMa+VX/EEK5s4PN
Iqx4ZcrwPsGqPRc/aAU8
=f2Ay
-END PGP SIGNATURE-

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Adding public methods(getters() and setters()) to out of tree modules in GNURadio

2016-08-02 Thread Damindra Bandara
Hi,

I am looking for a way to add public methods to GNURadio OOT modules. I
modified the _impl.cc and _impl.h files. I also
added the function signature as a virtual function to
/include/.h file. I compiled the code(make /make
install/ldconfig), and I did not get any errors. However, the functions are
not visible outside. For example, I cannot use the public methods from the
topblock.py.

If you could give me some guidelines to make public methods in OOT modules,
I would really appreciate it.

Thank you,

Damindra

-- 
Damindra Savithri Bandara,
Ph.D. in Information Technology (Candidate)
George Mason University,
Fairfax,
Virginia
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Ubuntu/GRC Update

2016-08-02 Thread Marcus Müller
You need to recompile UHD and GNU Radio, or else they will link to the
old boost library that 14.04 brought!


On 02.08.2016 21:11, John B. Wood wrote:
> On 08/02/2016 12:37 PM, Neel Pandeya wrote:
>> Hello John:
>>
>> I'm running Ubuntu 16.04.1 (64-bit) with an E310 right now, and it works
>> fine. I don't think you should have any problems. You could always
>> test it
>> in VirtualBox first.
>>
>> --Neel Pandeya
> OK, I was afraid of this.  After updating from Ubuntu 14.04 LTS 16.04
> LTS and attempting to run GRC 3.7.8 I now get:
>
> libboost_system.so.1.54.0: cannot open shared object
> Cannot import gnuradio
>
> Any tips on resolving this would be greatly appreciated. Sincerely,
>


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Synchronization for BER calculation

2016-08-02 Thread Tech
The manual bitstream alignment as described in:

http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorial_PSK_Demodulation

is fine when the source bits and recovered bits are in the same
flowgraph but I have a situation where I'm reading from a file so the
synchronization is unknown. In the past I was able to seed a LFSR with
a block of recovered bits and (as long as none are in error) each
subsequent bit should be in sync with the source bits.

The other possibility is just to search all possible alignments but
that can be time consuming for lengthy PN sequences.

Anyway, I figured this is probably a solved problem in gnuradio and
somebody might have suggestions?

Thanks

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Cyrille DERORY
Hi,

I removed the source and ran a new build.
Now gnuradio compilation is finished (100%).

However I had to change the file script: "setup_env.sh" because the
environment  variables were not updated and gnuradio-companion couldn't be
launched.
I added a new line at the end of the file:
bash -i

Cyrille

2016-08-02 15:09 GMT+02:00 Stefan Wunsch :

> Hi,
>
> Ok sry, indeed it does solve the problem (thx to Marcus, master of
> solving gnuradio problems!). I tricked myself because I removed gnuradio
> but not libuhd (run pacman -R libuhd), probably you did the same?
>
> Regarding your new problem at 33%: I think this can be solved if you
> remove the source (or the prefix :P) and run a completely new build. Or
> remove it and reinstall it, sth like this.
>
> Greetings
> Stefan
>
> On 08/02/2016 11:02 AM, Cyrille DERORY wrote:
> > Hi,
> >
> > Gnuradio-3.7.10-1 release:
> > https://www.archlinux.org/packages/community/x86_64/gnuradio/ ) was
> > already installed when I used PyBOMBS.
> > I've just uninstalled gnuradio-3.7.10-1 and all dependancies
> > (libuhd-3.9.4-1, libvolk-1.3-1, gnuradio-iqbal-0.37.2-19) and now
> > PyBOMBS stop compiling at 32%.
> > Previously it was at 85%:
> >
> > [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
> > PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> > /etc/pybombs/config.yml
> > PyBOMBS.ConfigManager - DEBUG - New config items: {}
> > PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> > /root/.pybombs/config.yml
> > PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> > 'default_prx'}
> > PyBOMBS.ConfigManager - DEBUG - Template directory:
> > /usr/lib/python3.5/site-packages/pybombs/templates
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> > /etc/pybombs/config.yml
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> > /root/.pybombs/config.yml
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
> > (/home/cderory)
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
> > config dir: /home/cderory/.pybombs
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> > /home/cderory/.pybombs/config.yml
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
> > /home/cderory/src
> > PyBOMBS.Inventory - DEBUG - Trying to load inventory file
> > /home/cderory/.pybombs/inventory.yml...
> > PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
> > /home/cderory/.pybombs/recipes
> > PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> > /home/cderory/.pybombs/config.yml
> > PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> > 'default'}
> > PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
> > ['/home/cderory/.pybombs/recipes',
> > '/home/cderory/.pybombs/recipes/gr-etcetera',
> > '/home/cderory/.pybombs/recipes/gr-recipes',
> > '/root/.pybombs/recipes/gr-etcetera',
> > '/root/.pybombs/recipes/gr-recipes',
> > '/usr/lib/python3.5/site-packages/pybombs/recipes']
> > PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-etcetera':
> > 'git+https://github.com/gnuradio/gr-etcetera.git', 'gr-recipes':
> > 'git+https://github.com/gnuradio/gr-recipes.git'}
> > PyBOMBS - INFO - PyBOMBS Version 2.1.0
> > PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> > /home/cderory/.pybombs/recipes
> > PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> > '/home/cderory/.pybombs/recipes' for recipes...
> > PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
> > PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> > PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> > /home/cderory/.pybombs/recipes/gr-etcetera
> > PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> > '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
> > PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> > PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> > PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> > /home/cderory/.pybombs/recipes/gr-recipes
> > PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> > '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
> > PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> > PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> > PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> > /root/.pybombs/recipes/gr-etcetera
> > PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> > '/root/.pybombs/recipes/gr-etcetera' for recipes...
> > PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> > PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> > PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> > /root/.pybombs/recipes/gr-recipes
> > PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> > '/root/.pybombs/recipes/gr-recipes' for recipes...
> > PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> > 

Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Martin Braun
...or if there's multiple UHDs installed. There seems to be an error in
either gr-uhd or some other GNU Radio CMakery which doesn't apply the
same settings for UHD linkage to lib/ and swig/.

M

On 08/02/2016 01:22 AM, Marcus Müller wrote:
> Hi Stefan, Hi Cyrille,
> 
> I've seen this error before, but only with people that updated their GNU
> Radio source code (git pull), and then ran "make" again; swig sometimes
> stumbles upon this, and it takes a "make clean" to work again.
> 
> Now assuming this is not the case here, can you make sure you don't have
> two conflicting versions of UHD around?
> 
> 
> Best regards,
> 
> Marcus
> 
> 
> On 02.08.2016 09:03, Stefan Wunsch wrote:
>> And btw, it worked some month ago, when I implemented the pacman support
>> in pybombs. So the changes has to be somewhen since then.
>>
>> On 08/01/2016 10:38 PM, Cyrille DERORY wrote:
>>> Hi,
>>>
>>> with PyBOMBS, I'm compiling gnuradio on archlinux:
>>> sudo pybombs -v install gnuradio
>>> and I get errors with uhd_swigPYTHON_wrap.cxx.
>>> (see end of the attached verbose log)
>>>
>>> Any ideas?
>>>
>>> Best regards.
>>>
>>> Cyrille DERORY
>>>
>>>
>>> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /etc/pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {}
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /root/.pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>>> 'default_prx'}
>>> PyBOMBS.ConfigManager - DEBUG - Template directory:
>>> /usr/lib/python3.5/site-packages/pybombs/templates
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /etc/pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /root/.pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
>>> (/home/cderory)
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
>>> config dir: /home/cderory/.pybombs
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /home/cderory/.pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
>>> /home/cderory/src
>>> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
>>> /home/cderory/.pybombs/inventory.yml...
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
>>> /home/cderory/.pybombs/recipes
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /home/cderory/.pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>>> 'default'}
>>> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
>>> ['/home/cderory/.pybombs/recipes',
>>> '/home/cderory/.pybombs/recipes/gr-recipes',
>>> '/home/cderory/.pybombs/recipes/gr-etcetera',
>>> '/root/.pybombs/recipes/gr-recipes',
>>> '/root/.pybombs/recipes/gr-etcetera',
>>> '/usr/lib/python3.5/site-packages/pybombs/recipes']
>>> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-recipes':
>>> 'git+https://github.com/gnuradio/gr-recipes.git', 'gr-etcetera':
>>> 'git+https://github.com/gnuradio/gr-etcetera.git'}
>>> PyBOMBS - INFO - PyBOMBS Version 2.1.0
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes/gr-recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes/gr-etcetera
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /root/.pybombs/recipes/gr-recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/root/.pybombs/recipes/gr-recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /root/.pybombs/recipes/gr-etcetera
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/root/.pybombs/recipes/gr-etcetera' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager 

Re: [Discuss-gnuradio] [USRP-users] pulse generation

2016-08-02 Thread Kevin McQuiggin
Hi Haris:

 

Sounds like a project you are really going to learn a lot from.  Take a look
at the gnuradio tutorials, they will get you going on how to generate pulses
as you require.  

 

Kevin

 

 

From: USRP-users [mailto:usrp-users-boun...@lists.ettus.com] On Behalf Of
Haris Tanveer via USRP-users
Sent: August 2, 2016 11:13 AM
To: discuss-gnuradio@gnu.org; usrp-us...@lists.ettus.com
Subject: [USRP-users] pulse generation

 

hi everyone,

i need help i want to generate pulses of different amplitude and and repeat
them 

im using usrp n-210 kindly suggest me how can i make them if someone can
make me a block i will be very thankful...

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Ubuntu/GRC Update

2016-08-02 Thread John B. Wood

On 08/02/2016 12:37 PM, Neel Pandeya wrote:

Hello John:

I'm running Ubuntu 16.04.1 (64-bit) with an E310 right now, and it works
fine. I don't think you should have any problems. You could always test it
in VirtualBox first.

--Neel Pandeya
OK, I was afraid of this.  After updating from Ubuntu 14.04 LTS 16.04 
LTS and attempting to run GRC 3.7.8 I now get:


libboost_system.so.1.54.0: cannot open shared object
Cannot import gnuradio

Any tips on resolving this would be greatly appreciated. Sincerely,

--
   ____ __   __   John Wood
  /  |\ / /\   /  \ / /\  Code 5520
 / | ||/ / /  / /\__/ /|   / / /  U.S. Naval Research Lab
/ /| |/ / /  / /_/_/ / /  / / /   4555 Overlook Avenue, SW
   / / |   / /  / ___   / /  / / /Washington, DC 20375-5337
  / / /|  / /  / /\_| |\_/  / /_/_(202) 767-2608
 /_/ / |_/ /  /_/ / |_||   /_/\   (202) 767-1191 (FAX)
 \_\/  \_\/   \_\/  \_\|   \_\/   e-mail: john.w...@nrl.navy.mil
WWW: http://www.itd.nrl.navy.mil

...the myth of socialism is far stronger than the reality of capitalism. That 
is because capitalism is not really an ism at all. It is what people do if you 
leave them alone.
Arnold Beichmen, Hoover Institute Fellow


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Ubuntu/GRC Update

2016-08-02 Thread Neel Pandeya
Hello John:

I'm running Ubuntu 16.04.1 (64-bit) with an E310 right now, and it works
fine. I don't think you should have any problems. You could always test it
in VirtualBox first.

--Neel Pandeya



On 2 August 2016 at 09:16, John B. Wood  wrote:

> Hello, all, especially to Ettus product users.  For sometime now I've been
> using Ubuntu 14.04 LTS/GRC 3.7.8 to communicate in network mode with my
> Ettus E310 without issues.  The Ubuntu/GRC versions are a "happy" pairing
> when working with the E310.  The question is if I update to Ubuntu 16.04.1
> LTS and continue to use GRC 3.7.8 will it still work the same way with the
> E310?  If not what are the other alternatives? I should point out that the
> Ubuntu/GRC platform is dedicated to the E310.  Thanks for your time and
> comment.
>
> --
>____ __   __   John Wood
>   /  |\ / /\   /  \ / /\  Code 5520
>  / | ||/ / /  / /\__/ /|   / / /  U.S. Naval Research Lab
> / /| |/ / /  / /_/_/ / /  / / /   4555 Overlook Avenue, SW
>/ / |   / /  / ___   / /  / / /Washington, DC 20375-5337
>   / / /|  / /  / /\_| |\_/  / /_/_(202) 767-2608
>  /_/ / |_/ /  /_/ / |_||   /_/\   (202) 767-1191 (FAX)
>  \_\/  \_\/   \_\/  \_\|   \_\/   e-mail: john.w...@nrl.navy.mil
> WWW: http://www.itd.nrl.navy.mil
>
> ...the myth of socialism is far stronger than the reality of capitalism.
> That is because capitalism is not really an ism at all. It is what people
> do if you leave them alone.
> Arnold Beichmen, Hoover Institute Fellow
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Ubuntu/GRC Update

2016-08-02 Thread Marcus Müller
There should be no functional difference if you continue to use the same
version of UHD.

Best regards,
Marcus

PS: this is the point where I always stress that network mode is
primarily for diagnostic purposes, and we can't guarantee it's going to
be around forever, and its possible sample rates are very limited due to
hardware architecture of the CPU/network interface.

On 08/02/2016 06:16 PM, John B. Wood wrote:
> Hello, all, especially to Ettus product users.  For sometime now I've
> been using Ubuntu 14.04 LTS/GRC 3.7.8 to communicate in network mode
> with my Ettus E310 without issues.  The Ubuntu/GRC versions are a
> "happy" pairing when working with the E310.  The question is if I
> update to Ubuntu 16.04.1 LTS and continue to use GRC 3.7.8 will it
> still work the same way with the E310?  If not what are the other
> alternatives? I should point out that the Ubuntu/GRC platform is
> dedicated to the E310.  Thanks for your time and comment.
>


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Ubuntu/GRC Update

2016-08-02 Thread John B. Wood
Hello, all, especially to Ettus product users.  For sometime now I've 
been using Ubuntu 14.04 LTS/GRC 3.7.8 to communicate in network mode 
with my Ettus E310 without issues.  The Ubuntu/GRC versions are a 
"happy" pairing when working with the E310.  The question is if I update 
to Ubuntu 16.04.1 LTS and continue to use GRC 3.7.8 will it still work 
the same way with the E310?  If not what are the other alternatives? I 
should point out that the Ubuntu/GRC platform is dedicated to the E310.  
Thanks for your time and comment.


--
   ____ __   __   John Wood
  /  |\ / /\   /  \ / /\  Code 5520
 / | ||/ / /  / /\__/ /|   / / /  U.S. Naval Research Lab
/ /| |/ / /  / /_/_/ / /  / / /   4555 Overlook Avenue, SW
   / / |   / /  / ___   / /  / / /Washington, DC 20375-5337
  / / /|  / /  / /\_| |\_/  / /_/_(202) 767-2608
 /_/ / |_/ /  /_/ / |_||   /_/\   (202) 767-1191 (FAX)
 \_\/  \_\/   \_\/  \_\|   \_\/   e-mail: john.w...@nrl.navy.mil
WWW: http://www.itd.nrl.navy.mil

...the myth of socialism is far stronger than the reality of capitalism. That 
is because capitalism is not really an ism at all. It is what people do if you 
leave them alone.
Arnold Beichmen, Hoover Institute Fellow


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Is there any way to export Qt GUI Sink?

2016-08-02 Thread Tom Rondeau
On Fri, Jul 29, 2016 at 12:29 PM, Shilei Tian 
wrote:

> Hello, everyone.
>
> I need the plot of Qt GUI Sink result, but I don’t find any way to export
> it except using system sceenshot, but it is  poor quality. I want to ask is
> there any way to export a vector figure, like *.eps or something else, or
> some data that I can use to plot with Matlab? Thanks!
>
> --
>
> Sincerely yours,
>
> Shilei Tian
>

You can't save directly from the QT GUI Sink. That block was a combination
of a bunch of things and pretty difficult to make any changes to. I think
it should be dropped in a near-term version and have people focus on the
other QT sinks as independent widgets.

>From those other sinks, you can save the graph as a jpg/png file through
the middle-mouse drop down menu. Also in that menu, when you click Stop, it
should print out the samples to the console for what's currently being
displayed.

Tom
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Excellent blog about SDR development...

2016-08-02 Thread Mike Harpe
Found this via a Xilinx Facebook posting. I don't know if this young man is
on this list but if you are I salute you. This is impressive. He uses GNU
Radio.

http://electronics.kitchen/misc/freesrp/

Your notes about the Xilinx tools made this old guy feel much better about
struggling to learn the tools. The notes about board design were also very
educational.

Mike Harpe, N4PLE
Sellersburg, IN
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Stefan Wunsch
Hi,

Ok sry, indeed it does solve the problem (thx to Marcus, master of
solving gnuradio problems!). I tricked myself because I removed gnuradio
but not libuhd (run pacman -R libuhd), probably you did the same?

Regarding your new problem at 33%: I think this can be solved if you
remove the source (or the prefix :P) and run a completely new build. Or
remove it and reinstall it, sth like this.

Greetings
Stefan

On 08/02/2016 11:02 AM, Cyrille DERORY wrote:
> Hi,
> 
> Gnuradio-3.7.10-1 release:
> https://www.archlinux.org/packages/community/x86_64/gnuradio/ ) was
> already installed when I used PyBOMBS.
> I've just uninstalled gnuradio-3.7.10-1 and all dependancies
> (libuhd-3.9.4-1, libvolk-1.3-1, gnuradio-iqbal-0.37.2-19) and now
> PyBOMBS stop compiling at 32%.
> Previously it was at 85%:
> 
> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {}
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default_prx'}
> PyBOMBS.ConfigManager - DEBUG - Template directory:
> /usr/lib/python3.5/site-packages/pybombs/templates
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
> (/home/cderory)
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
> config dir: /home/cderory/.pybombs
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
> /home/cderory/src
> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
> /home/cderory/.pybombs/inventory.yml...
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
> /home/cderory/.pybombs/recipes
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default'}
> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
> ['/home/cderory/.pybombs/recipes',
> '/home/cderory/.pybombs/recipes/gr-etcetera',
> '/home/cderory/.pybombs/recipes/gr-recipes',
> '/root/.pybombs/recipes/gr-etcetera',
> '/root/.pybombs/recipes/gr-recipes',
> '/usr/lib/python3.5/site-packages/pybombs/recipes']
> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-etcetera':
> 'git+https://github.com/gnuradio/gr-etcetera.git', 'gr-recipes':
> 'git+https://github.com/gnuradio/gr-recipes.git'}
> PyBOMBS - INFO - PyBOMBS Version 2.1.0
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /usr/lib/python3.5/site-packages/pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/usr/lib/python3.5/site-packages/pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.install - DEBUG - Initializing command class for command install
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager pip

Re: [Discuss-gnuradio] [USRP-users] NI USRP RIO with Ubuntu/MINT

2016-08-02 Thread Marcus Müller
When you install UHD from our binaries, it's important that you first uninstall 
your Linux distro's UHD and GNU Radio and you _must not_ re-install GNU Radio 
from your distro's package manager but build it from source, otherwise, you 
will get library incompatibilities and segfaults.

But that is a separate issue from uhd_usrp_probe not finding devices. Make sure 
the USRP is connected and powered up _before_ you boot your PC, then verify you 
can see the device via pcie and that the nirio module is loaded [1].

I hope this helps,

Marcus

[1] 
http://files.ettus.com/manual/page_usrp_x3x0.html#x3x0_comm_problems_not_enumerated

Am 2. August 2016 14:38:28 MESZ, schrieb Sanat Kumar Mishra via USRP-users 
:
>Hi Ashish,
>
>> The version of GNU Radio in the apt repos is stable so I'm guessing
>> you may have some ABI compatibility issue between GR subcomponenets.
>> What GR flowgraph is crashing? How have you installed UHD? From
>> apt-get as well or did you build it from source?
>
>I am unable to start the grc. When I type $ gnuradio-companion, I get  
>a message saying segmentation fault. Yes I have installed UHD and I  
>did the Binary installation. I tried uninstalling the gnuradio and  
>reinstalling again but that doesn't seem to solve the issue.
>
>
>
>
>
>> UHD will automatically load the FPGA image as a part of the
>> initialization process. Try running the uhd_usrp_probe utility (that
>> initialized UHD and enumerates all the hardware capabilities of your
>> device).
>
>When I run the command $ uhd_usrp_probe. I get the following output.
>linux; GNU C++ version 4.9.3; Boost_105400;
>UHD_003.010.000.git-249-gef57ffcb
>
>Error: LookupError: KeyError: No devices found for ->
>
>
>
>Thank you.
>
>Sanat
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Quoting Ashish Chaudhari :
>
>> Hi Sanat,
>>
>> On Mon, Aug 1, 2016 at 5:46 AM, Sanat Kumar Mishra
>>  wrote:
>>>
>>> Thank you Ashish for your help. the NI driver is working now with  
>>> the update of the gcc 4.9 as you recommended. Now I am facing two  
>>> main problems, it would be nice if you could help.
>>>
>>>
>>> 1. After installing GNU radio by apt-get install gnuradio. I am  
>>> getting segmentation fault. even though it was working before.
>>
>> The version of GNU Radio in the apt repos is stable so I'm guessing
>> you may have some ABI compatibility issue between GR subcomponenets.
>> What GR flowgraph is crashing? How have you installed UHD? From
>> apt-get as well or did you build it from source?
>>
>>>
>>>
>>>
>>> 2. I have the USRP 2943R from NI. and connected through PCI to the  
>>> machine. I have enumerated the device and got the following results:
>>>
>>> #sudo niusrprio_pcie start
>>> Loading: NiRioSrv niusrpriok
>>> Starting: niusrpriorpc
>>>
>>> #lspci -k -d 1093:c4c4
>>> 03:00.0 Signal processing controller: National Instruments PXIe/PCIe
>Device
>>> Subsystem: National Instruments Device 785d
>>>
>>
>> That looks good.
>>
>>>
>>> I have installed  the UHD. how could I load the fpga image ?
>>>
>>
>> UHD will automatically load the FPGA image as a part of the
>> initialization process. Try running the uhd_usrp_probe utility (that
>> initialized UHD and enumerates all the hardware capabilities of your
>> device).
>>
>>
>> Thanks,
>>
>> Ashish
>>>
>>>
>>>
>>>
>>>
>>>
>>> Quoting Ashish Chaudhari :
>>>
 On Thu, Jul 28, 2016 at 8:05 AM, Sanat Kumar Mishra via USRP-users
  wrote:
>
>
> Dear all,
>
> I am trying to install the driver of the NI USRP 2943R on Linux  
> Ubuntu/Mint
> below specification:
>
> Kernel: 4.2.0-040200-generic
>
> Distributor ID: LinuxMint
> Description:Linux Mint 17.3 Rosa
> Release:17.3
> Codename:   rosa
>
> The driver is not installed properly and the SDR cant be connected
>to the
> machine. I have the following error when
> trying to update the driver by the commands:
>
> sudo /usr/local/bin/niusrprio_pcie stop
> sudo /usr/local/bin/updateNIDrivers --no-prompt
> sudo /usr/local/bin/niusrprio_pcie start
>
>
>
> I GET the below error:
>
> configuring NI-KAL for kernel version 4.2.0-040200-generic...
> Building module nikal...
> nikal: Makefile:659: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
> nikal:   CC [M]  /var/lib/nikal/4.2.0-040200-generic/nikal/nikal.o
> nikal: gcc: error: unrecognized command line option
> ‘-fstack-protector-strong’
> nikal: make[2]: ***
>[/var/lib/nikal/4.2.0-040200-generic/nikal/nikal.o]
> Error 1
> nikal: make[1]: ***
>[_module_/var/lib/nikal/4.2.0-040200-generic/nikal]
> Error 2
> nikal: make: *** [nikal.ko] Error 2
> nikal: ERROR:  failed to build nikal
> nikal: ERROR:  NI-KAL update failed.
> nikal: 

Re: [Discuss-gnuradio] SWIG std::vector issue

2016-08-02 Thread Dave NotTelling
Thank you very much Marcus!  I'll give that a go later today :D

On Tue, Aug 2, 2016 at 2:38 AM, Marcus Müller 
wrote:

> Hi Dave,
>
> that's a bit hard to tell without context; generally, Python can construct
> wrapper code for std::vector that makes those iterable, and handles the
> interna a bit different, but with PMTs the non-bracket method of access
> might work:
>
> your_vector_of_pmts_in_python.at(index)
>
> if that works, you can tell SWIG that your vector type should be an
> iterable; try going into your OOT's swig/ootname.i and add a
>
> %include 
>
> pretty much at the beginneing, and make sure to have in your %{%}:
>
> %{
> #include 
> #include 
> %}
>
>
> and further down, declare
>
> %template(ootname_vector_pmt_t) std::vector;
>
> And then hope that SWIG does what you want :(
>
>
> Best regards,
>
> Marcus
> On 01.08.2016 23:49, Dave NotTelling wrote:
>
> Anyone able to help with this?  I had to create helper methods to
> serialize the PMT objects and return a vector of strings.  Not the best
> solution :(
>
> On Thu, Jul 28, 2016 at 11:04 AM, Dave NotTelling 
> wrote:
>
>> I have a utility lib in C++ created with 'gr_modtool add noblock' that
>> has a function that returns a vector of pmt::pmt_t values.  I need to then
>> be able to access the elements of that vector via Python.  Right now I get
>> the following error when using a for loop to iterate over the vector:
>>
>>
>> TypeError: 'SwigPyObject' object is not iterable
>> swig/python detected a memory leak of type 'std::vector<
>> boost::intrusive_ptr< pmt::pmt_base >,std::allocator< boost::intrusive_ptr<
>> pmt::pmt_base > > > *', no destructor found.
>>
>>
>> How does one iterate over the elements of a std::vector in
>> Python?
>>
>> Thanks!
>>
>
>
>
> ___
> Discuss-gnuradio mailing 
> listDiscuss-gnuradio@gnu.orghttps://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: Error installing package python-zmq

2016-08-02 Thread Andrej Rode
Hi,

> Please submit the pullrequest! The package is definetely missing.
Done.

Cheers
Andrej



signature.asc
Description: OpenPGP digital signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Stefan Wunsch
Hi,

Removing the system UHD doesn't sovle it for me. Although, it doesn't
break somewhere else for me.

Greetings
Stefan

On 08/02/2016 10:22 AM, Marcus Müller wrote:
> Hi Stefan, Hi Cyrille,
> 
> I've seen this error before, but only with people that updated their GNU
> Radio source code (git pull), and then ran "make" again; swig sometimes
> stumbles upon this, and it takes a "make clean" to work again.
> 
> Now assuming this is not the case here, can you make sure you don't have
> two conflicting versions of UHD around?
> 
> 
> Best regards,
> 
> Marcus
> 
> 
> On 02.08.2016 09:03, Stefan Wunsch wrote:
>> And btw, it worked some month ago, when I implemented the pacman support
>> in pybombs. So the changes has to be somewhen since then.
>>
>> On 08/01/2016 10:38 PM, Cyrille DERORY wrote:
>>> Hi,
>>>
>>> with PyBOMBS, I'm compiling gnuradio on archlinux:
>>> sudo pybombs -v install gnuradio
>>> and I get errors with uhd_swigPYTHON_wrap.cxx.
>>> (see end of the attached verbose log)
>>>
>>> Any ideas?
>>>
>>> Best regards.
>>>
>>> Cyrille DERORY
>>>
>>>
>>> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /etc/pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {}
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /root/.pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>>> 'default_prx'}
>>> PyBOMBS.ConfigManager - DEBUG - Template directory:
>>> /usr/lib/python3.5/site-packages/pybombs/templates
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /etc/pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /root/.pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
>>> (/home/cderory)
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
>>> config dir: /home/cderory/.pybombs
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>>> /home/cderory/.pybombs/config.yml
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
>>> /home/cderory/src
>>> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
>>> /home/cderory/.pybombs/inventory.yml...
>>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
>>> /home/cderory/.pybombs/recipes
>>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>>> /home/cderory/.pybombs/config.yml
>>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>>> 'default'}
>>> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
>>> ['/home/cderory/.pybombs/recipes',
>>> '/home/cderory/.pybombs/recipes/gr-recipes',
>>> '/home/cderory/.pybombs/recipes/gr-etcetera',
>>> '/root/.pybombs/recipes/gr-recipes',
>>> '/root/.pybombs/recipes/gr-etcetera',
>>> '/usr/lib/python3.5/site-packages/pybombs/recipes']
>>> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-recipes':
>>> 'git+https://github.com/gnuradio/gr-recipes.git', 'gr-etcetera':
>>> 'git+https://github.com/gnuradio/gr-etcetera.git'}
>>> PyBOMBS - INFO - PyBOMBS Version 2.1.0
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes/gr-recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /home/cderory/.pybombs/recipes/gr-etcetera
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /root/.pybombs/recipes/gr-recipes
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/root/.pybombs/recipes/gr-recipes' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> /root/.pybombs/recipes/gr-etcetera
>>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>>> '/root/.pybombs/recipes/gr-etcetera' for recipes...
>>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>>> 

Re: [Discuss-gnuradio] PyBOMBS: Error installing package python-zmq

2016-08-02 Thread Cyrille DERORY
Hi,

no idea how to submit the pullrequest.
Who can do it ?

Best regards.

Cyrille

2016-08-02 8:50 GMT+02:00 Stefan Wunsch :

> Hi,
>
> Please submit the pullrequest! The package is definetely missing.
>
> Greetings
> Stefan
>
> On 08/01/2016 05:55 PM, Andrej Rode wrote:
> > Hey Cyrille,
> >
> >
> > On 01/08/16 17:20, Cyrille DERORY wrote:
> >> Thank you for your reply,
> >>
> >> my distro/OS is archlinux and package manager is pacman:
> >> https://wiki.archlinux.org/index.php/pacman
> >
> > Try adding:
> >   pacman: python2-pyzmq
> > in ~/.pybombs/recipes/gr-recipes/python-zmq.lwr below the port line.
> > If you can install gnuradio successfully I'll submit a pull-request
> > against gr-recipes master.
> >
> > Best Regards,
> > Andrej
> >
> > P.S. Don't forget to add the mailing-list in your reply. Your answer
> > might be interesting for other folks.
> >
> >
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Cyrille DERORY
Hi,

Gnuradio-3.7.10-1 release:
https://www.archlinux.org/packages/community/x86_64/gnuradio/ ) was already
installed when I used PyBOMBS.
I've just uninstalled gnuradio-3.7.10-1 and all dependancies
(libuhd-3.9.4-1, libvolk-1.3-1, gnuradio-iqbal-0.37.2-19) and now PyBOMBS
stop compiling at 32%.
Previously it was at 85%:

[cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
/etc/pybombs/config.yml
PyBOMBS.ConfigManager - DEBUG - New config items: {}
PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
/root/.pybombs/config.yml
PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
'default_prx'}
PyBOMBS.ConfigManager - DEBUG - Template directory:
/usr/lib/python3.5/site-packages/pybombs/templates
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
/etc/pybombs/config.yml
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
/root/.pybombs/config.yml
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
(/home/cderory)
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix config
dir: /home/cderory/.pybombs
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
/home/cderory/.pybombs/config.yml
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
/home/cderory/src
PyBOMBS.Inventory - DEBUG - Trying to load inventory file
/home/cderory/.pybombs/inventory.yml...
PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
/home/cderory/.pybombs/recipes
PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
/home/cderory/.pybombs/config.yml
PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
'default'}
PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
['/home/cderory/.pybombs/recipes',
'/home/cderory/.pybombs/recipes/gr-etcetera',
'/home/cderory/.pybombs/recipes/gr-recipes',
'/root/.pybombs/recipes/gr-etcetera', '/root/.pybombs/recipes/gr-recipes',
'/usr/lib/python3.5/site-packages/pybombs/recipes']
PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-etcetera':
'git+https://github.com/gnuradio/gr-etcetera.git', 'gr-recipes': 'git+
https://github.com/gnuradio/gr-recipes.git'}
PyBOMBS - INFO - PyBOMBS Version 2.1.0
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/home/cderory/.pybombs/recipes
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/home/cderory/.pybombs/recipes' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/home/cderory/.pybombs/recipes/gr-etcetera
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/home/cderory/.pybombs/recipes/gr-recipes
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/root/.pybombs/recipes/gr-etcetera
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/root/.pybombs/recipes/gr-etcetera' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/root/.pybombs/recipes/gr-recipes
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/root/.pybombs/recipes/gr-recipes' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
/usr/lib/python3.5/site-packages/pybombs/recipes
PyBOMBS.RecipeListManager - DEBUG - Scanning directory
'/usr/lib/python3.5/site-packages/pybombs/recipes' for recipes...
PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
PyBOMBS.RecipeListManager - DEBUG - Loading templates.
PyBOMBS.install - DEBUG - Initializing command class for command install
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
pip
PyBOMBS.PackageManager - DEBUG - pip is supported!
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
apt-get
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
yumdnf
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
port
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
brew
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
pacman
PyBOMBS.PackageManager - DEBUG - pacman is supported!
PyBOMBS.PackageManager - DEBUG - Attempting to add binary package manager
portage
PyBOMBS.PackageManager - DEBUG - Attempting to add 

Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Marcus Müller
Hi Stefan, Hi Cyrille,

I've seen this error before, but only with people that updated their GNU
Radio source code (git pull), and then ran "make" again; swig sometimes
stumbles upon this, and it takes a "make clean" to work again.

Now assuming this is not the case here, can you make sure you don't have
two conflicting versions of UHD around?


Best regards,

Marcus


On 02.08.2016 09:03, Stefan Wunsch wrote:
> And btw, it worked some month ago, when I implemented the pacman support
> in pybombs. So the changes has to be somewhen since then.
>
> On 08/01/2016 10:38 PM, Cyrille DERORY wrote:
>> Hi,
>>
>> with PyBOMBS, I'm compiling gnuradio on archlinux:
>> sudo pybombs -v install gnuradio
>> and I get errors with uhd_swigPYTHON_wrap.cxx.
>> (see end of the attached verbose log)
>>
>> Any ideas?
>>
>> Best regards.
>>
>> Cyrille DERORY
>>
>>
>> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>> /etc/pybombs/config.yml
>> PyBOMBS.ConfigManager - DEBUG - New config items: {}
>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>> /root/.pybombs/config.yml
>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>> 'default_prx'}
>> PyBOMBS.ConfigManager - DEBUG - Template directory:
>> /usr/lib/python3.5/site-packages/pybombs/templates
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>> /etc/pybombs/config.yml
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>> /root/.pybombs/config.yml
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
>> (/home/cderory)
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
>> config dir: /home/cderory/.pybombs
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
>> /home/cderory/.pybombs/config.yml
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
>> /home/cderory/src
>> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
>> /home/cderory/.pybombs/inventory.yml...
>> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
>> /home/cderory/.pybombs/recipes
>> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
>> /home/cderory/.pybombs/config.yml
>> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
>> 'default'}
>> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
>> ['/home/cderory/.pybombs/recipes',
>> '/home/cderory/.pybombs/recipes/gr-recipes',
>> '/home/cderory/.pybombs/recipes/gr-etcetera',
>> '/root/.pybombs/recipes/gr-recipes',
>> '/root/.pybombs/recipes/gr-etcetera',
>> '/usr/lib/python3.5/site-packages/pybombs/recipes']
>> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-recipes':
>> 'git+https://github.com/gnuradio/gr-recipes.git', 'gr-etcetera':
>> 'git+https://github.com/gnuradio/gr-etcetera.git'}
>> PyBOMBS - INFO - PyBOMBS Version 2.1.0
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /home/cderory/.pybombs/recipes
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/home/cderory/.pybombs/recipes' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /home/cderory/.pybombs/recipes/gr-recipes
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /home/cderory/.pybombs/recipes/gr-etcetera
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /root/.pybombs/recipes/gr-recipes
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/root/.pybombs/recipes/gr-recipes' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /root/.pybombs/recipes/gr-etcetera
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/root/.pybombs/recipes/gr-etcetera' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
>> /usr/lib/python3.5/site-packages/pybombs/recipes
>> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
>> '/usr/lib/python3.5/site-packages/pybombs/recipes' for recipes...
>> PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
>> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
>> PyBOMBS.install - DEBUG - 

Re: [Discuss-gnuradio] Problem with gnuradio-companion

2016-08-02 Thread Cinaed Simson
On 08/01/2016 06:54 AM, Mike Willis wrote:
> I can't fix this one - 3 hours trying and I have given up. Ubuntu
> 16.04. gnuradio-companion isn't working. Everything else seems to be
> fine, existing flowgraphs run OK, even gqrx. I have tried a complete
> re-installation, right back to the pybombs prefix init stage but no
> dice.
> 
> Any ideas?

I recommend you comment out PYTHONPATH in your .bashrc file (or wherever
it's defined) and create a new one with only 1 entry, namely

   export PYTHONPATH=/home/mike/gnuradio/lib/python2.7/dist-packages

But check it - see if that is correct directory by

   cd /home/mike/gnuradio/lib/python2.7/dist-packages

There should be at least 3 sub directories.

Check to see if there's anything in the lib64 directory

   cd /home/mike/gnuradio/lib64/python2.7/dist-packages

If it exists and has the same sub directories as the lib path then you
have 2 gnuradio installations - you have choose one or the other.

Look at the dates and take the directory with the most recent date.

Once you've set the PYTHONPATH, set

   export LD_LIBRARY_PATH=/home/mike/gnuradio/lib

or

   export LD_LIBRARY_PATH=/home/mike/gnuradio/lib64

- which ever the case may be - although it's not clear you need to set
LD_LIBRARY_PATH - but it won't hurt if it's done correctly.

It's either the lib path or the lib64 path - but not both.

Then start python, type type

  from gnuradio import gr

If that works try gnuradio-companion

-- Cinaed




> 
> mike@mjw-i7:~/.gnuradio$ gnuradio-companion
> Traceback (most recent call last):
>   File "/home/mike/gnuradio/bin/gnuradio-companion", line 29, in 
> from gnuradio.grc.main import main
> ImportError: No module named main
> 
> I have set the environment etc. All looks good except there is no
> lib64 director in my prefix /home/mike/gnuradio
> 
> mike@mjw-i7:~/.gnuradio$ env |grep gnuradio
> LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:
> LD_LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:
> PYBOMBS_PREFIX=/home/mike/gnuradio
> PATH=/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> PWD=/home/mike/gnuradio
> PYTHONPATH=/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:
> PKG_CONFIG_PATH=/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Problem with gnuradio-companion

2016-08-02 Thread Koslowski, Sebastian (CEL)
Your PYTHONPATH looks fine to me. In one of those paths should be a
"gnuradio/grc/main.py". Looks like that didn't get installed for some
reason. Maybe you could double check whats actually in there.

Admittedly, the error message could/should be a bit friendlier. I will
fix that.

Sebastian

On 08/01/2016 03:54 PM, Mike Willis wrote:
> I can't fix this one - 3 hours trying and I have given up. Ubuntu
> 16.04. gnuradio-companion isn't working. Everything else seems to be
> fine, existing flowgraphs run OK, even gqrx. I have tried a complete
> re-installation, right back to the pybombs prefix init stage but no
> dice.
>
> Any ideas?
>
> mike@mjw-i7:~/.gnuradio$ gnuradio-companion
> Traceback (most recent call last):
>   File "/home/mike/gnuradio/bin/gnuradio-companion", line 29, in 
> from gnuradio.grc.main import main
> ImportError: No module named main
>
> I have set the environment etc. All looks good except there is no
> lib64 director in my prefix /home/mike/gnuradio
>
> mike@mjw-i7:~/.gnuradio$ env |grep gnuradio
> LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:
> LD_LIBRARY_PATH=/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:/home/mike/gnuradio/lib:/home/mike/gnuradio/lib64/:
> PYBOMBS_PREFIX=/home/mike/gnuradio
> PATH=/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/home/mike/gnuradio/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
> PWD=/home/mike/gnuradio
> PYTHONPATH=/home/mike/gnuradio/python:/home/mike/gnuradio/lib/python2.6/site-packages:/home/mike/gnuradio/lib64/python2.6/site-packages:/home/mike/gnuradio/lib/python2.6/dist-packages:/home/mike/gnuradio/lib64/python2.6/dist-packages:/home/mike/gnuradio/lib/python2.7/site-packages:/home/mike/gnuradio/lib64/python2.7/site-packages:/home/mike/gnuradio/lib/python2.7/dist-packages:/home/mike/gnuradio/lib64/python2.7/dist-packages:
> PKG_CONFIG_PATH=/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:/home/mike/gnuradio/lib/pkgconfig:/home/mike/gnuradio/lib64/pkgconfig:
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Stefan Wunsch
Hi,

I can confirm this problem. But it doesn't seem to be Arch Linux
specific (more a UHD problem).

Can someone confirm that it works on the other systems? UHD is build
from source, so the root of the problem are not the pacman packages.

My first guess would be the gcc6 compiler shipped with Arch, but just a
thought.

Greetings,
Stefan

On 08/01/2016 10:38 PM, Cyrille DERORY wrote:
> Hi,
> 
> with PyBOMBS, I'm compiling gnuradio on archlinux:
> sudo pybombs -v install gnuradio
> and I get errors with uhd_swigPYTHON_wrap.cxx.
> (see end of the attached verbose log)
> 
> Any ideas?
> 
> Best regards.
> 
> Cyrille DERORY
> 
> 
> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {}
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default_prx'}
> PyBOMBS.ConfigManager - DEBUG - Template directory:
> /usr/lib/python3.5/site-packages/pybombs/templates
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
> (/home/cderory)
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
> config dir: /home/cderory/.pybombs
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
> /home/cderory/src
> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
> /home/cderory/.pybombs/inventory.yml...
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
> /home/cderory/.pybombs/recipes
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default'}
> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
> ['/home/cderory/.pybombs/recipes',
> '/home/cderory/.pybombs/recipes/gr-recipes',
> '/home/cderory/.pybombs/recipes/gr-etcetera',
> '/root/.pybombs/recipes/gr-recipes',
> '/root/.pybombs/recipes/gr-etcetera',
> '/usr/lib/python3.5/site-packages/pybombs/recipes']
> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-recipes':
> 'git+https://github.com/gnuradio/gr-recipes.git', 'gr-etcetera':
> 'git+https://github.com/gnuradio/gr-etcetera.git'}
> PyBOMBS - INFO - PyBOMBS Version 2.1.0
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /usr/lib/python3.5/site-packages/pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/usr/lib/python3.5/site-packages/pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.install - DEBUG - Initializing command class for command install
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager pip
> PyBOMBS.PackageManager - DEBUG - pip is supported!
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager apt-get
> PyBOMBS.PackageManager - 

Re: [Discuss-gnuradio] PyBOMBS: Error installing package python-zmq

2016-08-02 Thread Stefan Wunsch
Hi,

Please submit the pullrequest! The package is definetely missing.

Greetings
Stefan

On 08/01/2016 05:55 PM, Andrej Rode wrote:
> Hey Cyrille,
> 
> 
> On 01/08/16 17:20, Cyrille DERORY wrote:
>> Thank you for your reply,
>>
>> my distro/OS is archlinux and package manager is pacman:
>> https://wiki.archlinux.org/index.php/pacman
> 
> Try adding:
>   pacman: python2-pyzmq
> in ~/.pybombs/recipes/gr-recipes/python-zmq.lwr below the port line.
> If you can install gnuradio successfully I'll submit a pull-request
> against gr-recipes master.
> 
> Best Regards,
> Andrej
> 
> P.S. Don't forget to add the mailing-list in your reply. Your answer
> might be interesting for other folks.
> 
> 
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] PyBOMBS: error compiling file uhd_swigPYTHON_wrap.cxx

2016-08-02 Thread Stefan Wunsch
And btw, it worked some month ago, when I implemented the pacman support
in pybombs. So the changes has to be somewhen since then.

On 08/01/2016 10:38 PM, Cyrille DERORY wrote:
> Hi,
> 
> with PyBOMBS, I'm compiling gnuradio on archlinux:
> sudo pybombs -v install gnuradio
> and I get errors with uhd_swigPYTHON_wrap.cxx.
> (see end of the attached verbose log)
> 
> Any ideas?
> 
> Best regards.
> 
> Cyrille DERORY
> 
> 
> [cderory@cyrille-E6540 ~]$ sudo pybombs -v install gnuradio
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {}
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default_prx'}
> PyBOMBS.ConfigManager - DEBUG - Template directory:
> /usr/lib/python3.5/site-packages/pybombs/templates
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /etc/pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /root/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Using CWD as prefix
> (/home/cderory)
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Choosing default prefix
> config dir: /home/cderory/.pybombs
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Inspecting config file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix source dir is:
> /home/cderory/src
> PyBOMBS.Inventory - DEBUG - Trying to load inventory file
> /home/cderory/.pybombs/inventory.yml...
> PyBOMBS.ConfigManager.PrefixInfo - DEBUG - Prefix-local recipe dir is:
> /home/cderory/.pybombs/recipes
> PyBOMBS.ConfigManager - DEBUG - Reading config info from file:
> /home/cderory/.pybombs/config.yml
> PyBOMBS.ConfigManager - DEBUG - New config items: {'default_prefix':
> 'default'}
> PyBOMBS.ConfigManager - DEBUG - Full list of recipe locations:
> ['/home/cderory/.pybombs/recipes',
> '/home/cderory/.pybombs/recipes/gr-recipes',
> '/home/cderory/.pybombs/recipes/gr-etcetera',
> '/root/.pybombs/recipes/gr-recipes',
> '/root/.pybombs/recipes/gr-etcetera',
> '/usr/lib/python3.5/site-packages/pybombs/recipes']
> PyBOMBS.ConfigManager - DEBUG - Named recipe locations: {'gr-recipes':
> 'git+https://github.com/gnuradio/gr-recipes.git', 'gr-etcetera':
> 'git+https://github.com/gnuradio/gr-etcetera.git'}
> PyBOMBS - INFO - PyBOMBS Version 2.1.0
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 0 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /home/cderory/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/home/cderory/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 166 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /root/.pybombs/recipes/gr-etcetera
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/root/.pybombs/recipes/gr-etcetera' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 59 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.RecipeListManager - DEBUG - Adding recipe location:
> /usr/lib/python3.5/site-packages/pybombs/recipes
> PyBOMBS.RecipeListManager - DEBUG - Scanning directory
> '/usr/lib/python3.5/site-packages/pybombs/recipes' for recipes...
> PyBOMBS.RecipeListManager - DEBUG - Found 11 new recipes.
> PyBOMBS.RecipeListManager - DEBUG - Loading templates.
> PyBOMBS.install - DEBUG - Initializing command class for command install
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager pip
> PyBOMBS.PackageManager - DEBUG - pip is supported!
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager apt-get
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager yumdnf
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> manager port
> PyBOMBS.PackageManager - DEBUG - Attempting to add binary package
> 

Re: [Discuss-gnuradio] SWIG std::vector issue

2016-08-02 Thread Marcus Müller
Hi Dave,

that's a bit hard to tell without context; generally, Python can
construct wrapper code for std::vector that makes those iterable, and
handles the interna a bit different, but with PMTs the non-bracket
method of access might work:

your_vector_of_pmts_in_python.at(index)

if that works, you can tell SWIG that your vector type should be an
iterable; try going into your OOT's swig/ootname.i and add a

%include 

pretty much at the beginneing, and make sure to have in your %{%}:

%{
#include 
#include 
%}

and further down, declare

%template(ootname_vector_pmt_t) std::vector; 

And then hope that SWIG does what you want :(


Best regards,

Marcus

On 01.08.2016 23:49, Dave NotTelling wrote:
> Anyone able to help with this?  I had to create helper methods to
> serialize the PMT objects and return a vector of strings.  Not the
> best solution :(
>
> On Thu, Jul 28, 2016 at 11:04 AM, Dave NotTelling  > wrote:
>
> I have a utility lib in C++ created with 'gr_modtool add noblock'
> that has a function that returns a vector of pmt::pmt_t values.  I
> need to then be able to access the elements of that vector via
> Python.  Right now I get the following error when using a for loop
> to iterate over the vector:
>
>
> TypeError: 'SwigPyObject' object is not iterable
> swig/python detected a memory leak of type 'std::vector<
> boost::intrusive_ptr< pmt::pmt_base >,std::allocator<
> boost::intrusive_ptr< pmt::pmt_base > > > *', no destructor found.
>
>
> How does one iterate over the elements of a
> std::vector in Python?
>
> Thanks!
>
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio