I am beginner and do not know why but when I run these lines code:
from bitcoin.core.script import *
from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress
Then I get the following error:
Traceback (most recent call last):
File “……./Starter Code/Q1.py”, line 2, in <module>
from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress
File “…….anaconda3envsblockchain2libsite-packagesbitcoinwallet.py”, line 23, in <module>
import bitcoin.core.key
File “……..anaconda3envsblockchain2libsite-packagesbitcoincorekey.py”, line 28, in <module>
ctypes.util.find_library(‘ssl.35’) or ctypes.util.find_library(‘ssl’) or ctypes.util.find_library(‘libeay32’)
File “……….anaconda3envsblockchain2libctypes__init__.py”, line 442, in LoadLibrary
return self._dlltype(name)
File “…….anaconda3envsblockchain2libctypes__init__.py”, line 364, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None
I substituted my personal file path with dots for privacy reasons.
I tried with python 3.10 and then switch to python 3.7 because I thought that was the problem. First use as virtual environment with venv then switch to conda. I also download ssl from the official website(https://slproweb.com/products/Win32OpenSSL.html) and add it to the environment variable path but nothing seems to work. I am using windows 11 64 bit if it may of any helps.
submitted by /u/Due-Promise-5269
[link] [comments]
r/learnpython I am beginner and do not know why but when I run these lines code: from bitcoin.core.script import * from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress Then I get the following error: Traceback (most recent call last): File “……./Starter Code/Q1.py”, line 2, in <module> from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress File “…….anaconda3envsblockchain2libsite-packagesbitcoinwallet.py”, line 23, in <module> import bitcoin.core.key File “……..anaconda3envsblockchain2libsite-packagesbitcoincorekey.py”, line 28, in <module> ctypes.util.find_library(‘ssl.35’) or ctypes.util.find_library(‘ssl’) or ctypes.util.find_library(‘libeay32’) File “……….anaconda3envsblockchain2libctypes__init__.py”, line 442, in LoadLibrary return self._dlltype(name) File “…….anaconda3envsblockchain2libctypes__init__.py”, line 364, in __init__ self._handle = _dlopen(self._name, mode) TypeError: LoadLibrary() argument 1 must be str, not None I substituted my personal file path with dots for privacy reasons. I tried with python 3.10 and then switch to python 3.7 because I thought that was the problem. First use as virtual environment with venv then switch to conda. I also download ssl from the official website(https://slproweb.com/products/Win32OpenSSL.html) and add it to the environment variable path but nothing seems to work. I am using windows 11 64 bit if it may of any helps. submitted by /u/Due-Promise-5269 [link] [comments]
I am beginner and do not know why but when I run these lines code:
from bitcoin.core.script import *
from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress
Then I get the following error:
Traceback (most recent call last):
File “……./Starter Code/Q1.py”, line 2, in <module>
from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress
File “…….anaconda3envsblockchain2libsite-packagesbitcoinwallet.py”, line 23, in <module>
import bitcoin.core.key
File “……..anaconda3envsblockchain2libsite-packagesbitcoincorekey.py”, line 28, in <module>
ctypes.util.find_library(‘ssl.35’) or ctypes.util.find_library(‘ssl’) or ctypes.util.find_library(‘libeay32’)
File “……….anaconda3envsblockchain2libctypes__init__.py”, line 442, in LoadLibrary
return self._dlltype(name)
File “…….anaconda3envsblockchain2libctypes__init__.py”, line 364, in __init__
self._handle = _dlopen(self._name, mode)
TypeError: LoadLibrary() argument 1 must be str, not None
I substituted my personal file path with dots for privacy reasons.
I tried with python 3.10 and then switch to python 3.7 because I thought that was the problem. First use as virtual environment with venv then switch to conda. I also download ssl from the official website(https://slproweb.com/products/Win32OpenSSL.html) and add it to the environment variable path but nothing seems to work. I am using windows 11 64 bit if it may of any helps.
submitted by /u/Due-Promise-5269
[link] [comments]