Coder Social home page Coder Social logo

Comments (8)

anson-vandoren avatar anson-vandoren commented on September 18, 2024

@bluepintail sorry, I pushed a few commits that weren't ready for prime time. Will have a working version up later today

from binance-downloader.

anson-vandoren avatar anson-vandoren commented on September 18, 2024

Resolved in 110ac35

Please let me know if you're still having issues

from binance-downloader.

pintail-xyz avatar pintail-xyz commented on September 18, 2024

Thanks. I just did a fresh install but now when I try and run I get:

NOTICE: util: Error reading JSON from cache/earliest_timestamps.json

I've checked in the binance_downloader/cache folder and there's no earliest_timestamps.json file.

from binance-downloader.

anson-vandoren avatar anson-vandoren commented on September 18, 2024

I will change the wording to be less confusing, but the downloader should have still run normally. That's just letting you know there wasn't already cached data, and it pulled earliest timestamp for that currency pair from the server instead of using a cached value.

If it failed to download, can you send the rest of the output after the above NOTICE line?

Thanks

from binance-downloader.

pintail-xyz avatar pintail-xyz commented on September 18, 2024

Ah OK, here's the full trace:

NOTICE: util: Error reading JSON from cache/earliest_timestamps.json
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/user/binance-downloader/binance_downloader/cli.py", line 84, in main
    binance.fetch_parallel()
  File "/home/user/binance-downloader/binance_downloader/api.py", line 65, in fetch_parallel
    ranges = self._get_chunk_ranges()
  File "/home/user/binance-downloader/binance_downloader/api.py", line 165, in _get_chunk_ranges
    period_start = self._get_valid_start()
  File "/home/user/binance-downloader/binance_downloader/api.py", line 195, in _get_valid_start
    earliest = binance_utils.earliest_valid_timestamp(self.symbol, self.interval)
  File "/home/user/binance-downloader/binance_downloader/binance_utils.py", line 268, in earliest_valid_timestamp
    prev_json[identifier] = earliest_timestamp
TypeError: 'NoneType' object does not support item assignment

from binance-downloader.

pintail-xyz avatar pintail-xyz commented on September 18, 2024

I was able to get it to work when I copied the earliest_timestamps.json file from the previous installation and I also had to manually create the downloaded folder.

from binance-downloader.

anson-vandoren avatar anson-vandoren commented on September 18, 2024

Thanks. I think I have an idea of what the issue might be. Will take a look at the code tonight and have a fix soon.

from binance-downloader.

anson-vandoren avatar anson-vandoren commented on September 18, 2024

Fixed and tested with a missing earliest_timestamps.json

Thanks, and let me know if you spot any other issues.

from binance-downloader.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.