mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1239] Bug: Error while loading configuration value: CHROME_VERSION UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte #763
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#763
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 @allen7u on GitHub (Oct 8, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1239
My environment was Win10, Python 3.10, Node 18.17.1, archivebox-0.6.2, Google Chrome 117.0.5938.149 (正式版本) (64 位) (cohort: M117 Rollout) (as I'm in China)
1, create and activate a virtual environment
2, pip3 install archivebox
So far so good, but when I ran
or
or
my Chrome 117.0.5938.149 was launched, then I got an error:
[X] Error while loading configuration value: CHROME_VERSION
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte
Check your config for mistakes and try again (your archive data is unaffected).
PS:
I also downloaded chromium and set CHROME_BINARY env variable, but then I got:
archivebox version
[X] Error while loading configuration value: DEPENDENCIES
PermissionError: [Errno 13] Permission denied: 'F:\ArchiveBox\chrome-win'
and I also encountered PermissionError when trying to use Archivebox with docker run or docker-compose under WSL2
PPS:
PermissonError disappeared after I move CHROME_BINARY to 'F:\chrome-win
But when I run archivebox init --setup, I got
[+] Installing enabled ArchiveBox dependencies automatically...
[X] Failed to install chromium using playwright: AttributeError module 'os' has no attribute 'getpgid'
It seems that archievebox was not quite native to windows after all?
@pirate commented on GitHub (Oct 9, 2023):
ArchiveBox does not support Windows officially other than in Docker. Some people have gotten it working but I cant provide official Windows support because I don't own a windows machine and don't really know anything about Windows.
Docker-compose should work but dont set a custom chrome version, as it definitely cannot use the Windows version of chrome inside a linux container.