Fixing the windows build of the scrypt library

in #steemdev6 years ago (edited)

After seeing that scrypt no longer works for windows:
image.png

I had to act, as I'm the maintainer of the scrypt package. The package can be found here https://bitbucket.org/mhallin/py-scrypt/. The original author gave me write access to the repository as he is no longer maintaining it.

scrypt is an important package and is used in several python libraries as dependency (e.g. python-bitshares,, steem-python, beem )

The reason why it failed unter windows, is that a library in the OpenSSL package is renamed in the newest windows version of it. By fixing the names, I could compile it again.

image.png

Compile scrypt in windows

A c compiler must be installed (e.g. Visual Studio 2017). Then,
Win64 OpenSSL v1.1.1a from https://slproweb.com/products/Win32OpenSSL.html must be installed to c:\\OpenSSL-Win64
A

python setup.py build

should now work.

Precompiled wheels

I uploaded also several pre-compiled wheels.
image.png

A

pip install scrypt

under windows should also work without having a compiler.

Anaconda

I pushed the changes to conda-forge and working packages are available for windows:

image.png

Sort:  

I remember when I first joined and tried installing steem-python on Windows, but scrypt was giving me all kinds of errors. Great to see you are now the maintainer and are actively fixing things!

Thank you so much for participating the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Hi, @holger80!

You just got a 2.82% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hi @holger80!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 7.359 which ranks you at #62 across all Steem accounts.
Your rank has dropped 1 places in the last three days (old rank 61).

In our last Algorithmic Curation Round, consisting of 163 contributions, your post is ranked at #103.

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.



Hello - I came here looking for a solution w/ Scrypt, but got stuck. Do you have another location to download the Scrypt Package to edit?

Is there an easier solution if trying to run BEEM on windows???

Stuck here with the same problem.
Can not install scrypt in Windows/VSC.

The only solution I heard till now was to try to install Beem on a Python version 3.9 or older. Which is quite a shame.