[chirp_devel] Invalid version: 'py3dev' breaks build.

Barry Jackson
Wed Jan 25 10:49:37 PST 2023


Hi Dan,
Since our (Mageia) most recent python3 updates sometime this month 
chirp-next builds fail with:

packaging.version.InvalidVersion: Invalid version: 'py3dev'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
   File "/usr/lib/rpm/pythondistdeps.py", line 626, in <module>
     raise RuntimeError("Error: pythondistdeps.py generator encountered 
an unhandled exception and was terminated.") from exc
RuntimeError: Error: pythondistdeps.py generator encountered an 
unhandled exception and was terminated.
error: Dependency tokens must begin with alpha-numeric, '_' or '/': *** 
PYTHONDISTDEPS_GENERATORS_FAILED ***
Provides: application() application(chirp.desktop) chirp = 
1:0.4.0-0.20230101.1.mga
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 
rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: python(abi) = 3.10 python3.10dist(future) 
python3.10dist(pyserial) python3.10dist(requests) python3.10dist(six) 
python3.10dist(yattag)

/--------------------------------------

For now I have used:

  sed -i 's/py3dev/%{version}/' chirp/__init__.py

.. in our spec. to fix the above issue for our package.

Since you do not make releases it's difficult to decide on any sort of 
versioning that makes sense for our packages.

I use 0.4.0 as version and add the date from git into the release, which 
keeps our packages in order but means little outside of the distro. e.g. 
chirp-0.4.0-0.20230125.2

I really wish you actually made releases.

/OT
Today's package works fine with my test radio. (UV5RE) :)

Cheers,
Barry





More information about the chirp_devel mailing list