Re: Import error using an OOT

2022-12-10 Thread Elmore Family
The version is 2.2.1-1. The OS is Bullseye.

What next?

Jim

From: Cinaed Simson
Sent: Saturday, December 10, 2022 12:24 AM
To: discuss-gnuradio@gnu.org
Subject: Re: Import error using an OOT

Hi Elmore - type

  apt list | grep python3-pygccxml

and see if it's version 1.x.

If it's not installed, then

  apt install python3-pygccxml

will install it.

Version 1.x only works with python code - it may be all you need.

If you need version 2, then it's easy to upgrade the system from bullseye to 
bookworm.

-- Cinaed



On 12/9/22 18:33, Elmore's wrote:

  I have created an OOT which when I incorporate it in my flowgraph shows the 
following error:

  Failed to evaluate import expression ‘import ft8’

  The yaml file is:

  id: ft8_run_response
  label: ft8
  category: '[ft8]'

  templates:
imports: import ft8
make: ft8.run_response(${ft8_button})
callbacks:
- set_ft8(${ft8_button})

  #  Make one 'parameters' list entry for every parameter you want settable 
from the GUI.
  # Keys include:
  # * id (makes the value accessible as keyname, e.g. in the make entry)
  # * label (label shown in the GUI)
  # * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
  # * default
  parameters:
  - id: ft8_button
label: ft8_button
dtype: raw
default: 0

  #  'file_format' specifies the version of the GRC yml format used in the file
  #  and should usually not be changed.
  file_format: 1

  I have developed and used an OOT before without an issue. I looked at the 
previous OOT and reviewed the GNU Radio docs on OOTs without seeing anything 
different.

  I am using Python 3.92 with GNU radio 3.9.4.0 on a Raspberry Pi.

  I hope someone can show me the error of my ways.

  Jim

   Virus-free.www.avg.com




--
This email has been checked for viruses by AVG antivirus software.
www.avg.com

Re: Import error using an OOT

2022-12-10 Thread Cinaed Simson

Type

   python3

in a terminal window, then enter

  import ft8

and see what happens.

-- Cinaed


On 12/9/22 18:33, Elmore's wrote:
I have created an OOT which when I incorporate it in my flowgraph 
shows the following error:

Failed to evaluate import expression ‘import ft8’
The yaml file is:
id: ft8_run_response
label: ft8
category: '[ft8]'
templates:
  imports: import ft8
  make: ft8.run_response(${ft8_button})
  callbacks:
  - set_ft8(${ft8_button})
#  Make one 'parameters' list entry for every parameter you want 
settable from the GUI.

# Keys include:
# * id (makes the value accessible as keyname, e.g. in the make entry)
# * label (label shown in the GUI)
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
# * default
parameters:
- id: ft8_button
  label: ft8_button
  dtype: raw
  default: 0
#  'file_format' specifies the version of the GRC yml format used in 
the file

#  and should usually not be changed.
file_format: 1
I have developed and used an OOT before without an issue. I looked at 
the previous OOT and reviewed the GNU Radio docs on OOTs without 
seeing anything different.

I am using Python 3.92 with GNU radio 3.9.4.0 on a Raspberry Pi.
I hope someone can show me the error of my ways.
Jim

 
	Virus-free.www.avg.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


Re: Import error using an OOT

2022-12-10 Thread Cinaed Simson

Type

   python3

then enter

  import ft8

and see if it works.

-- Cinaed


On 12/9/22 18:33, Elmore's wrote:
I have created an OOT which when I incorporate it in my flowgraph 
shows the following error:

Failed to evaluate import expression ‘import ft8’
The yaml file is:
id: ft8_run_response
label: ft8
category: '[ft8]'
templates:
  imports: import ft8
  make: ft8.run_response(${ft8_button})
  callbacks:
  - set_ft8(${ft8_button})
#  Make one 'parameters' list entry for every parameter you want 
settable from the GUI.

# Keys include:
# * id (makes the value accessible as keyname, e.g. in the make entry)
# * label (label shown in the GUI)
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
# * default
parameters:
- id: ft8_button
  label: ft8_button
  dtype: raw
  default: 0
#  'file_format' specifies the version of the GRC yml format used in 
the file

#  and should usually not be changed.
file_format: 1
I have developed and used an OOT before without an issue. I looked at 
the previous OOT and reviewed the GNU Radio docs on OOTs without 
seeing anything different.

I am using Python 3.92 with GNU radio 3.9.4.0 on a Raspberry Pi.
I hope someone can show me the error of my ways.
Jim

 
	Virus-free.www.avg.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>


how to make stream demux block in python

2022-12-10 Thread Sumit Agrawal (P19EE207)
Hi everyone,
Can anyone tell me how to make a stream demuxing block to demultiplex one
stream into N output streams?

Demuxes a stream producing N outputs streams that contain n_0 items in the
first stream, n_1 items in the second, etc., and repeats. Tags are
propagated. The number of items in each output stream is specified using
the lengths parameter like so [n_0, n_1, ..., n_N-1].

Example:
lengths = [2,3,4,5]

input stream = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...]
output_stream_0 = [0, 1, 14, 15, ...]
output_stream_1 = [2, 3, 4, 16, ...]
output_stream_2 = [5, 6, 7, 8, ...]
output_stream_2 = [9, 10, 11, 12, 13 ...]

-- 




*Thanks & Regards,Sumit Kumar AgrawalPh.D. (Electrical Engineering)Indian
Institute of TechnologyJodhpur, Rajasthan-342037*
*Mob. No.- 8410957412*
ᐧ