[GH-ISSUE #168] purge fails with import error #1627

Closed
opened 2026-03-01 17:52:17 +03:00 by kerem · 7 comments
Owner

Originally created by @ehainry on GitHub (Mar 10, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/168

Describe the bug

Purge fails with an ImportError. It tries to import parse_json_link_index which fails.

$ ./bin/archivebox-purge
Traceback (most recent call last):
  File "./bin/archivebox-purge", line 9, in <module>
    from archive import parse_json_link_index
ImportError: cannot import name 'parse_json_link_index'
Originally created by @ehainry on GitHub (Mar 10, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/168 ### Describe the bug Purge fails with an `ImportError`. It tries to import `parse_json_link_index` which fails. ```bash $ ./bin/archivebox-purge Traceback (most recent call last): File "./bin/archivebox-purge", line 9, in <module> from archive import parse_json_link_index ImportError: cannot import name 'parse_json_link_index' ```
kerem 2026-03-01 17:52:17 +03:00
Author
Owner

@Mortuus-Medicus commented on GitHub (Mar 24, 2019):

Would it be possible to have a remove button/checkbox on the index.html, and thus you could remove by selecting them through that, it could then direcly remove the website or it could just mark it for when ./archive goes to write to it again, it sees the mark and moves the website.

<!-- gh-comment-id:475947492 --> @Mortuus-Medicus commented on GitHub (Mar 24, 2019): Would it be possible to have a remove button/checkbox on the index.html, and thus you could remove by selecting them through that, it could then direcly remove the website or it could just mark it for when ./archive goes to write to it again, it sees the mark and moves the website.
Author
Owner

@mlazana commented on GitHub (Mar 30, 2019):

I'll work on it

<!-- gh-comment-id:478283441 --> @mlazana commented on GitHub (Mar 30, 2019): I'll work on it
Author
Owner

@pirate commented on GitHub (Mar 30, 2019):

@Mortuus-Medicus yes that will be added once we have the Django UI pushed. For now that's impossible with static HTML as there's no server that's running to listen for the remove request.

The purge script will be updated in v0.3.0, can you wait until that version is released, or do you need to purge URLs immediately?

<!-- gh-comment-id:478285971 --> @pirate commented on GitHub (Mar 30, 2019): @Mortuus-Medicus yes that will be added once we have the Django UI pushed. For now that's impossible with static HTML as there's no server that's running to listen for the remove request. The purge script will be updated in [v0.3.0](https://github.com/pirate/ArchiveBox/pull/197), can you wait until that version is released, or do you need to purge URLs immediately?
Author
Owner

@Mortuus-Medicus commented on GitHub (Mar 30, 2019):

@pirate Would it not be possible to achieve the same result with JS? Or is that not robust enough?

<!-- gh-comment-id:478288657 --> @Mortuus-Medicus commented on GitHub (Mar 30, 2019): @pirate Would it not be possible to achieve the same result with JS? Or is that not robust enough?
Author
Owner

@pirate commented on GitHub (Mar 30, 2019):

What do you mean? Client-side JS cannot access the filesystem (no way to store the marked URLs for removal without filesystem access), and we're not adding a node server just for that one feature when Django is almost finished anyway.

<!-- gh-comment-id:478288826 --> @pirate commented on GitHub (Mar 30, 2019): What do you mean? Client-side JS cannot access the filesystem (no way to store the marked URLs for removal without filesystem access), and we're not adding a node server just for that one feature when Django is almost finished anyway.
Author
Owner

@Mortuus-Medicus commented on GitHub (Mar 30, 2019):

I see, then there's no real point in reinventing the wheel if you already have almost finished Django!
(Hmm... Don't know why, but I'm feeling the urge to recreate your program in Go)

<!-- gh-comment-id:478289216 --> @Mortuus-Medicus commented on GitHub (Mar 30, 2019): I see, then there's no real point in reinventing the wheel if you already have almost finished Django! (Hmm... Don't know why, but I'm feeling the urge to recreate your program in Go)
Author
Owner

@pirate commented on GitHub (Apr 11, 2019):

FYI This is fixed here: https://github.com/pirate/ArchiveBox/wiki/Roadmap#-archivebox-remove

There's a posted example of the new behavior there too ^

You can check it out on the django branch, but don't run it on a big existing archive without backing it up somewhere first!

<!-- gh-comment-id:482091352 --> @pirate commented on GitHub (Apr 11, 2019): FYI This is fixed here: https://github.com/pirate/ArchiveBox/wiki/Roadmap#-archivebox-remove There's a posted example of the new behavior there too ^ You can check it out on the `django` branch, but don't run it on a big existing archive without backing it up somewhere first!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1627
No description provided.