Re: How to enable local OOT modules

2023-04-05 Thread Ivan Iudice
Hi Vasil,
setting .profile works like a charm!
Thanks for help.
Regards.

Ivan

> Il giorno 5 apr 2023, alle ore 14:28, Vasil Velichkov  
> ha scritto:
> 
> Hi Ivan,
> 
>> On 04/04/2023 17.17, kron...@tiscali.it wrote:
>> It seems gnome shell does not consider the variables I
>> defined in .bashrc. 
> 
> No, gnome shell does not consider this file. Add the export lines to your 
> ~/.profile instead. Some more information is available at 
> https://serverfault.com/a/261807
> 
> Regards,
> Vasil




Re: How to enable local OOT modules

2023-04-05 Thread Vasil Velichkov
Hi Ivan,

On 04/04/2023 17.17, kron...@tiscali.it wrote:
> It seems gnome shell does not consider the variables I
> defined in .bashrc. 

No, gnome shell does not consider this file. Add the export lines to your 
~/.profile instead. Some more information is available at 
https://serverfault.com/a/261807

Regards,
Vasil



Re: How to enable local OOT modules

2023-04-04 Thread krono86
  
Hi Volker. 
I'm sorry for late. 
Setting correct paths in [grc]
section of ~/.gnuradio/config.conf works for seeing the blocks into the
block tree. 
The problem now is that when I launch GRC from gnome shell
I obtain: 

ImportError: cannot import name 'customModule' from
'gnuradio'

It seems gnome shell does not consider the variables I
defined in .bashrc. 
All works fine when running gnuradio-companion from
shell. 

Find below the variable definitions in .bashrc: 

export
GNURADIO_OOT_LOCAL_PATH=${HOME}/workspace/gnuradio-oot 
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${GNURADIO_OOT_LOCAL_PATH}/local/lib

export
PYTHONPATH=${PYTHONPATH}:${GNURADIO_OOT_LOCAL_PATH}/local/lib/python3.10/dist-packages


Thanks for help. 

Ivan

Il 16.03.2023 19:24 Volker Schroer ha
scritto: 

> Hi Ivan.
> 
> I forgot to mention:
> 
> Have a look at
~/.gnuradio/config.conf
> 
> There is a sectioo
> 
> [grc]
> 
> This
section should contain something like
> 
> global_blocks_path =
/usr/local/gnuradio/share/gnuradio/grc/blocks
> local_blocks_path =
/usr/local/oot3/share/gnuradio/grc/blocks
> 
> Instead of setting
GRC_BLOCKS_PATH
> 
> you can set local_blocks_path which should be
evaluated in both cases.
> 
> -- Volker
> 
>> Hi Volker! In order to see
the local blocks in GRC, I also set $GRC_BLOCKS_PATH. Based on your
suggestions, at the moment I added the following variable definitions in
.bashrc: export GNURADIO_OOT_LOCAL_PATH=$HOME/workspace/gnuradio-oot
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GNURADIO_OOT_LOCAL_PATH/local/lib
export
PYTHONPATH=$PYTHONPATH:$GNURADIO_OOT_LOCAL_PATH/local/lib/python3.10/dist-packages
export
GRC_BLOCKS_PATH=$GRC_BLOCK_PATH:$GNURADIO_OOT_LOCAL_PATH/share/gnuradio/grc/blocks
It works like a charm if I launch gnuradio-companion from terminal. The
problem is that when I launch GRC from gnome shell, local blocks are not
found. Why does launching GRC from gnome shell bypass $GRC_BLOCKS_PATH?
Thanks for help. Ivan Il 14.03.2023 18:01 Volker Schroer ha scritto: 
>>

>>> Hello! You have to set LD_LIBRARY_PATH and PYTHONPATH accordingly.
For example I install my oot's to /usr/local/oot and I set echo
$LD_LIBRARY_PATH
/usr/local/gnuradio/lib64:/usr/local/volk/lib64:/usr/local/libiio/lib64:/usr/local/libad9361/lib:/usr/local/oot/lib64
echo $PYTHONPATH
/usr/local/gnuradio/lib64/python3.11/site-packages/:/usr/local/oot/lib64/python3.11/site-packages/
-- Volker Am 14.03.23 um 16:46 schriebkron...@tiscali.it
[5]kron...@tiscali.it>: 
>>> 
 Hello guys! My aim is to setup a
