question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError on archive

See original GitHub issue

Describe the bug

I tried to save this relatively simple blog post, and got a TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'float' error

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to http://www.offconvex.org/2019/03/19/CURL/
  2. Attempt to archive it with echo "http://www.offconvex.org/2019/03/19/CURL/" | ./archive

Screenshots or log output

➜  ArchiveBox git:(master) echo "http://www.offconvex.org/2019/03/19/CURL/" | ./archive
[*] [2019-03-21 09:08:42] Parsing new links from output/sources/stdin-1553177320.txt...
    > Adding 1 new links to index (parsed import as Plain Text)
[*] [2019-03-21 09:08:42] Saving main index files...
    √ output/index.json
    √ output/index.html
[▶] [2019-03-21 09:08:42] Updating content for 3 pages in archive...
[+] [2019-03-21 09:08:42] "http://www.offconvex.org/2019/03/19/CURL/"
    http://www.offconvex.org/2019/03/19/CURL/
    > output/archive/1553177322 (new)
      > title
      > favicon
      > wget
      > pdf
      > screenshot
      > dom
      > media
      > archive_org
[*] [2019-03-21 09:09:08] "Activation Atlas"
    https://distill.pub/2019/activation-atlas/
    > output/archive/1552175337
[*] [2019-03-21 09:09:08] "Example Domain"
    https://example.com
    > output/archive/1552175279
Traceback (most recent call last):
  File "./archive", line 132, in <module>
    main(*sys.argv)
  File "./archive", line 93, in main
    update_archive_data(import_path=import_path, resume=resume)
  File "./archive", line 124, in update_archive_data
    log_archiving_finished(len(links))
  File "/Users/diegomesa/src/ArchiveBox/archivebox/logs.py", line 158, in log_archiving_finished
    seconds = end_ts - _LAST_RUN_STATS['start_ts'].timestamp()
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'float'

Software versions

(please complete the following information)

  • OS: macOS 10.14.,3
  • ArchiveBox version: git rev-parse HEAD | head -c7 : d798117
  • Python version: Python 3.6.8 :: Anaconda custom (64-bit)
  • Chrome version: Version 73.0.3683.75 (Official Build) (64-bit)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
piratecommented, Mar 21, 2019

Yeah sorry about this, pushed a refactor too fast last night without testing thoroughly. I’ll have this fixed today.

1reaction
simon987commented, Mar 22, 2019

@NullEnt1ty This is a typo, I made a different PR for that: #187

Read more comments on GitHub >

github_iconTop Results From Across the Web

archive.finalize - Bluebird - Uncaught TypeError: Cannot read ...
Hi. I'm having an issue and haven't been able to find a way to make this work. I am using Bluebird to orchestrate...
Read more >
Python : TypeError when taking CSV data from url with IPython ...
The error is due to the fact that HTML() dosent expect CSV. Use pandas read_csv to easily and conveniently read the CSV file:...
Read more >
TypeError - Manual - PHP
A TypeError may be thrown when: The value being set for a class property does not match the property's corresponding declared type. The...
Read more >
Build archive from tweets ID TypeError - TAGS
Hi,. I successfully get a list of around 1500 tweets IDs using the ScriptScrape-Twitter. The time range are about of 5 years.
Read more >
Can't download archives. HELP! - TypeError - Reddit
I get this error when I click to download all files of this post (of a bunch of photos). They download fine but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found