[GH-ISSUE #139] AttributeError: 'NoneType' object has no attribute 'replace' #94

Closed
opened 2026-03-01 14:40:37 +03:00 by kerem · 2 comments
Owner

Originally created by @sbrl on GitHub (Feb 8, 2019).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/139

Describe the bug
I've just updated to the latest version of ArchiveBox, and now it's throwing the exception below all the time.

Steps to reproduce
Steps to reproduce the behavior:

  1. Checkout commit e6d5cd4432
  2. Execute archivebox
  3. See error

Screenshots or log output
If applicable, use screenshots or copy/pasted terminal output to help explain your problem.

Traceback (most recent call last):
  File "./archive", line 184, in <module>
    links = merge_links(archive_path=out_dir, import_path=source, only_new=ONLY_NEW)
  File "./archive", line 78, in merge_links
    pretty_path(import_path),
  File "/path/to/ArchiveBox/archivebox/util.py", line 182, in pretty_path
    return path.replace(REPO_DIR + '/', '')
AttributeError: 'NoneType' object has no attribute 'replace'

Software versions (please complete the following information):

  • ArchiveBox version: e6d5cd4432
  • Python version: 3.5.3
  • OS: Raspbian GNU/Linux 9.6 (stretch)
  • Chrome version: Not installed

@pirate

Originally created by @sbrl on GitHub (Feb 8, 2019). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/139 **Describe the bug** I've just updated to the latest version of ArchiveBox, and now it's throwing the exception below all the time. **Steps to reproduce** Steps to reproduce the behavior: 1. Checkout commit e6d5cd44327a93394e8ef892452ca526acac22cd 2. Execute `archivebox` 3. See error **Screenshots or log output** If applicable, use screenshots or copy/pasted terminal output to help explain your problem. ```` Traceback (most recent call last): File "./archive", line 184, in <module> links = merge_links(archive_path=out_dir, import_path=source, only_new=ONLY_NEW) File "./archive", line 78, in merge_links pretty_path(import_path), File "/path/to/ArchiveBox/archivebox/util.py", line 182, in pretty_path return path.replace(REPO_DIR + '/', '') AttributeError: 'NoneType' object has no attribute 'replace' ```` **Software versions (please complete the following information):** - ArchiveBox version: e6d5cd44327a93394e8ef892452ca526acac22cd - Python version: 3.5.3 - OS: Raspbian GNU/Linux 9.6 (stretch) - Chrome version: Not installed @pirate
kerem closed this issue 2026-03-01 14:40:37 +03:00
Author
Owner

@pirate commented on GitHub (Feb 13, 2019):

Fixed in latest master (74b99fe). Thanks!

<!-- gh-comment-id:463010773 --> @pirate commented on GitHub (Feb 13, 2019): Fixed in latest `master` (74b99fe). Thanks!
Author
Owner

@sbrl commented on GitHub (Feb 14, 2019):

Awesome! I'll update now.

<!-- gh-comment-id:463706183 --> @sbrl commented on GitHub (Feb 14, 2019): Awesome! I'll update now.
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#94
No description provided.