workstation with GNU Radio and a set of system-wide OOTs installed
(managed by the administrator) to be used by all of the users, while
still allowing the users to create their own OOTs for local experiments
and install them in $HOME/local/. At the moment I installed GNU Radio on
Ubuntu 22.04 using apt; I know I can specify to cmake
|-DCMAKE_INSTALL_PREFIX=$HOME/local.| How to get gnuradio aware with
respect to the OOT modules locally installed? Thanks for help! Ivan
VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi.
ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/
[1]
>> VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48
mesi. ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/
[6]
  


VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi. ATTIVA 
ORA
 
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS0A00025=link=tiscali_source=tiscali_medium=link_campaign=voucherbusiness_np=tiscali.link.footermail.voucherbusiness.btb..



Re: How to enable local OOT modules

2023-03-16 Thread Volker Schroer

Hi Ivan.

I forgot to mention:

Have a look at ~/.gnuradio/config.conf

There is a sectioo

[grc]

This section should contain something like

global_blocks_path = /usr/local/gnuradio/share/gnuradio/grc/blocks
local_blocks_path = /usr/local/oot3/share/gnuradio/grc/blocks

Instead of setting GRC_BLOCKS_PATH

you can set local_blocks_path which should be evaluated in both cases.

-- Volker



Hi Volker!
In order to see the local blocks in GRC, I also set $GRC_BLOCKS_PATH.
Based on your suggestions, at the moment I added the following variable
definitions in .bashrc:
export GNURADIO_OOT_LOCAL_PATH=$HOME/workspace/gnuradio-oot
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GNURADIO_OOT_LOCAL_PATH/local/lib
export
PYTHONPATH=$PYTHONPATH:$GNURADIO_OOT_LOCAL_PATH/local/lib/python3.10/dist-packages
export
GRC_BLOCKS_PATH=$GRC_BLOCK_PATH:$GNURADIO_OOT_LOCAL_PATH/share/gnuradio/grc/blocks
It works like a charm if I launch gnuradio-companion from terminal.
The problem is that when I launch GRC from gnome shell, local blocks are
not found.
Why does launching GRC from gnome shell bypass $GRC_BLOCKS_PATH?
Thanks for help.
Ivan

Il 14.03.2023 18:01 Volker Schroer ha scritto:


Hello!
You have to set LD_LIBRARY_PATH and PYTHONPATH accordingly.

For example I install my oot's to /usr/local/oot and I set

echo $LD_LIBRARY_PATH
/usr/local/gnuradio/lib64:/usr/local/volk/lib64:/usr/local/libiio/lib64:/usr/local/libad9361/lib:/usr/local/oot/lib64

echo $PYTHONPATH
/usr/local/gnuradio/lib64/python3.11/site-packages/:/usr/local/oot/lib64/python3.11/site-packages/

-- Volker


Am 14.03.23 um 16:46 schriebkron...@tiscali.it  :

Hello guys! My aim is to setup a workstation with GNU Radio and a set
of system-wide OOTs installed (managed by the administrator) to be
used by all of the users, while still allowing the users to create
their own OOTs for local experiments and install them in
$HOME/local/. At the moment I installed GNU Radio on Ubuntu 22.04
using apt; I know I can specify to cmake
|-DCMAKE_INSTALL_PREFIX=$HOME/local.| How to get gnuradio aware with
respect to the OOT modules locally installed? Thanks for help! Ivan
VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48
mesi. ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/ 
 
..>




VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi.
ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/ 







Re: How to enable local OOT modules

2023-03-16 Thread krono86
  
Hi Volker! 
In order to see the local blocks in GRC, I also set
$GRC_BLOCKS_PATH. 
Based on your suggestions, at the moment I added the
following variable definitions in .bashrc: 
export
GNURADIO_OOT_LOCAL_PATH=$HOME/workspace/gnuradio-oot
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GNURADIO_OOT_LOCAL_PATH/local/lib
export
PYTHONPATH=$PYTHONPATH:$GNURADIO_OOT_LOCAL_PATH/local/lib/python3.10/dist-packages
export
GRC_BLOCKS_PATH=$GRC_BLOCK_PATH:$GNURADIO_OOT_LOCAL_PATH/share/gnuradio/grc/blocks

