mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #678] Error on Windows 10 when adding URL: UnicodeEncodeError: 'charmap' codec can't encode: character maps to <undefined> #429
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#429
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leontking on GitHub (Mar 27, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/678
@Leontking commented on GitHub (Mar 27, 2021):
what the heck
@Leontking commented on GitHub (Mar 27, 2021):
does it want me to create the system environmet variables or something??
@pirate commented on GitHub (Mar 27, 2021):
You need to change your system write encoding to use UTF-8, are you on a really old system or something?
Can you try setting the
PYTHONLEGACYWINDOWSSTDIO=utf-8environment variable.@Leontking commented on GitHub (Mar 27, 2021):
How do you do that
I am on latest win 10
@pirate commented on GitHub (Mar 27, 2021):
Try this:
Also there is no need to @ mention me, I already get notified about all issues. This project is free, don't expect instant support, especially if you open multiple issues in a row in quick succession and break the rules by not filling out the issue template and providing your version information. It makes it a lot harder for me to provide support without that info, and I'm going to be a lot grumpier about it if I have to ask for it because people ignore the issue template.
Please try and format your issues better with relevant titles and logs using triple backticks ```, and include your full version information from
archivebox --version.@Leontking commented on GitHub (Mar 27, 2021):
weired how is it related to the error
@pirate commented on GitHub (Mar 27, 2021):
It's a pre-release version with some fixes for Windows. See: 0f33ceb01ad941cf37c2583cdabe9e1d26cac4eb
@Leontking commented on GitHub (Mar 27, 2021):
Here
@pirate commented on GitHub (Mar 27, 2021):
Run it again. Also use ``` to format your logs otherwise it's really hard to read here.
@Leontking commented on GitHub (Mar 27, 2021):
Ok
@Leontking commented on GitHub (Mar 27, 2021):
@pirate commented on GitHub (Mar 27, 2021):
Give it a min before reinstalling, it's being cached.
@Leontking commented on GitHub (Mar 27, 2021):
Btw how to set this environment variable i only know how to set binaries environment variable PYTHONLEGACYWINDOWSSTDIO=utf-8
@Leontking commented on GitHub (Mar 27, 2021):
Ok ill wait
@Leontking commented on GitHub (Mar 27, 2021):
I think archive box crashed
@Leontking commented on GitHub (Mar 27, 2021):
cuz here's what i get by archivebox version
@Leontking commented on GitHub (Mar 27, 2021):
i have 32 bit python on windows 64
@pirate commented on GitHub (Mar 27, 2021):
It's the same error as before, nothing changed which means you didn't reinstall it correctly. Did you run the install command I gave?
Also first result on Google for
set Windows environment variable: https://superuser.com/questions/212150/how-to-set-env-variable-in-windows-cmd-line/212153@Leontking commented on GitHub (Mar 27, 2021):
its a problem with my python
@Leontking commented on GitHub (Mar 27, 2021):
i did
@pirate commented on GitHub (Mar 27, 2021):
Really? Please paste the full verbatim output of running it:
@Leontking commented on GitHub (Mar 27, 2021):
nope imma reinstall python
@Leontking commented on GitHub (Mar 27, 2021):
I had both 64 and 32 bit
@Leontking commented on GitHub (Mar 27, 2021):
ok same error still
@Leontking commented on GitHub (Mar 27, 2021):
Oh wait i had to change the directory
@Leontking commented on GitHub (Mar 27, 2021):
@pirate commented on GitHub (Mar 27, 2021):
It worked, there's no error in that output ^.
@Leontking commented on GitHub (Mar 27, 2021):
i cant see anything at all
@Leontking commented on GitHub (Mar 27, 2021):
only a index.js file
@pirate commented on GitHub (Mar 27, 2021):
Not enough info, I need screenshots, log output, etc. What do you mean you cant see anything, where are you looking? What command are you running to access the server? What URLs are you visiting? etc...
@Leontking commented on GitHub (Mar 27, 2021):
@Leontking commented on GitHub (Mar 27, 2021):
@pirate commented on GitHub (Mar 27, 2021):
Can you set
set PYTHONLEGACYWINDOWSFSENCODING=1, it's still showing that you're not usingUTF-8encoding.Honestly I recommend just using Docker. You have so many dependencies missing aside from this python encoding issue that it'll just be faster overall to do it through Docker.
@Leontking commented on GitHub (Mar 27, 2021):
I cant install docker
@Leontking commented on GitHub (Mar 27, 2021):
Its showing a bunch of errors
@Leontking commented on GitHub (Mar 27, 2021):
Wsl stuff HOW DO WE DO THAT
@Leontking commented on GitHub (Mar 27, 2021):
I even maked a issue in oficial docker github months ago about that
@Leontking commented on GitHub (Mar 27, 2021):
wait
@Leontking commented on GitHub (Mar 27, 2021):
can we use docker-toolbox
@Leontking commented on GitHub (Mar 27, 2021):
Hope you reply soon @pirate
@pirate commented on GitHub (Apr 6, 2021):
I think I fixed the underlying issues in the latest release. Try running this:
If you still get any AssertionError or other encoding errors comment back here and I'll reopen the issue.