Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

missing ciso8601 in requirements.txt #3

Open
cypg09 opened this issue Jan 12, 2021 · 7 comments
Open

missing ciso8601 in requirements.txt #3

cypg09 opened this issue Jan 12, 2021 · 7 comments

Comments

@cypg09
Copy link

cypg09 commented Jan 12, 2021

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

@mehmet-demir
Copy link

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".

@cypg09
Copy link
Author

cypg09 commented Jan 26, 2021 via email

@mehmet-demir
Copy link

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
Copy link

Problem solved.
Thanks.

@immartian
Copy link

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
Copy link

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

arnaudj added a commit to arnaudj/wagmi that referenced this issue Nov 11, 2021
To allow django to start (useful when running in docker)

Also import transitive dependency for ftx
  see quan-digital/ftx#3
arnaudj added a commit to arnaudj/wagmi that referenced this issue Nov 11, 2021
To allow django to start (useful when running in docker)

Also import transitive dependency for ftx
  see quan-digital/ftx#3
@TenmaChinen
Copy link

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
       ······

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants