Skip to content

unicode decode error  #30

@suickers

Description

@suickers

No matter which text file I use, I get the same error:

C:\Users\pears\Desktop\macro etym>macroetym war-and-peace.txt
Traceback (most recent call last):
File "C:\Users\pears\AppData\Local\Programs\Python\Python39\Scripts\macroetym-script.py", line 33, in
sys.exit(load_entry_point('macroetym==0.1.2', 'console_scripts', 'macroetym')())
File "C:\Users\pears\AppData\Local\Programs\Python\Python39\Scripts\macroetym-script.py", line 25, in importlib_load_entry_point
return next(matches).load()
File "c:\users\pears\appdata\local\programs\python\python39\lib\importlib\metadata.py", line 77, in load
module = import_module(match.group('module'))
File "c:\users\pears\appdata\local\programs\python\python39\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 855, in exec_module
File "", line 228, in _call_with_frames_removed
File "c:\users\pears\appdata\local\programs\python\python39\lib\site-packages\macroetym\main.py", line 40, in
for line in csvreader:
File "c:\users\pears\appdata\local\programs\python\python39\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 7574: character maps to

what have I done wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions