E
E
Evgenia Satonina2021-09-04 16:50:22
Python
Evgenia Satonina, 2021-09-04 16:50:22

Krokozyabry when importing csv into woocomerc via python script. How to fix?

1. There is a script written in python.
The script does the following: it exports the file in csv to the woocomerc

2 site. There is a file in Google spreadsheets.
When I download it to my computer in .csv format, the script works, but everything is loaded on the site with crocozyabras...
If I change the encoding in the .csv file, the script stops working...

This is what it says -

File "F:\ooo\import_script.py", line 249, in <module>
    import_row(row)
  File "F:\ooo\import_script.py", line 236, in import_row
    parser = Parser(row)
  File "F:\ooo\import_script.py", line 21, in __init__
    (row['attribute_1_terms'] == 'rolik_slide') and
KeyError: 'attribute_1_terms'


What to do ?
How to make it so that everything is loaded with normal text ...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question