Open ErenUlucinar opened 5 months ago
If you haven't done it already, you need to build and install this out-of-tree module. I don't know what is the easiest way to do it in Windows. Maybe conda can be of help.
I solved this problem but this time I get an error message like that
File "d:\desktop\gr-ldpc-toolbox-main (1)\gr-ldpc-toolbox-main\examples\ldpc_simulation.py", line 279, in init self.ldpc_toolbox_ldpc_encoder_0 = ldpc_toolbox.ldpc_encoder(alist, puncturing, n, k) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'gnuradio.ldpc_toolbox' has no attribute 'ldpc_encoder'
How can I fix this?
Can you describe what you've done to change the error message that you get? If there is no ldcp_encoder
in the gnuradio.ldpc_toolbox
Python module, then gr-ldpc-toolbox is not installed correctly, so you haven't really solved the problem, just changed where the error happens (as an exaggeration, to get around the ModuleNotFoundError: No module named 'gnuradio.ldpc_toolbox.ldpc_toolbox_python'
error, you could probably create an empty ldpc_toolbox_python.py
file inside the appropriate directory, but this would accomplish nothing).
As I mentioned, you need to build this OOT module. For that you'll need to set up a C++ compiler and the Rust toolchain on your Windows machine.
I've addee the following part to the init.py file where I got the error.
try: from .ldpc_toolbox_python import * except ModuleNotFoundError: pass
Then, I uploaded the python files in the toolbox to the radioconda\Lib\site-packages\gnuradio\ldpc_toolbox folder.
By doing that you're simply ignoring the module not found error. So that doesn't really fix anything. Still you don't have Python bindings because you haven't built the OOT module.
When I tried to execute code in GNU Radio Windows Version I get an error like:
File "C:\Users\erenu\radioconda\Lib\site-packages\gnuradio\ldpc_toolbox__init__.py", line 21, in
from .ldpc_toolbox_python import *
ModuleNotFoundError: No module named 'gnuradio.ldpc_toolbox.ldpc_toolbox_python'