It seems as though nvtake myprogram=1.0.0 and nvchecker disagree on what the format of the old_ver.json should be: a string or an object. The next time I run nvchecker, it cannot parse the version, and instead crashes with a TypeError.
Steps
Note: Neither old_ver.json nor new_ver.json exist at this point.
Traceback (most recent call last):
File "/usr/bin/nvchecker", line 8, in
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/nvchecker/main.py", line 75, in main
oldvers = core.read_verfile(options.ver_files[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/nvchecker/core.py", line 149, in read_verfile
v = {k: RichResult(a) for k, a in v['data'].items()}
^^^^^^^^^^^^^^^
TypeError: nvchecker.util.RichResult() argument after must be a mapping, not str
sys:1: RuntimeWarning: coroutine 'BaseWorker._run_maynot_raise' was never awaited
### Other notes
I have installed nvchecker from Arch Linux repos, but I can also reproduce this with a venv, installed this way.
It seems as though
nvtake myprogram=1.0.0
andnvchecker
disagree on what the format of the old_ver.json should be: a string or an object. The next time I run nvchecker, it cannot parse the version, and instead crashes with a TypeError.Steps
Note: Neither old_ver.json nor new_ver.json exist at this point.
[linux] source = "github" github = "torvalds/linux"
Traceback (most recent call last): File "/usr/bin/nvchecker", line 8, in
sys.exit(main())
^^^^^^
File "/usr/lib/python3.12/site-packages/nvchecker/main.py", line 75, in main
oldvers = core.read_verfile(options.ver_files[0])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/nvchecker/core.py", line 149, in read_verfile
v = {k: RichResult(a) for k, a in v['data'].items()}
^^^^^^^^^^^^^^^
TypeError: nvchecker.util.RichResult() argument after must be a mapping, not str
sys:1: RuntimeWarning: coroutine 'BaseWorker._run_maynot_raise' was never awaited
python -m venv ~/nvchecker-venv cd ~/nvchecker-venv source ./bin/activate pip install nvchecker
work around cert location issue with bundled libcurl.so... shrug
pip uninstall pycurl pip install pycurl --no-binary :all: