On Thu, 2025-07-17 at 10:36 +0200, Scott Kostyshak wrote:
> With the following command:
> 
> cd "lib/templates/Articles/" &&
> lyx -e lyx21x Journal_of_the_Acoustical_Society_of_America_%28JASA%29.lyx
> 
> I get the following:
> 
> Traceback (most recent call last):
>   File "/home/scott/lyxbuilds/master-master/repo/lib/scripts/fen2ascii.py",
> line 23, in <module>
>     line=string.split(line,' ')[0]
>          ^^^^^^^^^^^^
> AttributeError: module 'string' has no attribute 'split'
> 
> Scott

My search foo is low, after 5 hours of a module on a Free Course on Python. :-D

IIRC string has lost the split method for some time.

the obvious solution is to change that line to

line = line.split()[0]

FWIW this code should work since python 2.0 release in 2000. :-D

Let me look into this. :-)
-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to