Comments (4)
You need to make changes as mentioned in #szechyjs/dsd#104
* make exitflag "extern" in dsd/include/dsd.h * declare "int exitflag = 0;" in dsd/src/dsd_main.h before the comp function
You can test its working after build by running "build/python/qa_dsd_block_ff_test.sh" It should report like this:
. ---------------------------------------------------------------------- Ran 1 test in 0.001s OK
I'm not convinced this is the solution. To me, this looks like an issue with the dsd module that's bundled with gr-dsd. Depending on path, dsd fails to import at all, and when it succeed, it fails to import the functions that it should. My guess is that qr-dsd seems to compile its own python library during build, which then isn't successfully loaded into the python runtime.
rootabeta@netrunner ~/Tools/gr-dsd/python ‹master›
$ python3 qa_dsd_block_ff.py
Traceback (most recent call last):
File "/home/rootabeta/Tools/gr-dsd/python/qa_dsd_block_ff.py", line 12, in <module>
from dsd import dsd_block_ff
ModuleNotFoundError: No module named 'dsd'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/rootabeta/Tools/gr-dsd/python/qa_dsd_block_ff.py", line 18, in <module>
from dsd import dsd_block_ff
ModuleNotFoundError: No module named 'dsd'
from gr-dsd.
You need to make changes as mentioned in #szechyjs/dsd#104
- make exitflag "extern" in dsd/include/dsd.h
- declare "int exitflag = 0;" in dsd/src/dsd_main.h before the comp function
You can test its working after build by running "build/python/qa_dsd_block_ff_test.sh"
It should report like this:
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
from gr-dsd.
Easily solvable by running:
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/"
Instead of cmake ..
.
from gr-dsd.
I had same issue. I set name of project to "dsd". So when i run it i get dsd.py created and import dsd will import it istead of correct module. From what I see your file name is also dsd.py
Create new project and name it differently.
from gr-dsd.
Related Issues (17)
- Make DSD options configurable
- cmake issue HOT 4
- No module named dsd_swig HOT 1
- Segmentation fault when compiling HOT 2
- I need to add liborc-0.4-dev package to built at kubuntu 20
- gr-dsd ported to GNU Radio 3.10 HOT 1
- Fix compiler warnings
- Building error on Debian with GR3.9 HOT 2
- A recommendation
- error: 'make_block_sptr' is not a member of 'gnuradio' HOT 1
- Add sample GRC & Python code
- Fixed-length audio buffer should be replaced
- Audio underruns
- Just a heads-up HOT 13
- Does not compile on OSX HOT 11
- Running multiple instance with GR3.7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gr-dsd.