Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular import problems #104

Open
radio-satellites opened this issue Aug 23, 2024 · 4 comments
Open

Circular import problems #104

radio-satellites opened this issue Aug 23, 2024 · 4 comments

Comments

@radio-satellites
Copy link

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)
@tapparelj
Copy link
Owner

Hello @radio-satellites,
I can't reproduce this error. Does it happen when you try to run a specific flowgraph?
If yes, could you share it here such that I can try on my side?

@radio-satellites
Copy link
Author

@tapparelj sorry for the late reply! I didn't see it in time.

Nope, this is in general when I try to run any flowgraph with lora_sdr in it. I'm running on Fedora 40.

@LuccoJ
Copy link

LuccoJ commented Sep 24, 2024

Same here, also with Fedora 40, with gr-lora_sdr installed in /usr/local.

@radio-satellites
Copy link
Author

This is almost definitely a Fedora issue, I've never had that in Ubuntu or Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants