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

UT Windows bug #201

Closed
ydoc5212 opened this issue Jul 20, 2021 · 4 comments
Closed

UT Windows bug #201

ydoc5212 opened this issue Jul 20, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@ydoc5212
Copy link
Member

Traceback (most recent call last):
File "C:\Users\Cody-DellXPS\WARN\warn\cli.py", line 67, in main
runner.scrape(state)
File "C:\Users\Cody-DellXPS\WARN\warn\runner.py", line 46, in scrape
output_csv = state_mod.scrape(self.output_dir, self.working_dir)
File "C:\Users\Cody-DellXPS\WARN\warn\scrapers\ut.py", line 43, in scrape
writer.writerows(output_rows)
File "c:\users\cody-dellxps\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 42-43: character maps to

@ydoc5212 ydoc5212 added the bug Something isn't working label Jul 20, 2021
@palewire
Copy link
Contributor

This scraper is now running fine for me. Since this ticket is over six month old, I'm going to close it. If you are still affected by the error please speak up. We can always reopen.

@Dilnaz-N
Copy link

I have come across the same error. Is there a solution to fix this?

@stucka stucka reopened this Oct 19, 2023
stucka added a commit that referenced this issue Oct 19, 2023
stucka added a commit that referenced this issue Oct 19, 2023
@stucka
Copy link
Contributor

stucka commented Oct 19, 2023

@Dilnaz-N and @ydoc5212 , can you try pip install --upgrade warn-scraper and then verify everything's working for you? I think you've highlighted a significant flaw in the workflow here that I've flagged as Issue #584 . If you have any problems, please comment again and I'll reopen.

To be honest I'm doing development work on this stuff but gave up with both Windows and WSL because some of the assumptions in this and cousin projects made it nigh impossible, and now I do just about everything in a virtual machine, which ... adds a bunch of friction. Thank you for flagging this.

@stucka stucka closed this as completed Oct 19, 2023
@Dilnaz-N
Copy link

Thank you @stucka . The error is no longer appearing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants