Install ccxt on linux server via Python setup file

See original GitHub issue

Hi,

I’m trying to install CCXT (Pro) via a Python setup file on a Linux server. I’d found this explanation in the README. Unfortunately the installation is stuck as soon as it does try to install the CCXT or CCXT Pro package. When I delete one or both packages from the setup requires list it runs without any problems.

The installation gets stuck on Reading https://pypi.org/simple/ccxt/ as shown in the screenshot. Any suggestions?

  • OS: MacOS / Linux server
  • Programming Language version: Python
  • CCXT version: see below
from setuptools import setup, find_packages

requires = [
    'aiodns==2.0.0',
    'aiohttp==3.7.4.post0',
    'async-timeout==3.0.1',
    'attrs==20.3.0',
    'ccxt==1.47.49',
    'ccxtpro @ git+https://github.com/kroitor/ccxt.pro.git#subdirectory=python',
    'certifi==2020.12.5',
    'cffi==1.14.5',
    'chardet==4.0.0',
    'cryptography==3.4.7',
    'greenlet==1.0.0',
    'idna==2.10',
    'multidict==5.1.0',
    'numpy==1.20.2',
    'pandas==1.2.3',
    'psycopg2-binary==2.8.6',
    'pycares==3.1.1',
    'pycparser==2.20',
    'python-dateutil==2.8.1',
    'pytz==2021.1',
    'requests==2.25.1',
    'six==1.15.0',
    'SQLAlchemy==1.4.7',
    'typing-extensions==3.7.4.3',
    'urllib3==1.26.4',
    'yarl==1.1.0'
]

setup(
    name='crypto_arbit',
    version='0.0.1',
    install_requires=requires,
)
Screenshot 2021-04-12 at 14 02 31

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rnnyrkcommented, Apr 12, 2021

Ah sorry. Good one, will add the explanation indeed. Thanks for the code examples 👌

0reactions
kroitorcommented, Apr 12, 2021

@rnnyrk i would not recommend embedding the credentials into your setup.py file. This is due to a licensing restriction – CCXT Pro’s license forbids distribution of the source code of the package. Instead, i’d rather add some self-explaining helpers and ask the user to install it locally with some import-code similar to this:

try:
    import ccxtpro
except Exception as e:
    raise Exception('Looks like you do not have CCXT Pro installed. Please, install CCXT Pro onto your system first')
    
if not getattr(ccxtpro, 'exchanges'):
    raise Exception('Looks like you have installed the stub package instead of the private CCXT Pro package, please reinstall according to the CCXT Pro Install Manual')
Read more comments on GitHub >

github_iconTop Results From Across the Web

Install — ccxt 2.4.43 documentation
The easiest way to install the ccxt library is to use builtin package managers: ccxt in **NPM** (JavaScript / Node v7.6+); ccxt in...
Read more >
ccxt · PyPI
The easiest way to install the CCXT library is to use a package manager: ccxt in NPM (JavaScript / Node v7.6+); ccxt in...
Read more >
Step-By-Step Guide to Installing Python and CCXT Library
Step- By -Step Guide to Installing Python and CCXT Library · https://www. python.org/downloads/ + After successful installation, make sure to ...
Read more >
ccxt - npm
A JavaScript / Python / PHP library for cryptocurrency trading and e-commerce with support for many bitcoin/ether/altcoin exchange markets and merchant APIs ...
Read more >
Run Python Trading Bots 24/7 With This Google VM Cloud ...
This guide shows how to setup Python on a Google VM Instance so you can keep ... Now you're ready to add your...
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