steem-python icon indicating copy to clipboard operation
steem-python copied to clipboard

Unable to Install Steem for Python (VS 2015/2017)

Open n-exploit opened this issue 6 years ago • 8 comments

I am unable to install the Steem module for Python. I first attempted to install VS Community 2017 and the latest Build Tools and subsequently, VS Community 2015 and 2015 Build Tools. Each version and combination result in the same error.

I've also tried running the pip install -U steem command from the VS command line as well.

Version of Python you are running

3.6.5

Version of steem-python you are running

Installation Attempt - 1.0

Expected Behavior

Full Installation

Actual Behavior

**warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Random.OSRNG.winrandom' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools**

----------------------------------------

Command "c:\python36\python.exe -u -c "import setuptools, tokenize;file='C:\Users\\AppData\Local\Temp\pip-install-h0xsk1qe\pycrypto\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users*\AppData\Local\Temp\pip-record-dlsh6zuo\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users***\AppData\Local\Temp\pip-install-h0xsk1qe\pycrypto\

Steps to reproduce

Attempt fresh install of steem

n-exploit avatar Apr 29 '18 15:04 n-exploit

PyCrypto is broken and it is not possible to compile it on windows without patching it first. Patches can be found in the conda feedstock for example.

holgern avatar Apr 29 '18 21:04 holgern

Try conda install steem

holgern avatar Apr 29 '18 21:04 holgern

(base) C:\Users\A>conda install steem Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • steem

Current channels:

  • https://repo.continuum.io/pkgs/main/win-64
  • https://repo.continuum.io/pkgs/main/noarch
  • https://repo.continuum.io/pkgs/free/win-64
  • https://repo.continuum.io/pkgs/free/noarch
  • https://repo.continuum.io/pkgs/r/win-64
  • https://repo.continuum.io/pkgs/r/noarch
  • https://repo.continuum.io/pkgs/pro/win-64
  • https://repo.continuum.io/pkgs/pro/noarch
  • https://repo.continuum.io/pkgs/msys2/win-64
  • https://repo.continuum.io/pkgs/msys2/noarch

(base) C:\Users\A>

n-exploit avatar Apr 30 '18 14:04 n-exploit

Sorry, my tip was not complete: conda config --add channels conda-forge conda install steem

holgern avatar Apr 30 '18 14:04 holgern

Thank you, this solved it!

n-exploit avatar Apr 30 '18 16:04 n-exploit

@roadscape - Seems we need a spike or quick discussion how/if we're going to handle supporting Windows machines. I'm not sure if I want to be running tests against multiple environments as we already have 5 test suites to run, this would start driving our testing complexity way up, but it may be desirable if we want to have first class support for windows.

cyon1c avatar Apr 30 '18 17:04 cyon1c

@cyon1c - not sure we need tests for Windows but thinking we might want to include these tips in the README.

roadscape avatar Apr 30 '18 18:04 roadscape

I'm the maintainer of https://github.com/conda-forge/steem-feedstock. @roadscape - You can find a detailed installation guide in the readme file https://github.com/conda-forge/steem-feedstock/blob/master/README.md. Feel free to copy the badges.

holgern avatar May 01 '18 15:05 holgern