|
From: | Ryan Volz |
Subject: | Re: Success : Build OOT module for conda install |
Date: | Thu, 30 Jan 2025 19:19:43 -0500 |
User-agent: | Mozilla Thunderbird |
Hi Ralf,I was able to build it myself after a couple changes, and I was also able to run your example flowgraph (I did not test for functionality, however). Check out
https://github.com/ryanvolz/gr-dl5euI've just kicked off some CI package builds there, so by the time you see this you'll be able to tell if it works for other platforms as well.
Since I imagine you'll be doing some more development and would want to keep packages updated as you change things, after we see if this works I can help set up CI builds and package uploads to anaconda.org from your own repository.
Cheers, Ryan On 1/30/25 1:50 PM, Ralf Gorholt wrote:
Sorry, I have clicked the SEND button too fast... Hi Ryan, thank you very much for your support. My module is available at https://github.com/dl5eu/gr-dl5eu. There isn't any readme file yet but I will provide this later when everything works. Just a short description of what my module does. Currently gr-dl5eu contains two blocks that could improve DVB-T reception with GNU Radio. The first one, dvbt_ofdm_synchronization, is based on Federico La Rocca's block for ISDB-T but adapted for DVB-T. The second one, dvbt_tps_decoder, is based on Federico's TMCC decoder and decodes the TPS carriers in the DVB-T signal coming from the dvbt_ofdm_synchronization block. The TPS decoder is able to send messages containing the transmission parameters to other blocks (could be useful). To all who might be interested in my work: please note that I have only very, very little knowledge in DSP and GNU radio and that I have only partially understood how the original blocks work. So, please excuse meif I can't answer your questions. Nevertheless I will of course try to help.Please also note that this is my very first work that I release to the public and I have currently no idea if it corresponds to the (written or non-written) rules :-) My aim is to build and install the module on Linux as well as Windows (because friends of mine who would like to test are "Windows only"). Thank you very much and best regards from East Frisia :-) Ralf, DL5EU Am 30.01.2025 um 18:03 schrieb Ryan Volz:Hi Ralf, Do you have your code/packaging publicly available somewhere that I can look at? I'd be happy to support your aims of making a package available for others to use, even to the point of including it in the next radioconda release if that's appropriate. I think there's potentially a couple problems that you're running into. 1. The package that you've created still has issues (e.g. finding the module blocks). This is where seeing exactly what you're doing can help me to debug. 2. You're building on Linux and want to also create a Windows package. This is where you would probably need to take advantage of public build infrastructure to make your package, after you've got it working locally. What I do to solve (2) is either make a package for conda-forge (preferred) or build the packages out of a GitHub repository using GitHub Actions CI. You can find examples of the latter in the "radioconda" organization: https://github.com/radioconda Particularly, these are OOT modules with repositories containing a .conda directory with packaging information. See e.g. my gr-radar repository for a concrete example: https://github.com/radioconda/gr-radar/tree/conda/.conda Cheers, Ryan On 1/30/25 11:25 AM, Ralf Gorholt wrote:Hey Marcus, I know, but I normally prefer asking only questions that I really can't answer myself and when I find the solution after having asked the question I can imagine that some of you might find this annyoing :-) However, I still have a problem with my module. On my Linux system everything is fine. cmake config, build and install works. Unfortunately friends of mine that would like to test it are "Windows only" and need something simple to install. That's the reason why I need a package for a conda environment, preferably radioconda, because radioconda contains all necessary packages out-of-the-box. My module now builds on miniforge3 (with conda-build) and I can install it in a freshly installed radioconda environment on a different PC. However, when I start the flowgraph, I get an error message telling me that the block(s) in my module cannot be found: Traceback (most recent call last): File "C:\Projekte\GNURadio\dvbt_rx_rtlsdr.py", line 409, in <module> main() File "C:\Projekte\GNURadio\dvbt_rx_rtlsdr.py", line 387, in main tb = top_block_cls() ^^^^^^^^^^^^^^^ File "C:\Projekte\GNURadio\dvbt_rx_rtlsdr.py", line 273, in __init__ self.dl5eu_dvbt_tps_decoder_0 = dl5eu.dvbt_tps_decoder(dtv.T2k, True) ^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'gnuradio.dl5eu' has no attribute 'dvbt_tps_decoder' The same applies to the second block in my module. Perhaps someone who has experience with (radio)conda on Windows can give me a hint? I hesitate to delete and reinstall my development environment and start from scratch ;-) Regards, Ralf Am 30.01.2025 um 16:02 schrieb Marcus Müller:Hey Ralf, don't apologize for asking the mailing list! That's desirable, and especially explaining what you did to resolve the issue makes the mailing list more valuable every day. Thank you! Best, Marcus On 1/28/25 8:32 PM, Ralf Gorholt wrote:Hi, once again (sorry for that), please ignore my previous emails. After having cleaned up everything properly I can build my module package now. Strange, there must have been something left from my previous attempts to build the module somewhere in my gnuradio environment in conda that prevented conda from building the package correctly. Regards, Ralf
[Prev in Thread] | Current Thread | [Next in Thread] |