Traceback (most recent call last):
File "cat_records.py", line 81, in <module>
sys.exit(main())
File "cat_records.py", line 53, in main
records = read_records(f)
File "cat_records.py", line 35, in read_records
contents = file.read().splitlines()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 1540: ordinal not in range(128)
locale
on terminal, show outputLANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
# dpkg-reconfigure locales
. /etc/profile
update-locale LANG=en_US.utf8
on debianLANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
. /etc/profile
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
cat /etc/default/locale
plsenv
pleasepython3 cat_records.py blm.dtb BlmapChill_record.dtb
Traceback (most recent call last):
File "cat_records.py", line 81, in <module>
sys.exit(main())
File "cat_records.py", line 53, in main
records = read_records(f)
File "cat_records.py", line 36, in read_records
return [Record.parse(c) for c in chunks(contents, 3)]
File "cat_records.py", line 36, in <listcomp>
return [Record.parse(c) for c in chunks(contents, 3)]
File "cat_records.py", line 23, in parse
time = Decimal(lines[1])
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
python -m pdb <command>
python -m pdb cat_records.py blm.dtb BlmapChill_record.dtb
Traceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "cat_records.py", line 68
print(entry.unparse(), end="")
^
SyntaxError: invalid syntax
python3 …
> output.db
python script.py param1 param2 > output.dtb