Chainfire / UselethMiner

Ethereum CPU miner and aggregating proxy
87 stars 7 forks source link

Version 0.2 not starting on M1 Pro #5

Closed La-te closed 2 years ago

La-te commented 2 years ago

I'm having MacBook Pro 14" 2021 M1 Pro 8 cores. I just tried the latest install and I'm getting the following error. Is this a dependency issue somewhere?

$ /usr/local/uselethminer/uselethminer

Traceback (most recent call last): File "/usr/local/uselethminer/uselethminer.py", line 13, in File "/usr/local/uselethminer/controller.py", line 10, in File "/usr/local/uselethminer/stratum.py", line 6, in File "/usr/local/uselethminer/jsonrpc.py", line 8, in File "/usr/local/uselethminer/jsonrpccrypt.py", line 8, in File "/usr/local/uselethminer/cryptography/hazmat/backends/init.py", line 9, in default_backend File "/usr/local/uselethminer/cryptography/hazmat/backends/openssl/init.py", line 6, in File "/usr/local/uselethminer/cryptography/hazmat/backends/openssl/backend.py", line 64, in File "/usr/local/uselethminer/cryptography/hazmat/bindings/openssl/binding.py", line 14, in ImportError: dlopen(/usr/local/uselethminer/cryptography/hazmat/bindings/_openssl.so, 0x0002): Library not loaded: /opt/homebrew/Cellar/openssl@3/3.0.1/lib/libcrypto.3.dylib Referenced from: /usr/local/uselethminer/libssl.3.dylib Reason: tried: '/opt/homebrew/Cellar/openssl@3/3.0.1/lib/libcrypto.3.dylib' (no such file), '/usr/lib/libcrypto.3.dylib' (no such file)

jonny7737 commented 2 years ago

brew reinstall openssl fix this problem on my OG M1 mini.

La-te commented 2 years ago

brew reinstall openssl fix this problem on my OG M1 mini.

For me it would mean installing brew in the first place. I didn't notice that would be a requirement.

Chainfire commented 2 years ago

Hmm interesting. It should actually not be a requirement, and it wasn't in 0.1. I'm not sure why it is now. I moved to a different machine for building since then... I'll look into this.

Did you install homebrew by now? If not, please don't, otherwise we can't test the fix :)

Chainfire commented 2 years ago

Please try v0.22 , should solve the problem.

La-te commented 2 years ago

I didn't install homebrew. v0.22 seems to work. Thank you.