Erroro will installing ctrader-open-api

Created at 10 Apr 2022, 08:25
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
SA

safwategy

Joined 30.12.2021

Erroro will installing ctrader-open-api
10 Apr 2022, 08:25


I have got the below message while installing ctrader-open-API(!pip install ctrader-open-API), I have got the below messages:

ERROR: Could not find a version that satisfies the requirement ctrader-open-api (from versions: none)
ERROR: No matching distribution found for ctrader-open-api

 

I update the python version but the error still happens

!python -m pip install --upgrade pip

!pip install --upgrade setuptools

 


@safwategy
Replies

amusleh
10 Apr 2022, 09:48

Hi,

I just tested by uninstalling and reinstalling it, and it works fine, result:

PS C:\Users\afhac\source\OpenApiPy> pip uninstall ctrader-open-api
Found existing installation: ctrader-open-api 0.9.0
Uninstalling ctrader-open-api-0.9.0:
  Would remove:
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\ctrader_open_api-0.9.0.dist-info\*
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\ctrader_open_api\*
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\license
Proceed (Y/n)? y
  Successfully uninstalled ctrader-open-api-0.9.0
PS C:\Users\afhac\source\OpenApiPy> pip install ctrader-open-api
Collecting ctrader-open-api
  Using cached ctrader_open_api-0.9.0-py3-none-any.whl (29 kB)
Requirement already satisfied: protobuf==3.19.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from ctrader-open-api) (3.19.1)
Requirement already satisfied: Twisted==21.7.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from ctrader-open-api) (21.7.0)
Requirement already satisfied: Automat>=0.8.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (20.2.0)
Requirement already satisfied: constantly>=15.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (15.1.0)
Requirement already satisfied: twisted-iocpsupport~=1.0.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (1.0.2)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (4.0.0)
Requirement already satisfied: zope.interface>=4.4.2 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (5.4.0)
Requirement already satisfied: incremental>=21.3.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.3.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.0.0)
Requirement already satisfied: attrs>=19.2.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.2.0)
Requirement already satisfied: six in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Automat>=0.8.0->Twisted==21.7.0->ctrader-open-api) (1.16.0)
Requirement already satisfied: idna>=2.5 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from hyperlink>=17.1.1->Twisted==21.7.0->ctrader-open-api) (3.3)
Requirement already satisfied: setuptools in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from zope.interface>=4.4.2->Twisted==21.7.0->ctrader-open-api) (56.0.0)
Installing collected packages: ctrader-open-api
Successfully installed ctrader-open-api-0.9.0
PS C:\Users\afhac\source\OpenApiPy>

I tested on Windows 11.

Can you tell me on which OS you got that error? which version of Python and Pip you were using?


@amusleh

safwategy
10 Apr 2022, 11:05

RE:

amusleh said:

Hi,

I just tested by uninstalling and reinstalling it, and it works fine, result:

PS C:\Users\afhac\source\OpenApiPy> pip uninstall ctrader-open-api
Found existing installation: ctrader-open-api 0.9.0
Uninstalling ctrader-open-api-0.9.0:
  Would remove:
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\ctrader_open_api-0.9.0.dist-info\*
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\ctrader_open_api\*
    c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages\license
Proceed (Y/n)? y
  Successfully uninstalled ctrader-open-api-0.9.0
PS C:\Users\afhac\source\OpenApiPy> pip install ctrader-open-api
Collecting ctrader-open-api
  Using cached ctrader_open_api-0.9.0-py3-none-any.whl (29 kB)
Requirement already satisfied: protobuf==3.19.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from ctrader-open-api) (3.19.1)
Requirement already satisfied: Twisted==21.7.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from ctrader-open-api) (21.7.0)
Requirement already satisfied: Automat>=0.8.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (20.2.0)
Requirement already satisfied: constantly>=15.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (15.1.0)
Requirement already satisfied: twisted-iocpsupport~=1.0.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (1.0.2)
Requirement already satisfied: typing-extensions>=3.6.5 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (4.0.0)
Requirement already satisfied: zope.interface>=4.4.2 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (5.4.0)
Requirement already satisfied: incremental>=21.3.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.3.0)
Requirement already satisfied: hyperlink>=17.1.1 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.0.0)
Requirement already satisfied: attrs>=19.2.0 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Twisted==21.7.0->ctrader-open-api) (21.2.0)
Requirement already satisfied: six in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from Automat>=0.8.0->Twisted==21.7.0->ctrader-open-api) (1.16.0)
Requirement already satisfied: idna>=2.5 in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from hyperlink>=17.1.1->Twisted==21.7.0->ctrader-open-api) (3.3)
Requirement already satisfied: setuptools in c:\users\afhac\appdata\local\programs\python\python39\lib\site-packages (from zope.interface>=4.4.2->Twisted==21.7.0->ctrader-open-api) (56.0.0)
Installing collected packages: ctrader-open-api
Successfully installed ctrader-open-api-0.9.0
PS C:\Users\afhac\source\OpenApiPy>

I tested on Windows 11.

Can you tell me on which OS you got that error? which version of Python and Pip you were using?

I am using Windows 10 , and i still got the same error message


@safwategy

amusleh
10 Apr 2022, 12:03

Hi,

I tested on Ubuntu also, it works fine, I can't reproduce the issue you are facing, try Googling the error.


@amusleh

safwategy
10 Apr 2022, 12:09

RE:

amusleh said:

Hi,

I tested on Ubuntu also, it works fine, I can't reproduce the issue you are facing, try Googling the error.

I have googled that error but in vain. 


@safwategy

amusleh
11 Apr 2022, 12:02

Hi,

It looks like a Pip related issue with your system supported TLS not related to our package.

Here are some links that can help you:

python - 'pip install' fails for every package ("Could not find a version that satisfies the requirement") - Stack Overflow

[Solved] Could not find a version that satisfies the requirement - Exception Error (exerror.com)


@amusleh