It works like a charm if I launch gnuradio-companion from terminal.

The problem is that when I launch GRC from gnome shell, local blocks
are not found. 
Why does launching GRC from gnome shell bypass
$GRC_BLOCKS_PATH? 
Thanks for help. 
Ivan 

Il 14.03.2023 18:01 Volker
Schroer ha scritto: 

> Hello!
> You have to set LD_LIBRARY_PATH and
PYTHONPATH accordingly.
> 
> For example I install my oot's to
/usr/local/oot and I set
> 
> echo $LD_LIBRARY_PATH
>
/usr/local/gnuradio/lib64:/usr/local/volk/lib64:/usr/local/libiio/lib64:/usr/local/libad9361/lib:/usr/local/oot/lib64
>

> echo $PYTHONPATH
>
/usr/local/gnuradio/lib64/python3.11/site-packages/:/usr/local/oot/lib64/python3.11/site-packages/
>

> -- Volker
> 
> Am 14.03.23 um 16:46 schrieb kron...@tiscali.it
[3]:
> 
>> Hello guys! My aim is to setup a workstation with GNU Radio
and a set of system-wide OOTs installed (managed by the administrator)
to be used by all of the users, while still allowing the users to create
their own OOTs for local experiments and install them in $HOME/local/.
At the moment I installed GNU Radio on Ubuntu 22.04 using apt; I know I
can specify to cmake |-DCMAKE_INSTALL_PREFIX=$HOME/local.| How to get
gnuradio aware with respect to the OOT modules locally installed? Thanks
for help! Ivan VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0
per 48 mesi. ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/
[1]
  


VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi. ATTIVA 
ORA
 
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS0A00025=link=tiscali_source=tiscali_medium=link_campaign=voucherbusiness_np=tiscali.link.footermail.voucherbusiness.btb..



Re: How to enable local OOT modules

2023-03-14 Thread Volker Schroer

Hello!
You have to set LD_LIBRARY_PATH and PYTHONPATH accordingly.

For example I install my oot's to /usr/local/oot and I set

echo $LD_LIBRARY_PATH
/usr/local/gnuradio/lib64:/usr/local/volk/lib64:/usr/local/libiio/lib64:/usr/local/libad9361/lib:/usr/local/oot/lib64

echo $PYTHONPATH
/usr/local/gnuradio/lib64/python3.11/site-packages/:/usr/local/oot/lib64/python3.11/site-packages/

-- Volker


Am 14.03.23 um 16:46 schrieb kron...@tiscali.it:

Hello guys!

My aim is to setup a workstation with GNU Radio and a set of system-wide
OOTs installed (managed by the administrator) to be used by all of the
users, while still allowing the users to create their own OOTs for local
experiments and install them in $HOME/local/.

At the moment I installed GNU Radio on Ubuntu 22.04 using apt; I know I
can specify to cmake |-DCMAKE_INSTALL_PREFIX=$HOME/local.|

How to get gnuradio aware with respect to the OOT modules locally installed?

Thanks for help!

Ivan




VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi.
ATTIVA ORA
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/ 







How to enable local OOT modules

2023-03-14 Thread krono86
  

Hello guys! 

My aim is to setup a workstation with GNU Radio and a
set of system-wide OOTs installed (managed by the administrator) to be
used by all of the users, while still allowing the users to create their
own OOTs for local experiments and install them in $HOME/local/. 

At
the moment I installed GNU Radio on Ubuntu 22.04 using apt; I know I can
specify to cmake -DCMAKE_INSTALL_PREFIX=$HOME/local. 

How to get
gnuradio aware with respect to the OOT modules locally installed?


Thanks for help! 

Ivan   


VOUCHER CONNETTIVITÀ per P.IVA e PMI: internet a canone 0 per 48 mesi. ATTIVA 
ORA
 
https://casa.tiscali.it/promo/?u=https://promozioni.tiscali.it/voucher_business/?r=TS0A00025=link=tiscali_source=tiscali_medium=link_campaign=voucherbusiness_np=tiscali.link.footermail.voucherbusiness.btb..