FAI/Debian 12 - Custom python package fails

tt-fai at kky.ttu.ee tt-fai at kky.ttu.ee
Mon Jun 19 11:44:35 CEST 2023


You may try to install the package manually from FAI prompt (second console, before the system reboots), or by ssh’ing into the system (add sshd to FAI_FLAGS if not there already). This way you may be able to debug the situation.

 

BR,
Toomas

 

From: linux-fai <linux-fai-bounces at uni-koeln.de> On Behalf Of Bob A
Sent: reede, 16. juuni 2023 20:07
To: fully automatic installation for Linux <linux-fai at uni-koeln.de>
Subject: FAI/Debian 12 - Custom python package fails

 

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/20230619/02bf56eb/attachment.html>


More information about the linux-fai mailing list