gr-lora_sdr
gr-lora_sdr copied to clipboard
Circular import problems
Hello!
I feel like I have solved this issue before, but I'm not sure how to do it now. How do I resolve the circular import issue in lora_sdr/lora_sdr_lora_tx.py
and lora_sdr/lora_sdr_lora_rx.py
? The specific offending line is from . import lora_sdr_python as lora_sdr
.
Full error message is below.
Thanks!
File "/home/ve3svf/OS42GroundSoftware/DEMOD.py", line 27, in <module>
import gnuradio.lora_sdr as lora_sdr
File "/usr/local/lib/python3.10/site-packages/gnuradio/lora_sdr/__init__.py", line 24, in <module>
from .lora_sdr_lora_tx import lora_sdr_lora_tx
File "/usr/local/lib/python3.10/site-packages/gnuradio/lora_sdr/lora_sdr_lora_tx.py", line 16, in <module>
from . import lora_sdr_python as lora_sdr
ImportError: cannot import name 'lora_sdr_python' from partially initialized module 'gnuradio.lora_sdr' (most likely due to a circular import) (/usr/local/lib/python3.10/site-packages/gnuradio/lora_sdr/__init__.py)