-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
UnicodeEncodeError: 'charmap' codec can't encode characters in position 83853-83854 #25
Comments
Could you provide the entire stack trace for the error? |
I could not redirect the python output in cmd.exe for some strange reason. This is from PowerShell instead. I think it is the same. (2>&1) |
Looks like an encoding issue when the modules get written out. I've just uploaded 0.2.1, which hopefully fixes the issue. |
Thanks, but I still get the same error. As before it works in the Ubuntu subsystem, but when testing the same output file in Windows cmd shell I still get the UnicodeEncodeError. The traceback in cmd shell is exactly the same as before. |
Are you sure you're using the latest version of stickytape? The stack trace you posted before showed an encoding error when writing the contents of the module, but the contents of the module should now be byte strings (and therefore encoding shouldn't be a concern). Could you post the output generated by stickytape? |
If the stack trace is exactly the same, then I don't think you've generated the output file using the latest version of stickytape, since the |
I was just going to say I am not sure about that. I might have made some mistake when upgrading since I am not used to python. However I can't find any version info (except from "pip install stickytape"). I normally expect version info from something like "stickytape --version". And I also expect it in the stickytape output file. Could you perhaps add such info? |
From the docs for pip install:
So if you already have stickytape installed, you'll need to pass |
Thanks, yes I know that. And I have the latest version installed. However I do not know exactly how old versions are handled. Maybe they are still around? Hm, I just checked with "sudo python -m pip list" vs "python -m pip list". The old version is still there in the second case. (It should be very good if I could get the version directly from stickytape.) |
Ah, the output file (produced in Ubuntu subsystem) works in cmd shell! (I did "python -m pip uninstall stickytape". And exited the Ubuntu subsystem and entered it again.) |
It also works now to do everything in Windows 10 cmd shell. |
And the output file made in cmd shell works in the Ubuntu subsystem. Many thanks for fixing this. |
I'm glad you got it working. |
Using stickytape on my example in issue #20 now works excellent in the Ubuntu subsystem (20-21) on Windows 10.
However if I try to use the python file produced there directly in Window 10 (cmd shell) I get the error in the subject line.
The text was updated successfully, but these errors were encountered: