Re: csv2lyx.py not working with python3??

2023-03-08 Thread José Matos
On Wed, 2023-03-08 at 22:27 +0100, Pavel Sanda wrote: > I committed the patch for your convenience. Pavel Thank you. :-) -- José Abílio -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel

Re: csv2lyx.py not working with python3??

2023-03-08 Thread Pavel Sanda
On Tue, Mar 07, 2023 at 08:46:34AM +, José Matos wrote: > Simplest solution, remove all the 'rU' arguments for open in the > script. > > Rationale: 'r' is the read mode, default, 'U' is for the universal > newlines mode (for backwards compatibility; should not be used in new > code)

Re: csv2lyx.py not working with python3??

2023-03-07 Thread Neal Becker
On Mon, Mar 6, 2023 at 3:04 PM Neal Becker wrote: > python3 -tt /usr/share/lyx/scripts/csv2lyx.py > all_results-2023-03-06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > Traceback (most recent call last): > File "/usr/share/lyx/scripts/csv2lyx.py", line 170, in > input_file =

Re: csv2lyx.py not working with python3??

2023-03-07 Thread José Matos
On Mon, 2023-03-06 at 15:04 -0500, Neal Becker wrote: >  python3 -tt /usr/share/lyx/scripts/csv2lyx.py all_results-2023-03- > 06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > Traceback (most recent call last): >   File "/usr/share/lyx/scripts/csv2lyx.py", line 170, in >     input_file =

csv2lyx.py not working with python3??

2023-03-06 Thread Neal Becker
python3 -tt /usr/share/lyx/scripts/csv2lyx.py all_results-2023-03-06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx Traceback (most recent call last): File "/usr/share/lyx/scripts/csv2lyx.py", line 170, in input_file = "".join(open(infile,'rU').readlines())