csv2lyx.py not working with python3??
Neal Becker
ndbecker2 at gmail.com
Tue Mar 7 12:20:03 UTC 2023
On Mon, Mar 6, 2023 at 3:04 PM Neal Becker <ndbecker2 at gmail.com> 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 <module>
> input_file = "".join(open(infile,'rU').readlines())
> ^^^^^^^^^^^^^^^^^
> ValueError: invalid mode: 'rU'
>
> python2 -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
> [silence...]
>
> It appears that changing the file mode from 'rU' to 'r' is all that is
needed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230307/ae8f1ad9/attachment.html>
More information about the lyx-devel
mailing list