Git Product home page Git Product logo

Comments (12)

SteveBz avatar SteveBz commented on May 27, 2024

Hi Apostolos,

I tested a number of options:

gnuradio3.7 does not have a release candidate for ubuntu 20.04, or at least it fails to add.
gnuradio3.8 produces a different error (see below) and might be easier to fix.
gnuradio3.9.5 produces the above error and seems to install gnuradio3.8.
gnuradio3.10 also produces the above error and seems to install gnuradio3.8.

built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp 
[INFO] [UHD] linux; GNU C++ version 9.2.1 20200304; Boost_107100; UHD_3.15.0.0-2build5
Found Rafael Micro R820T tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
[R82XX] PLL not locked!
Traceback (most recent call last):
  File "test.py", line 25, in <module>
    virgo.observe(obs_parameters=obs, obs_file='observation.dat')
  File "/home/image/.local/lib/python3.8/site-packages/virgo/virgo.py", line 558, in observe
    observation.start()
  File "/usr/lib/python3/dist-packages/gnuradio/gr/top_block.py", line 111, in start
    top_block_start_unlocked(self._impl, max_noutput_items)
  File "/usr/lib/python3/dist-packages/gnuradio/gr/runtime_swig.py", line 4832, in top_block_start_unlocked
    return _runtime_swig.top_block_start_unlocked(r, max_noutput_items)
RuntimeError: list contains invalid format!

It uses that file top_block.py in gr, but I see there is already one in virgo, plus a top_block_old.py. Should it be using that one? I'm not sure how to direct it, apart from copying the top_block.py in virgo over the one in the gr directory.

Maybe I'll try.

Kind regards

Steve.

from virgo.

0xCoto avatar 0xCoto commented on May 27, 2024

Hi Steve, is this a continuation of the previous issue you opened, or separate? Could you please check if the issue might be related to this and let me know of your suspicion: #7

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

No it's much better without a venv. They are not related.

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

The two different error messages, ie the the ones in 3.9.5 & 3.10 look like 7.

But the error when I install 3.8 as 3.8 doesn't look like a serious error. It looks like an installation or version error.

I think if I hacked it it would work. I'll try.

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

No, the hack didn't work. It made it worse. Sorry.

from virgo.

0xCoto avatar 0xCoto commented on May 27, 2024

Hmm. I haven't really tried using gr in virtual environments. It is picky about which python version you use to run virgo though (it should match gr's version). I'd first try outside of the virtual environment. What error does it yield, and what GR version are you using? I'd suggest settling on 3.8 or 3.9. The issue described in #7 has an easy fix (just change a property in the flowchart and recompile). Have you had any past experiences with running GR, or is this your first time?

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

It's my first time with GR. Can you give me some easy instructions to fix the compile bug you mention, please? I'll reinstall and do that.

Kind regards

Steve

PS I think the venv issue is caused by the fact that gr isn't installed by pip and the python components therefore aren't copied to the venv directory.

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

Hmm. I haven't really tried using gr in virtual environments. It is picky about which python version you use to run virgo though (it should match gr's version). I'd first try outside of the virtual environment. What error does it yield, and what GR version are you using? I'd suggest settling on 3.8 or 3.9. The issue described in #7 has an easy fix (just change a property in the flowchart and recompile). Have you had any past experiences with running GR, or is this your first time?

Hi Apostolos,

I'm not clear what this means.

Are you saying that I can rebuild the pipeline with gnu-radio companion and it will work?

How do I do that? Is that what the grc files are?

Please be a little less Socratic in your teaching methods 😁

Kind regards.

Steve.

from virgo.

0xCoto avatar 0xCoto commented on May 27, 2024

Let's try to re-install everything from the beginning. Could you uninstall everything GR and Virgo-related installations and follow the few commands listed here? https://virgo.readthedocs.io/en/latest/installation.html

They should work fine for Ubuntu. You can verify the installation of Virgo by running:

python -c "import virgo" (no output indicates a successful installation).

I'd advise not working with virtual environments for now, because GNU Radio tends to get quite sensitive with which Python you use etc.

Once all the commands have been successfully run and everything has been installed, run gnuradio-companion from the terminal. Does the GUI interface open up normally?

Could you try following a very basic example test for your SDR (using blocks SDR Source -> QT Sink) to verify GNU Radio interfaces with your device properly? Here's a video to guide you: https://youtu.be/aG1j6Fyyc8A

No need to run anything complex, just enough to ensure the signal picked up by your SDR can be seen by GNU Radio.

Once that's all verified, we can begin looking into interfacing GR with Virgo on your machine. 🙂

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

OK, All done. Seems to work.

Now if I look at the Virgo directory, I can see 2 .grc files. They both have the problem you describe. When I change the 'None' to 'String' the both compile to 'rub_observatory' Is that right? Which is the one I need?

In fact I'm battling with 2 problems at the moment, one is the RTL.SDR/Virgo problem there. The other one is how to attach the feedhorn, so in fact I'm still waiting for some bolts of the right size to arrive. When they do I'll send you a photo of the whole setup. Hopefully the radio will be sorted out too! 😃

Thanks for your help.

from virgo.

0xCoto avatar 0xCoto commented on May 27, 2024

After applying the fix to both files, rename the WOLA-compiled file to run_wola.py and the FTF-compiled file to run_ftf.py. They by default get compiled as the same name, which is poor code practice on my end.

If you can try running Virgo now using the same python, it should work. To figure out which python GR is using, you can click on the compile button within gnuradio companion and look at the log at the bottom left. It should display the version/path of the python being used to execute the compiled script.

from virgo.

SteveBz avatar SteveBz commented on May 27, 2024

OK, just tested it and it seems to work.
plot

I need to rename the files as you say. Great job, now I only need for the right size bolts to arrive in the post!! Thursday, apparently.

On a second point, how did you get Pictor to look so beautiful? It looks like you had a professional product designer, professional metal-worker, professional painter and then a professional photographer. Everything looks so aesthetically pleasing.

As I look around the web, I find that other people have had the same problem that I did with that 'recompile', and then even given up. I'll put together a few words and post them here so that maybe you can update the README. It was really such an easy thing once I understood!

Have a good day. Talk soon.

Kind regards

Steve.

from virgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.