Package: lyx
Version: 2.2.3-4
Severity: serious
Control: affects -1 src:ngspice

Hi,

while rebuilding non-free I noticed that ngspice started to FTBFS with
som lyx python errors in the logfile:

[...]
+Indexing TeX files... 
  File "/usr/share/lyx/scripts/TeXFiles.py", line 112
    print(root.replace('\\', '/') + '/' + file, file=out)
                                                    ^
SyntaxError: invalid syntax

        done
+checking list of modules...
[...]
LyX: Done!
Warning: An error ocurred in 490, <function convert_origin at 0x7f74677881b8>
Traceback (most recent call last):
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 88, in <module>
    main()
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 82, in main
    doc.convert()
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 586, in convert
    conv(self)
  File "/usr/share/lyx/lyx2lyx/lyx_2_2.py", line 1177, in convert_origin
    origin = str(origin, sys.getfilesystemencoding())
TypeError: str() takes at most 1 argument (2 given)
Error: Conversion script failed
----------------------------------------
/build/ngspice-27/build/manual/manual.lyx is from an older version of LyX and 
the lyx2lyx script failed to convert it.
LyX failed to load the following file: /build/ngspice-27/build/manual/manual.lyx
debian/rules:83: recipe for target 'build-indep' failed
make: [build-indep] Error 1 (ignored)
cd build/manual && lyx -userdir ./.lyx -batch --export pdf2 manual.lyx 
Warning: An error ocurred in 490, <function convert_origin at 0x7ffa2f06e1b8>
Traceback (most recent call last):
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 88, in <module>
    main()
  File "/usr/share/lyx/lyx2lyx/lyx2lyx", line 82, in main
    doc.convert()
  File "/usr/share/lyx/lyx2lyx/LyX.py", line 586, in convert
    conv(self)
  File "/usr/share/lyx/lyx2lyx/lyx_2_2.py", line 1177, in convert_origin
    origin = str(origin, sys.getfilesystemencoding())
TypeError: str() takes at most 1 argument (2 given)
Error: Conversion script failed
----------------------------------------
/build/ngspice-27/build/manual/manual.lyx is from an older version of LyX and 
the lyx2lyx script failed to convert it.
LyX failed to load the following file: /build/ngspice-27/build/manual/manual.lyx
debian/rules:83: recipe for target 'build-indep' failed
make: [build-indep] Error 1 (ignored)
[...]
cp -a /build/ngspice-27/build/manual/*.png \
        /build/ngspice-27/debian/tmp/usr/share/doc/ngspice-doc/html
cp: cannot stat '/build/ngspice-27/build/manual/*.png': No such file or 
directory
debian/rules:125: recipe for target 'install-indep' failed
make: *** [install-indep] Error 1
[...]

If that is actually an error in ngspice, feel free to reassign
the bug there.


Andreas

Attachment: ngspice_27-1.log.gz
Description: application/gzip

Reply via email to