mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-26 01:26:00 +03:00
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#2068
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 @Ahmedazim7804 on GitHub (Nov 28, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/898
As written in issue #805 in windows, archivebox fails to install node_modules SINGLEFILE_BINARY, READABILITY_BINARY, MERCURY_BINARY.
although it can fixed by adding
kwargs['shell'] = Trueto "run" function in "system.py" for Popen command.and commenting the
pgid = os.getpgid(process.pid)line as in windows os module does not have getpgid function, i know it will break code later in case of exception.and adding
shell=Trueparameter torun_shell([ 'npm', 'install', '--prefix', str(out_dir), '--force', '--no-save', '--no-audit', '--no-fund', '--loglevel', 'error', ], capture_output=False, cwd=out_dir)inif USE_NODE:code block in setup() function in main.py.After these changes archivebox installed modules fine but still was not recognizing them and was installing them on every
archivebox setupcommand, it is because theSINGLEFILE_BINARYandREADABILITY_BINARYhave.cmdextension on windows.it could be fixed by replacing
'SINGLEFILE_BINARY': {'type': str, 'default': lambda c: bin_path('single-file')}, 'READABILITY_BINARY': {'type': str, 'default': lambda c: bin_path('readability-extractor')},to'SINGLEFILE_BINARY': {'type': str, 'default': lambda c: bin_path('single-file.cmd')}, 'READABILITY_BINARY': {'type': str, 'default': lambda c: bin_path('readability-extractor.cmd')},inDEPENDENCY_CONFIGdictionary in config.py.I don't have git knowledge therefore cannot do a pull request and also these changes will 100% break it on other operating systems.
@Ahmedazim7804 commented on GitHub (Nov 28, 2021):
Sorry, for my stupidity i read it now that ArchiveBox is not supported on windows natively without docker or wsl.