ftx icon indicating copy to clipboard operation
ftx copied to clipboard

missing ciso8601 in requirements.txt

Open cypg09 opened this issue 5 years ago • 7 comments

All is in the title : please add ciso8601 in requirements.txt ! Thanks guys, awesome package.

cypg09 avatar Jan 12 '21 13:01 cypg09

I'm getting the "No module named 'ciso8601'" error. I tried to install ciso8601 with pip install ciso8601 but then I get some new errors like "Failed to build ciso8601".

mehmet-demir avatar Jan 26 '21 11:01 mehmet-demir

Please give some more logs, else I won't be able to help you debugging this. Instead of using "pip3 install xxx" please use "python3 (or py if you're on windows) -m pip install xxx".

-------- Message d'origine -------- Le 26 janv. 2021 à 12:51, mehmet-demir a écrit :

I'm getting the "No module named 'ciso8601'" error. I tried to install ciso8601 with pip install ciso8601 but then I get some new errors like "Failed to build ciso8601".

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cypg09 avatar Jan 26 '21 11:01 cypg09

Thank you for the quick answer. Yes, I'm on Windows. (8.1) (+ Anaconda 3) I realized this error : "building 'ciso8601' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/"

So now I'm installing Microsoft C++ Build Tools.

mehmet-demir avatar Jan 26 '21 12:01 mehmet-demir

Problem solved. Thanks.

mehmet-demir avatar Jan 26 '21 12:01 mehmet-demir

The same issue here (Python 3.8.10 on Ubuntu 20.04.2 LTS):

$ python3 -m pip install cis8601
ERROR: Could not find a version that satisfies the requirement cis8601 (from versions: none)
ERROR: No matching distribution found for cis8601

immartian avatar Jul 16 '21 03:07 immartian

update: I've changed cis8601 to dateutil which can work like a charm.

immartian avatar Jul 16 '21 03:07 immartian

As immartian said, you only need to change the api.py file like this :

import time
import urllib.parse
from typing import Optional, Dict, Any, List

from requests import Request, Session, Response
import hmac

# from ciso8601 import parse_datetime  # FROM THIS
from dateutil.parser import parse            # TO THIS

class FtxClient:

    def __init__(self, base_url=None, api_key=None, api_secret=None, subaccount_name=None) -> None:
        self._session = Session()
        self._base_url = 'https://ftx.com/api/'
        self._api_key = api_key
       ······

TenmaChinen avatar Nov 22 '21 02:11 TenmaChinen