Wednesday, August 30, 2023

Re: RuntimeError: invalid msg port in connect() or disconnect()

Hi Theo,

I assume this setup is part of a very old experiment that you want to
reboot. However, something must have changed since it's broken at the
moment.

It is very difficult to spot the issue without any context but just a
traceback.

The message itself tells you that you try to connect a message port
that's not an actual message port.

GRC generates a Python file for your flowgraph. In your case you also
have a hier block that receives a second Python file. The error happens
in there:
File "/home/theow/.grc_gnuradio/RX_SC_PHY.py", line 91, in __init__
self.msg_connect((self, 'time_per_angle_message'),
(self.theomodule_set_array_and_tt_RX_0, 'time_per_angle_message'))

This hier block is potentially called "RX_SC_PHY". You might want to
check what happened there.

Cheers
Johannes

On 29.08.23 15:28, theowire@web.de wrote:
> Hey everybody,
> I am currently facing the following error:
> Could not find port: time_per_angle_message in:
> system
> Traceback (most recent call last):
>   File "/home/theow/GNURadio/flowgraphs/transceiver_station_2.py", line
> 561, in <module>
>     main()
>   File "/home/theow/GNURadio/flowgraphs/transceiver_station_2.py", line
> 549, in main
>     tb = top_block_cls()
>   File "/home/theow/GNURadio/flowgraphs/transceiver_station_2.py", line
> 398, in __init__
>     usrp_tx_address="addr=192.168.10.4",
>   File "/home/theow/.grc_gnuradio/phy_transceiver.py", line 90, in __init__
>     threshold=detector_threshold,
>   File "/home/theow/.grc_gnuradio/RX_SC_PHY.py", line 91, in __init__
>     self.msg_connect((self, 'time_per_angle_message'),
> (self.theomodule_set_array_and_tt_RX_0, 'time_per_angle_message'))
>   File
> "/home/theow/60GHzDemo/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 59, in wrapped
>     func(self, src.to_basic_block(), srcport, dst.to_basic_block(),
> dstport)
>   File
> "/home/theow/60GHzDemo/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 131, in msg_connect
>     self.primitive_msg_connect(*args)
>   File
> "/home/theow/60GHzDemo/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 3586, in primitive_msg_connect
>     return _runtime_swig.hier_block2_sptr_primitive_msg_connect(self,
> *args)
> RuntimeError: invalid msg port in connect() or disconnect()
> I googled a lot, but I did not really find an answer to that problem...
> I am on an older setup with gnuradio 3.7 and ubuntu 16.04. I know for
> sure, that this setup was already working...so I am even more confused
> about that error.
> Would be very great if anyone had maybe a quick idea, how to solve this
> error. If you need any more information, I will gladly provide it.
> Thanks in advance,
> Theo

No comments:

Post a Comment