Giter Site home page Giter Site logo

Comments (4)

rootabeta avatar rootabeta commented on July 20, 2024 1

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/pythonmaster› 
$ 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.

g1nsj0h4n avatar g1nsj0h4n commented on July 20, 2024

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.

lonyelon avatar lonyelon commented on July 20, 2024

Easily solvable by running:

cmake .. -DCMAKE_INSTALL_PREFIX="/usr/"

Instead of cmake ...

from gr-dsd.

antonyenergy2 avatar antonyenergy2 commented on July 20, 2024

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)

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.