Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target csv not working with new tap #60

Open
munishase opened this issue Jul 10, 2019 · 0 comments
Open

target csv not working with new tap #60

munishase opened this issue Jul 10, 2019 · 0 comments

Comments

@munishase
Copy link

I created a simple tap as per the provided example and it worked. I am able to see the streams on my cmd prompt but when I am trying to target to excel then it is giving error.

Command I ran:-
python tap_country.py | path\singer\target\target-csv-master.virtualenvs\target-csv\Scripts\target-csv -c path\singer\target\target-csv-master\config.json

Error I am facing:-
Traceback (most recent call last):
File "C:\Users\munish.singla\Downloads\singer\target\target-csv-master.virtualenvs\target-csv\Scripts\target-csv-script.py", line 11, in
load_entry_point('target-csv==0.3.0', 'console_scripts', 'target-csv')()
File "c:\users\munish.singla\downloads\singer\target\target-csv-master.virtualenvs\target-csv\lib\site-packages\target_csv.py", line 147, in main
config.get('destination_path', ''))
File "c:\users\munish.singla\downloads\singer\target\target-csv-master.virtualenvs\target-csv\lib\site-packages\target_csv.py", line 89, in persist_messages
writer.writerow(flattened_record)
File "C:\Users\munish.singla\AppData\Local\Programs\Python\Python37\lib\csv.py", line 155, in writerow
return self.writer.writerow(self._dict_to_list(rowdict))
File "C:\Users\munish.singla\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 932-938: character maps to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant