D-Rats icon indicating copy to clipboard operation
D-Rats copied to clipboard

Difficulties starting D-Rats 0.4.0 from Ubuntu Linux

Open dslotter opened this issue 2 years ago • 2 comments

What's the proper way to run D-Rats 0.4.0 from Linux now? Is this it? If not, please advise.

  1. git clone the repository to a writable directory2. cd to D-Rats directory3. Run ./setup.py build4. Run sudo ./setup.py install5. Run installed D-Rats from Application Launcher.

I tried this and get "ModuleNotFoundError: no module named 'd_rats'". What I am discovering, when inspecting the filesystem is that I am running Python 3.10 and the directory /usr/local/lib/python3.10/dist-packages/ doesn't have the "d_rats" directory contained within. This appears to be an installer misfire?

I did discover I can run D-Rats directly from the git clone directory, however, without running setup.py. While this "works" and I can run D-Rats and connect to gaares.ratflector.com and gwinnettares.ratflector.com, I don't believe this is the "right" way to run D-Rats.

dslotter avatar Mar 27 '23 00:03 dslotter

The python package maintainers have deprecated the setup.py as an installer, and instead say to use other installers that do not have all the features, like supporting embedded data like the D-Rats forms, etc. The most common one seems to be pyproject.toml which is what D-Rats is now using.

Running setup.py on d-rats is not going to do anything useful for end users, and it will be removed as soon as I find a way to completely remove it. I am not sure that it is even used in the packaging process. If setup.py is used at all, it is only used in part of the procedure to build a pip installable package.

D-Rats can be run from a copy of a git checkout, or the [pre-]release tarballs can be installed with Pip, taking the appropriate precautions with using Pip.

I would like to create Debian and rpm packaging for D-Rats, it is just been a matter of not having enough time. The lzhuf project has the templates for making Debian packages. The hardest part of modiying them is automating getting the Debian Changelog file updated with an accurate version number.

wb8tyw avatar Mar 30 '23 13:03 wb8tyw

Related:

  • https://github.com/ham-radio-software/D-Rats/issues/113
  • https://github.com/ham-radio-software/D-Rats/issues/162

wb8tyw avatar Apr 02 '23 18:04 wb8tyw