Re: Import error using an OOT

2022-12-12 Thread Elmore Family
You are confusing main() in run_response.py with the ‘main’ section in ft8_qso.conf. parser.get in line 36 is looking for the ‘main’ section but throws the NoSectionError. Why can’t the parser see the ‘main’ section? When I said I have run an OOT before, I meant another OOT which runs well in

Re: Import error using an OOT

2022-12-12 Thread Johannes Demel
Hi all, it looks like there's a path issue. In line 34 in "run_response.py" you do ``` parser.read('./ft8_qso.conf') ``` There's a good chance, that you did not load this file. I assume this is: https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.read > If none of the

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
No I'm not. The ft8_qso.conf.is a data input file - or a yaml file - it is read by the python code. If there's a problem with the python code, the application will crash and burn regardless of the content of ft8_qso.conf. If you change the the top line in the file   run_response.py code f

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
Opps - ft8_qso.conf is not a yaml file - it's just a  nonexcutable data file which the python code parses. -- Cinaed On 12/12/22 14:44, Cinaed Simson wrote: No I'm not. The ft8_qso.conf.is a data input file - or a yaml file - it is read by the python code. If there's a problem with the py

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 python cod

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: Re: Import error using an OOT

2022-12-12 Thread Jim Melton
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 evaluate import _expression_ 'import ft8' This error is very clear. Python was not able to import your ft8 mo

Re: Import error using an OOT

2022-12-12 Thread Cinaed Simson
I'm not surprised the OOT doesn't work. When running   run_response.py using python2 (or python), it tries to run swig which won't work under gnuradio 3.9 on bullseye. Here's the error from running    run_response.py running under python2:    from .runtime_swig import *    File "/opt/gnu