create account

The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies by thecrazygm

View this thread on: hive.blogpeakd.comecency.com
· @thecrazygm ·
$10.79
The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies
Hey everyone,

Today's post is a bit of a story, and it comes with another big shoutout to **@herman-german**! He recently reached out for some help getting the `auto-market` tool (the one for auto-selling/buying HIVE/HBD and Hive-Engine tokens) set up and running on Windows.

Now, I'll be the first to admit, I haven't regularly used Windows for going on three decades, so I knew this might be an adventure. I did what I could to assist remotely.

## The Usual Suspect: `scrypt` and OpenSSL

It turned out the main hurdle was a familiar one for many Python developers trying to install certain cryptographic libraries on Windows: the `scrypt` package was failing to build. This is almost always due to missing OpenSSL development libraries – on Linux, it's usually a quick `apt install libssl-dev` or similar. On Windows, it's often a bit more involved to get the right headers and libraries in place for C extensions to compile.

I pointed him to some common places one might get OpenSSL for Windows. We tried a few things, and... no dice. More errors.

![Computer Sleuthing](https://files.peakd.com/file/peakd-hive/thecrazygm/AK3a4CU36DUwqfRpVPK568BYv34ULKCN1SHsjirzfJiiDQ1Yq8wWdD9TwLt9fQ4.png)

## The Solution? Blast from the Past!

Long story short, after a good bit of troubleshooting, the _only_ way we could get the `scrypt` dependency to build successfully on his Windows setup was by installing an **antique version of OpenSSL**. I'm talking so old, we had to dig up an installer via the Internet Archive because it wasn't readily available on current OpenSSL distribution sites!

But, persistence paid off! We eventually got `auto-market` up and running for him. And as a small bonus, while working through this, I also managed to squash a couple of bugs related to the 'buy' functionality in the `hive-market` script that weren't working quite right. So, win-win!

## Back to the Main Point: Dependency Auditing

This whole experience brought a key thought back to the forefront. When I first started forking `beem` to create `hive-nectar`, one of my long-term goals was to audit its dependencies. The idea was to identify older, potentially problematic, or less maintained libraries and see if they could be swapped out for more modern, cross-platform friendly, and actively maintained alternatives.

The `scrypt` library, given the hoops we had to jump through on Windows due to its OpenSSL compilation requirements, seems like a prime candidate for this review. If there's a more modern Python-native or easier-to-install cryptographic library that can provide the necessary KDF (Key Derivation Function) functionality without these heavy external C dependencies, it would likely make `hive-nectar` (and by extension, tools that use it like `auto-market`) much more accessible and easier to install for users across all operating systems, especially Windows.

It's a reminder that while a library might work perfectly fine in your own development environment (Linux, in my case), ensuring a smooth experience for users on different systems often means taking a hard look at the entire dependency chain.

Food for thought for future `hive-nectar` development!

As always,
Michael Garcia a.k.a. TheCrazyGM
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 68 others
properties (23)
authorthecrazygm
permlinkthe-windows-challenge-getting-auto-market-running-and-pondering-dependencies
categoryhive-186392
json_metadata{"app":"peakd/2025.5.6","format":"markdown","tags":["dev","python","nectar","income","tribes","archon","proofofbrain"],"users":["herman-german"],"image":["https://files.peakd.com/file/peakd-hive/thecrazygm/AK3a4CU36DUwqfRpVPK568BYv34ULKCN1SHsjirzfJiiDQ1Yq8wWdD9TwLt9fQ4.png"]}
created2025-05-14 10:27:21
last_update2025-05-14 10:27:21
depth0
children6
last_payout2025-05-21 10:27:21
cashout_time1969-12-31 23:59:59
total_payout_value4.964 HBD
curator_payout_value5.825 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,221
author_reputation79,762,908,894,102
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries
0.
accountthecrazygm.bank
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,720,781
net_rshares33,338,666,876,590
author_curate_reward""
vote details (132)
@ecoinstant ·
$0.02
Love it when the code comes with a story!

!PAKX
!PIMP
!PIZZA
👍  ,
properties (23)
authorecoinstant
permlinkre-thecrazygm-swa3t2
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.5.6","image":[],"users":[]}
created2025-05-15 01:22:18
last_update2025-05-15 01:22:18
depth1
children1
last_payout2025-05-22 01:22:18
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length61
author_reputation833,875,026,175,374
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,736,022
net_rshares74,966,901,935
author_curate_reward""
vote details (2)
@pakx ·
<center><table><tr></tr><tr><td><center><img src='https://files.peakd.com/file/peakd-hive/pakx/PakX-logo-transparent.png'><p><sup><a href='https://hive-engine.com/?p=market&t=PAKX'>View or trade </a> <code>PAKX</code> tokens.</sup></p></center></td><td><center>@ecoinstant, PAKX has voted the post by @thecrazygm. (1/1 calls)</p><br><br><p>Use !PAKX command if you hold enough balance to call for a @pakx vote on worthy posts! More details available on <a href='/@pakx'>PAKX Blog</a>.</p></center></td></tr></table></center>
properties (22)
authorpakx
permlinkre-ecoinstant-1747272188
categoryhive-186392
json_metadata"{"tags": ["pakx", "hivepakistan"], "app": "HiveDiscoMod"}"
created2025-05-15 01:23:09
last_update2025-05-15 01:23:09
depth2
children0
last_payout2025-05-22 01:23:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length524
author_reputation32,486,708,418
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,736,030
net_rshares0
@pizzabot ·
<center>PIZZA!


$PIZZA slices delivered:
@ecoinstant<sub>(1/20)</sub> tipped @thecrazygm 


<sub>Come get [MOON](https://moon.hive.pizza)ed!</sub></center>
properties (22)
authorpizzabot
permlinkre-the-windows-challenge-getting-auto-market-running-and-pondering-dependencies-20250515t012241z
categoryhive-186392
json_metadata"{"app": "pizzabot"}"
created2025-05-15 01:22:39
last_update2025-05-15 01:22:39
depth1
children0
last_payout2025-05-22 01:22:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length156
author_reputation7,456,447,973,030
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,736,027
net_rshares0
@themarkymark ·
$0.12
You can use newer versions of OpenSSL, you just have to re-enable legacy_sect as it dropped support for the algorithm Hive requires.

## openssl.conf
```
openssl_conf = openssl_init


[openssl_init]
providers = provider_sect

[provider_sect]
[legacy_sect]
default = default_sect
legacy = legacy_sect

[default_sect]
activate = 1

activate = 1
```

Then force pip install cryptography again.

You can find where your config is with

`openssl version -d`
👍  , , , , , , , , ,
👎  , , , , , , , , , , , , , ,
properties (23)
authorthemarkymark
permlinkre-thecrazygm-sw99ys
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.5.6","image":[],"users":[]}
created2025-05-14 14:37:39
last_update2025-05-14 14:37:39
depth1
children1
last_payout2025-05-21 14:37:39
cashout_time1969-12-31 23:59:59
total_payout_value0.062 HBD
curator_payout_value0.061 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length452
author_reputation1,772,919,764,038,280
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,724,862
net_rshares363,481,379,594
author_curate_reward""
vote details (25)
@thecrazygm ·
$0.49
I remember having to do that to allow it to do ripemd160, but the compilation error we were getting was that `libcrypto_static.lib` was missing, and only appeared to be in the older versions. My guess is they moved away from static libraries. Holger maintains the python scrypt as well, and it probably hasn't been updated since either. Didn't really look into it too much other than helping get it going. I do plan on digging into the deps anyway, e.g. there is at least 3 difference ecdsa libraries it tries to import as well.
👍  
properties (23)
authorthecrazygm
permlinkre-themarkymark-swaz62
categoryhive-186392
json_metadata{"tags":["hive-186392"],"app":"peakd/2025.5.6"}
created2025-05-15 12:39:39
last_update2025-05-15 12:39:39
depth2
children0
last_payout2025-05-22 12:39:39
cashout_time1969-12-31 23:59:59
total_payout_value0.244 HBD
curator_payout_value0.245 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length528
author_reputation79,762,908,894,102
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,744,110
net_rshares1,396,959,234,492
author_curate_reward""
vote details (1)
@tydynrain ·
I also haven't used Windows in many years, also, though so do have me beat, and I remember some of the ridiculous issues that I'd encounter on it often. Installing in Linux is like night and day compared to doing it in Windows, and so much better! Congratulations on your success in resolving the compilation problem, and for squashing  a few more bugs! 😁 🙏 💚 ✨ 🤙 
👍  
properties (23)
authortydynrain
permlinkre-thecrazygm-2025514t21170309z
categoryhive-186392
json_metadata{"tags":["dev","python","nectar","income","tribes","archon","proofofbrain"],"app":"ecency/3.2.0-vision","format":"markdown+html"}
created2025-05-15 07:17:03
last_update2025-05-15 07:17:03
depth1
children0
last_payout2025-05-22 07:17:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length364
author_reputation199,646,301,178,272
root_title"The Windows Challenge: Getting `auto-market` Running and Pondering Dependencies"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id142,739,659
net_rshares41,349,039,542
author_curate_reward""
vote details (1)