FAI/Debian 12 - Custom python package fails

Bob A <[email protected]>
Newsgroups gmane.linux.debian.fai
Message-ID <CALVR2a061u8fh539YoksUwk+vzjyiomby97kFUiFYQc9fOntPA@mail.gmail.com>
This may be off-topic. I have two custom python packages in a local
repository that I install using FAI. One package is working (python3-ifcfg)
fine while the other (python3-python-vxi11) fails.  If I install
python3-python-vxi11 after the system reboots, it will install successfully
without any errors.

During FAI I am getting the following errors (from fai.log):

Setting up python3-python-vxi11 (0.9-1) ...
  File "/usr/bin/py3compile", line 323, in <module>
    main()
  File "/usr/bin/py3compile", line 302, in main
    compile(files, version,
  File "/usr/bin/py3compile", line 185, in compile
    for fn, version_to_compile in filter_files(files, e_patterns, versions):
  File "/usr/bin/py3compile", 128, in filter_files
    for fpath in files:
  File "/usr/share/python3/debpython/files.py", line 71, in filter_public
   for fn in files:
  File "/usr/share/python3/debpython/files.py", line 53, in from_package
    raise Exception("cannot get content of %s" % package_name)
Exception: cannot get content of python3-python-vxi11

After I reboot the system, the package seems to be fine:
$ dpkg -l | grep vxi11
ii   python3-python-vxi11                         0.9-1
        all
      Python3 VXI-11 driver for controlling instruments over Ethern

If I purge the package and reinstall there are  no errors, warnings, or
exceptions.

This package was built using dh-python on a Debian 12 system.

Any suggestions?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.