FAI/Debian 12 - Custom python package fails

Bob A buhahbuh at gmail.com
Fri Jun 16 19:06:30 CEST 2023


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20230616/90bc1047/attachment.html>


More information about the linux-fai mailing list