Tuesday, October 1, 2024

Re: unable to execute new installation

The script now executes from the terminal but still not from the GUI.

However, the version that executes is the old 3.9.4.0 not the 3.10.11 that I
installed. Following is the result of execution from the terminal:

pi@raspberrypi:~ $ cd gnuradio/grc/scripts
pi@raspberrypi:~/gnuradio/grc/scripts $ python3 gnuradio-companion
Running from source tree
Could not retrieve GNU Radio configuration directory from GNU Radio. Trying
defaults.
Could not retrieve GNU Radio persistent state directory from GNU Radio.
Trying defaults.
Using legacy state path '/home/pi/.grc_gnuradio'. Please consider moving
state files to '/home/pi/.local/state/gnuradio'.
No section: 'main'
No section: 'main'
No section: 'main'
>>> Warning: vocoder_codec2_decode_ps - option_attributes are for enums
>>> only, ignoring
>>> Warning: vocoder_codec2_encode_sp - option_attributes are for enums
>>> only, ignoring
<<< Welcome to GNU Radio Companion 3.9.4.0 >>>

Block paths:
/home/pi/.grc_gnuradio
/usr/local/share/gnuradio/grc/blocks
/usr/share/gnuradio/grc/blocks

Loading: "/home/pi/Softrock/Softrock_FT8.grc"
>>> Done

Loading: "/home/pi/Softrock/softrock_QT.grc"
>>> Done

Loading: "/home/pi/Softrock/Receive.grc"
>>> Done

Loading: "/home/pi/Softrock/FT8_Transmit.grc"
>>> Done

Loading: "/home/pi/Softrock/Transmit_CESSB.grc"
>>> Done

I don't understand what is happening.
How can I execute the new version and also how can I get the GUI to execute
it at all?
Have I somehow installed it in the wrong place? I have never before
installed from source - I always installed using apt-get install.
Does the old version need to be uninstalled? If so, how do I do that?

I used the instructions "InstallingGRFromSource on Raspberry Pi" from the
Wiki.

Jim

-----Original Message-----
From: Volker Schroer
Sent: Monday, September 30, 2024 4:35 PM
To: Elmore Family
Cc: Chris Gorman ; GNURadio Discussion List
Subject: Re: unable to execute new installation

There is a typo in #7513, the correct fix is #7514

> Am 30.09.2024 um 18:28 schrieb Elmore Family <wa4ywm@comcast.net>:
>
> Thanks for the info Chris.
>
> Now my result is as follows: (Note: the only change is in the last 2 lines
> of the message)
>
> Running from source tree
> Could not retrieve GNU Radio configuration directory from GNU Radio.
> Trying defaults.
> Could not retrieve GNU Radio persistent state directory from GNU Radio.
> Trying defaults.
> Traceback (most recent call last):
> File "/home/pi/gnuradio/grc/main.py", line 229, in get_state_directory
> from gnuradio.gr import paths
> ImportError: cannot import name 'paths' from 'gnuradio.gr'
> (/usr/lib/python3/dist-packages/gnuradio/gr/__init__.py)
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
> File "/home/pi/gnuradio/grc/scripts/gnuradio-companion", line 103, in
> <module>
> run_main()
> File "/home/pi/gnuradio/grc/scripts/gnuradio-companion", line 96, in
> run_main
> sys.exit(main())
> File "/home/pi/gnuradio/grc/main.py", line 297, in main
> log_file = os.path.join(get_state_directory(), "grc.log")
> File "/home/pi/gnuradio/grc/main.py", line 250, in get_state_directory
> f"files to '{xdgand}'.")
> NameError: name 'xdgand' is not defined
>
> Jim
>
> -----Original Message----- From: Chris Gorman
> Sent: Monday, September 30, 2024 9:07 AM
> To: Elmore Family
> Cc: GNURadio Discussion List ; Volker Schroer
> Subject: Re: unable to execute new installation
>
> Hello Jim,
>
> Volker is referring to a github pull request (bug fix). You can find
> his bug report number 7513 at
> https://github.com/gnuradio/gnuradio/pull/7513 .
>
> Best regards,
>
> Chris
>
>
>
>> On Sun, Sep 29, 2024 at 9:06 PM Elmore Family <wa4ywm@comcast.net> wrote:
>>
>> What does 7513 refer to? How do I find it?
>>
>> -----Original Message-----
>> From: Volker Schroer
>> Sent: Saturday, September 28, 2024 11:22 AM
>> To: GNURadio Discussion List
>> Subject: Re: unable to execute new installation
>>
>> Please stay on the list.
>>
>>
>> First:
>>
>> File "/home/pi/gnuradio/grc/main.py", line 250, in get_state_directory
>> f"files to '{newpath}'.")
>> UnboundLocalError: local variable 'newpath' referenced before assignment
>>
>> is definitely a bug in the python code.
>>
>> I proposed a fix. See #7513 on github.
>>
>> This pr may not fix the reason of your problems, but you should get a
>> better error message.
>>
>> What is the result of
>>
>> gnuradio-config-info --prefix
>>
>> Why do you start gnuradio-companion from the source tree and not from
>> the install directory?
>>
>>
>> Am 28.09.24 um 15:06 schrieb Elmore's:
>> > I did perform the install command and I thought it worked. You also say
>> > this is a bug. Thus I am confused.
>> > Sent from my iPhone
>>
>>
>>
>> --
>> This email has been checked for viruses by AVG antivirus software.
>> www.avg.com
>>
>>
>
> --
> This email has been checked for viruses by AVG antivirus software.
> www.avg.com

No comments:

Post a Comment