makerdao / market-maker-keeper

Maker Keeper Framework: Market maker keepers for OasisDEX, EtherDelta, 0x (RadarRelay, ERCdEX), Paradex, DDEX, IDEX, Bibox, Ethfinex, GoPax, HitBTC, TheOcean, OKEX and Gate.io.
GNU Affero General Public License v3.0
478 stars 182 forks source link

./install.sh not working (Using Python 3.6.6) #216

Closed Jay991 closed 3 years ago

Jay991 commented 3 years ago

After installing Python 3.6.6 and creating virtenv ; I run ./install and I'm getting that python 2.7 has reached end of life. I never installed 2.7 only 3.6.6

~/market-maker-keeper# ./install.sh
created virtual environment CPython2.7.17.final.0-64 in 206ms
  creator CPython2Posix(dest=/root/market-maker-keeper/_virtualenv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
    added seed packages: pip==20.3.1, setuptools==44.1.1, wheel==0.36.1
  activators PythonActivator,CShellActivator,FishActivator,PowerShellActivator,BashActivator
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting cachetools==3.1.1
  Using cached cachetools-3.1.1-py2.py3-none-any.whl (11 kB)
Collecting dydx-python==0.11.3
  Using cached dydx-python-0.11.3.tar.gz (33 kB)
ERROR: Could not find a version that satisfies the requirement eth-account==0.5.2 (from versions: 0.1.0a1, 0.1.0a2, 0.2.0a0, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.3.0)
ERROR: No matching distribution found for eth-account==0.5.2

Also Pip is already upgraded:

~/web3.py# pip show pip
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Name: pip
Version: 20.3.1
Summary: The PyPA recommended tool for installing Python packages.
Home-page: https://pip.pypa.io/
Author: The pip developers
Author-email: distutils-sig@python.org
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires: 
Required-by: 
MikeHathaway commented 3 years ago

Hi,

When you run python --version do you see python version 3.6+? Your Python path is likely pointing to 2.7, it is often preinstalled to run other system dependencies. It might be helpful to look into a python version manager like: https://realpython.com/intro-to-pyenv/

Jay991 commented 3 years ago

Thanks Mike, Yes eventually I changed the python path. Also ran thru a bunch of problems related to missing modules. Was able to find all the needed modules using test.sh*

MikeHathaway commented 3 years ago

Great! Closing as this is a local environment issue. For help getting up and running go to https://chat.makerdao.com/ where you can get help much faster.