Re: Import error using an OOT

2022-12-13 Thread Elmore Family
, December 12, 2022 9:44 PM To: discuss-gnuradio@gnu.org Subject: RE: Re: Import error using an OOT This thread seems to have gone for a while with a bit of thrashing. To recap: > I have created an OOT which when I incorporate it in my flowgraph shows the > following error: > Failed to

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
wrote: I changed the line as you requested. No difference. *From:* Cinaed Simson *Sent:* Monday, December 12, 2022 5:44 PM *To:* Elmore Family *Cc:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using an OOT No I'm not. The ft8_qso.conf.is a data input file - or a yaml file - it is

RE: Re: Import error using an OOT

2022-12-12 Thread Jim Melton
So, either make sure that your config file is in the directory where you start the python process, or create some path to where your config file(s) live and include it in the argument to config.read(). --- Jim Melton From: On Behalf Of Elmore's Sent: Monday, December 12, 2022 19:14 To:

Re: Import error using an OOT

2022-12-12 Thread Elmore's
I tried omitting the ./ and still get the same error. I thought ./ indicated the current directory. The .conf file is in the same directory as the .py file. I tried using read_file and got a MissingSectionHeaderError. Jim -- This email has been checked for viruses by AVG antivirus software.

Re: Import error using an OOT

2022-12-12 Thread Elmore Family
I changed the line as you requested. No difference. From: Cinaed Simson Sent: Monday, December 12, 2022 5:44 PM To: Elmore Family Cc: discuss-gnuradio@gnu.org Subject: Re: Import error using an OOT No I'm not. The ft8_qso.conf.is a data input file - or a yaml file - it is read by the p

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
ll in this same app. However, this is irrelevant since we are not talking about the same problem. Jim *From:* Cinaed Simson *Sent:* Monday, December 12, 2022 12:57 AM *To:* Elmore Family *Cc:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using an OOT The main method is defined beginning

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
:57 AM *To:* Elmore Family *Cc:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using an OOT The main method is defined beginning on line 216 and called 4 times on lines 36-39. And it appears the configparser is throwing the NoSectionError. Try commenting out line 36 to see if line 37 throw

Re: Import error using an OOT

2022-12-12 Thread Johannes Demel
talking about the same problem. Jim *From:* Cinaed Simson *Sent:* Monday, December 12, 2022 12:57 AM *To:* Elmore Family *Cc:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using an OOT The main method is defined beginning on line 216 and called 4 times on lines 36-39. And i

Re: Import error using an OOT

2022-12-12 Thread Elmore Family
this same app. However, this is irrelevant since we are not talking about the same problem. Jim From: Cinaed Simson Sent: Monday, December 12, 2022 12:57 AM To: Elmore Family Cc: discuss-gnuradio@gnu.org Subject: Re: Import error using an OOT The main method is defined beginning on line 216

Re: Import error using an OOT

2022-12-11 Thread Cinaed Simson
;)). But ‘main’ is a section in the ft8_qso.conf file. Why can’t it find ‘main’? Jim *From:* Cinaed Simson *Sent:* Sunday, December 11, 2022 8:52 PM *To:* Elmore Family *Cc:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using an OOT The problem appears to be in the python code   response.py

Re: Import error using an OOT

2022-12-11 Thread Elmore Family
8_qso.conf file. Why can’t it find ‘main’? Jim From: Cinaed Simson Sent: Sunday, December 11, 2022 8:52 PM To: Elmore Family Cc: discuss-gnuradio@gnu.org Subject: Re: Import error using an OOT The problem appears to be in the python code response.py - there is no 'main()' method.

Re: Import error using an OOT

2022-12-11 Thread Cinaed Simson
/python3.9/configparser.py", line 1149, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'main' Jim *From:* Cinaed Simson *Sent:* Sunday, December 11, 2022 12:15 AM *To:* discuss-gnuradio@gnu.org *Subject:* Re: Import error using a

Re: Import error using an OOT

2022-12-11 Thread Elmore Family
No section: 'main' Jim From: Cinaed Simson Sent: Sunday, December 11, 2022 12:15 AM To: discuss-gnuradio@gnu.org Subject: Re: Import error using an OOT Type python3 then enter import ft8 and see if it works. -- Cinaed On 12/9/22 18:33, Elmore's wrote: I have crea

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 la

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:

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&

Re: Import error using an OOT

2022-12-09 Thread Cinaed Simson
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 bu

Import error using an OOT

2022-12-09 Thread Elmore's
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}) callback