Fdroid lint error: CRITICAL: No such package: appid

  • installed fdroidserver on debian.
  • i added two spaces at the end of description. i was hoping it will trigger lint error.
  • my steps:
    • cd fdroiddata
    • cd metadata
    • nano org.shadowice.flocke.andotp.yml
    • git commit -a -m “added two spaces at end of first line description”
  • errors:
2023-07-21 00:45:29,997 CRITICAL: No such package: org.shadowice.flocke.andotp.yml
CRITICAL: Found invalid appids in arguments
fdroid lint -v org.shadowice.flocke.andotp.yml
2023-07-21 00:51:53,065 DEBUG: ipfs_cid not found, skipping CIDv1 generation
2023-07-21 00:51:53,079 CRITICAL: No such package: org.shadowice.flocke.andotp.yml
Traceback (most recent call last):
  File "/usr/bin/fdroid", line 33, in <module>
    sys.exit(load_entry_point('fdroidserver==2.2.1', 'console_scripts', 'fdroid')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/__main__.py", line 211, in main
    mod.main()
  File "/usr/lib/python3/dist-packages/fdroidserver/lint.py", line 732, in main
    allapps = metadata.read_metadata(options.appid)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/metadata.py", line 572, in read_metadata
    metadatafiles = common.get_metadata_files(vercodes)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/common.py", line 756, in get_metadata_files
    raise FDroidException(_("Found invalid appids in arguments"))
fdroidserver.exception.FDroidException: Found invalid appids in arguments
fdroid lint --force-yamllint -W error -f -v  org.shadowice.flocke.andotp.yml
2023-07-21 01:01:39,100 DEBUG: ipfs_cid not found, skipping CIDv1 generation
2023-07-21 01:01:39,130 CRITICAL: No such package: org.shadowice.flocke.andotp.yml
Traceback (most recent call last):
  File "/usr/bin/fdroid", line 33, in <module>
    sys.exit(load_entry_point('fdroidserver==2.2.1', 'console_scripts', 'fdroid')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/__main__.py", line 211, in main
    mod.main()
  File "/usr/lib/python3/dist-packages/fdroidserver/lint.py", line 732, in main
    allapps = metadata.read_metadata(options.appid)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/metadata.py", line 572, in read_metadata
    metadatafiles = common.get_metadata_files(vercodes)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/fdroidserver/common.py", line 756, in get_metadata_files
    raise FDroidException(_("Found invalid appids in arguments"))
fdroidserver.exception.FDroidException: Found invalid appids in arguments
  • what am i doing wrong
  • mc search results shows .yml file.
  • fdroid rewritemeta appid _shows same message
  • how do i inform fdroid lint?
. /etc/profile
export PATH="$fdroidserver:$PATH" PYTHONPATH="$fdroidserver"

does adding above can be adapted as given @ Submitting to F-Droid Quick Start Guide installed fdroidserver from debian repo.

It seems you run fdroidserver in the metadata folder? Please cd 1 level up and try again.

no change

:~/fdroiddata$ fdroid lint org.shadowice.flocke.andotp.yml
2023-07-21 05:04:59,603 CRITICAL: No such package: org.shadowice.flocke.andotp.yml
2023-07-21 05:04:59,611 CRITICAL: Found invalid appids in arguments

fdroid lint org.shadowice.flocke.andotp

removing .yml will partly resolve issue, moreover it is scanning yml file on master but not branch

~/fdroiddata$ fdroid lint -f org.shadowice.flocke.andotp
2023-07-21 05:10:36,741 CRITICAL: '4' is not a valid Archive Policy in org.shadowice.flocke.andotp. Regex pattern: ^[0-9]+ versions$
  • branch is ok
$ git branch -vv
* master                            cff65d1ef8 [origin/master] Update CurrentVersion of Image Toolbox (Resizer) to 2.2.0 (75)
  sec_228+1_jul212023_archivedrepos 80a790764b lint error

Use fdroidserver from git master. See CONTRIBUTING.md · master · F-Droid / Data · GitLab

Ok, i will remove existing debian package & try installation pip method…

@linsui pip installation should be run as user NOT root, am i correct?

Yes. You can also use a venv so that the packages are installed locally.

Created issue for installation failure @ pip installation failure (#1148) · Issues · F-Droid / fdroidserver · GitLab

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.