gr-dvbs2rx icon indicating copy to clipboard operation
gr-dvbs2rx copied to clipboard

AttributeError: 'module' object has no attribute 'ldpc_decoder_cb'

Open SunaRiver opened this issue 6 years ago • 10 comments

AttributeError: 'module' object has no attribute 'ldpc_decoder_cb' I found this error when run this, please help.

SunaRiver avatar Nov 27 '19 06:11 SunaRiver

How did you install GNU Radio? You have to install gr-dvbs2rx into the same directory that you installed GNU Radio.

If you used apt-get to install, then GNU Radio is in /usr. To install gr-dvbs2rx into /usr, you have to set an install prefix with cmake. Like so:

cmake -DCMAKE_INSTALL_PREFIX=/usr

drmpeg avatar Nov 27 '19 07:11 drmpeg

I'm getting a similar error with dvbs2rx module, "ImportError: No module named dvbs2rx". I believe the solution is as you've mentioned with installation/pathing.

Note, I'm currently on a Windows 10 machine and GRC is installed at,

C:\Program Files\GNURadio-3.7

Does that mean I should place the gr-dvbs2rx at,

C:\Program Files\GNURadio-3.7\gr-dvbs2rx

I've tried placing it in a few different places without success. Let me know if you have any thoughts.

TheNageek avatar Jan 09 '20 18:01 TheNageek

I can't say I know anything about Windows installs. I would think C:\Program Files\GNURadio-3.7 would be the correct install directory.

drmpeg avatar Jan 09 '20 19:01 drmpeg

I have the same error: AttributeError: 'module' object has no attribute 'ldpc_decoder_cb' I do as described above. Here are my steps:

git clone https://github.com/drmpeg/gr-dvbs2rx cd gr-dvbs2rx cmake -DCMAKE_INSTALL_PREFIX=/usr make sudo make install sudo ldconfig

I use : Ubuntu 18.04.3 LTS GNU Radio Companion 3.7.11

Where is the mistake ?

AlexeyMyslivets avatar May 25 '20 07:05 AlexeyMyslivets

You need to use a build directory.

git clone https://github.com/drmpeg/gr-dvbs2rx cd gr-dvbs2rx mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr ../ make sudo make install sudo ldconfig

drmpeg avatar May 25 '20 10:05 drmpeg

Here is the result :

git clone https://github.com/drmpeg/gr-dvbs2rx cd gr-dvbs2rx mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/usr ../ make make: *** No targets specified and no makefile found. Stop.

AlexeyMyslivets avatar May 26 '20 07:05 AlexeyMyslivets

I'm getting the same error on Ubuntu 18.04 LTS and Arch Linux. -GNURadio 3.8.1.0 -Branch: maint-3.8

Location of GNURadio-companion is: /usr/bin/gnuradio-companion

I used cmake -DCMAKE_INSTALL_PREFIX=/usr ../ for installation. Whenever I start or execute the flowgraph I get AttributeError: module 'dvbs2rx' has no attribute 'ldpc_decoder_cb'

I'm stuck right now and happy about every hint in the right direction.

luvBuzz avatar Aug 19 '20 12:08 luvBuzz

Hey guys I had the same issue, has anyone solved it?

I managed to make dvbs2rx work by installing gnuradio 3.8 from source at /usr/local, same as dvbs2rx and everything works fine...

However, I need to run this code on a single processor core with python multiprocessing library. For that reason I need gnuradio 3.8 installed as superuser at

/usr

Has anyone solved this for /usr? Thanks to all

FJTor avatar Jun 08 '22 11:06 FJTor

@FJTor Have you tried cmake -DCMAKE_INSTALL_PREFIX=/usr ../ when building? That should work.

drmpeg avatar Jun 08 '22 21:06 drmpeg

Hi Ron,

First of all, thank you very much for your reply.

Yesterday afternoon I just solved superuser issue. Indeed, I tried

cmake -DCMAKE_INSTALL_PREFIX=/usr ../

The problem is that gnuradio installation does not include swig. Checking in the middle of cmake command output just found “no swig version found, so swig is skipped”. Once I apt-get install swig everything works fine.

My project aims to make a 512kbps modem, so It could fit. When trying for a lower bitrate and reading Igor’s github project I will inform you with progress.

Thank you again and regards Fran

De: Ron Economos @.> Enviado el: miércoles, 8 de junio de 2022 23:28 Para: drmpeg/gr-dvbs2rx @.> CC: Francisco Javier Toral @.>; Mention @.> Asunto: Re: [drmpeg/gr-dvbs2rx] AttributeError: 'module' object has no attribute 'ldpc_decoder_cb' (#7)

[External email] Do not click links or open attachment unless you validate the sender and know the content is safe.

@FJTorhttps://github.com/FJTor Have you tried cmake -DCMAKE_INSTALL_PREFIX=/usr ../ when building. That should work.

— Reply to this email directly, view it on GitHubhttps://github.com/drmpeg/gr-dvbs2rx/issues/7#issuecomment-1150432449, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZRHS3NIQ6GBB5FSBWQMF43VOEF7PANCNFSM4JSB7ITA. You are receiving this because you were mentioned.Message ID: @.@.>>


The content of this e-mail is strictly confidential. It is forbidden to share any part of this message with any third party without the prior written consent of SENER Group. If you received this message by mistake, please inform the sender and delete the e-mail.

FJTor avatar Oct 11 '22 08:10 FJTor