here is the code I'm trying to run (from Patric's course), please consider that this is my first time into coding and it has been two weeks trying to solve this issue !
from solcx import compile_standard from web3 import Web3 import json
with open("./SimpleStorage.sol", "r") as file:
simple_storage_file = file.read()
Solidity source code compiled_sol = compile_standard(
{
"language": "Solidity",
"sources": {"SimpleStorage.sol": {"content": simple_storage_file}},
"settings": {
"outputSelection": {
"*": {
"*": ["abi", "metadata", "evm.bytecode", "evm.bytecode.sourceMap"]
}
}
},
},
solc_version="0.6.0", )
with open("compiled_code.json", "w") as file:
json.dump(compiled_sol, file)
get bytecode bytecode = compiled_sol["contracts"]["SimpleStorage.sol"]["SimpleStorage"]["evm"][
"bytecode" ]["object"]
get abi abi = compiled_sol["contracts"]["SimpleStorage.sol"]["SimpleStorage"]["abi"]
connecting to ganach w3 = Web3(Web3.HTTPProvider("http://127.0.0.1:7545")) chaind_id = 5777
my_address = "0xa1d2a440E4E75bcA442107162DE8C276D637a0eF" 'private_key
= os.getenv("0x170ab1d384e1d218ccd8ec332dfa334f8e9980f008043ff04e99a8154322bf06")
cteating the contract in python SimpleStorage = w3.eth.contract(abi=abi, bytecode=bytecode) print(SimpleStorage)
I tried all the solution I found; installed cyphon, installed legacy but nothing changed.
and this is was I see on the terminator:
PS C:\Users\raouf\demos\web3_py_simple_storage> pip --version
pip 22.0.4 from C:\Users\raouf\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
PS C:\Users\raouf\demos\web3_py_simple_storage> python --version
Python 3.10.4
PS C:\Users\raouf\demos\web3_py_simple_storage> pip install web3
Collecting web3
Using cached web3-5.29.1-py3-none-any.whl (500 kB)
Collecting aiohttp<4,>=3.7.4.post0
Using cached aiohttp-3.8.1-cp310-cp310-win_amd64.whl (555 kB)
Collecting eth-abi<3.0.0,>=2.0.0b6
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting jsonschema<5,>=3.2.0
Using cached jsonschema-4.5.1-py3-none-any.whl (72 kB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
Using cached eth_hash-0.3.2-py3-none-any.whl (8.8 kB)
Collecting eth-account<0.6.0,>=0.5.7
Using cached eth_account-0.5.7-py3-none-any.whl (101 kB)
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.2.2-py3-none-any.whl (6.1 kB)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting websockets<10,>=9.1
Using cached websockets-9.1-cp310-cp310-win_amd64.whl
Requirement already satisfied: pywin32>=223 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from web3) (304)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.7.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting protobuf<4,>=3.10.0
Using cached protobuf-3.20.1-cp310-cp310-win_amd64.whl (903 kB)
Collecting ipfshttpclient==0.8.0a2
Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from web3) (2.27.1)
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB)
Collecting attrs>=17.3.0
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from aiohttp<4,>=3.7.4.post0->web3) (2.0.12)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp310-cp310-win_amd64.whl (27 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.0-cp310-cp310-win_amd64.whl (33 kB)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1-py3-none-any.whl
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-keys<0.4.0,>=0.3.4
Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting rlp<3,>=1.0.0
Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.3.0-py3-none-any.whl (5.0 kB)
Collecting bitarray<1.3.0,>=1.2.1
Using cached bitarray-1.2.2.tar.gz (48 kB)
Preparing metadata (setup.py) ... done
Collecting pycryptodome<4,>=3.6.6
Using cached pycryptodome-3.14.1-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting cytoolz<1.0.0,>=0.10.1
Using cached cytoolz-0.11.2.tar.gz (481 kB)
Preparing metadata (setup.py) ... done
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
Using cached pyrsistent-0.18.1-cp310-cp310-win_amd64.whl (61 kB)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (2021.10.8)
Requirement already satisfied: idna<4,>=2.5 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (3.3)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from requests<3.0.0,>=2.16.0->web3) (1.26.9)
Collecting toolz>=0.8.0
Using cached toolz-0.11.2-py3-none-any.whl (55 kB)
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Requirement already satisfied: varint in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (1.0.2)
Collecting base58
Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Requirement already satisfied: netaddr in c:\users\raouf\appdata\local\programs\python\python310\lib\site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (0.8.0)
Collecting six
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: lru-dict, bitarray, cytoolz
Building wheel for lru-dict (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Building wheel for bitarray (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\bitarray
copying bitarray\test_bitarray.py -> build\lib.win-amd64-cpython-310\bitarray
copying bitarray\test_util.py -> build\lib.win-amd64-cpython-310\bitarray
copying bitarray\util.py -> build\lib.win-amd64-cpython-310\bitarray
copying bitarray\__init__.py -> build\lib.win-amd64-cpython-310\bitarray
running build_ext
building 'bitarray._bitarray' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bitarray
Running setup.py clean for bitarray
Building wheel for cytoolz (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [53 lines of output]
[1/5] Cythonizing cytoolz/utils.pyx
[2/5] Cythonizing cytoolz/dicttoolz.pyx
[3/5] Cythonizing cytoolz/functoolz.pyx
[4/5] Cythonizing cytoolz/itertoolz.pyx
[5/5] Cythonizing cytoolz/recipes.pyx
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\compatibility.py -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\_signatures.py -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\_version.py -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\__init__.py -> build\lib.win-amd64-cpython-310\cytoolz
creating build\lib.win-amd64-cpython-310\cytoolz\curried
copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-cpython-310\cytoolz\curried
copying cytoolz\curried\operator.py -> build\lib.win-amd64-cpython-310\cytoolz\curried
copying cytoolz\curried\__init__.py -> build\lib.win-amd64-cpython-310\cytoolz\curried
copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\functoolz.pyx -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\recipes.pyx -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\utils.pyx -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\cpython.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\functoolz.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\recipes.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\utils.pxd -> build\lib.win-amd64-cpython-310\cytoolz
copying cytoolz\__init__.pxd -> build\lib.win-amd64-cpython-310\cytoolz
creating build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\dev_skip_test.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_compatibility.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_curried.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_dicttoolz.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_docstrings.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_doctests.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_functoolz.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_inspect_args.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_itertoolz.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_none_safe.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_recipes.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_serialization.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_signatures.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_tlz.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
copying cytoolz\tests\test_utils.py -> build\lib.win-amd64-cpython-310\cytoolz\tests
running build_ext
building 'cytoolz.dicttoolz' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cytoolz
Running setup.py clean for cytoolz
Failed to build lru-dict bitarray cytoolz
Installing collected packages: lru-dict, bitarray, websockets, toolz, six, pyrsistent, pycryptodome, protobuf, multidict, hexbytes, frozenlist, eth-typing, eth-hash, base58, attrs, async-timeout, yarl, parsimonious, multiaddr, jsonschema, cytoolz, aiosignal, ipfshttpclient, eth-utils, aiohttp, rlp,
eth-keys, eth-abi, eth-rlp, eth-keyfile, eth-account, web3
Running setup.py install for lru-dict ... error
error: subprocess-exited-with-error
× Running setup.py install for lru-dict did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
running install
C:\Users\raouf\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Accoring to this line:
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
You need to install Microsoft Visual C++ 14.0
Related
C:\Users\akhilesh.s>pip install sawtooth-sdk
Collecting sawtooth-sdk
Using cached sawtooth_sdk-1.2.5-py3-none-any.whl (97 kB)
Requirement already satisfied: colorlog in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.7.0)
Requirement already satisfied: protobuf in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (4.21.12)
Requirement already satisfied: pyzmq in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (25.0.0)
Collecting secp256k1
Using cached secp256k1-0.14.0.tar.gz (2.4 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: toml in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (0.10.2)
Requirement already satisfied: PyYAML in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from sawtooth-sdk) (6.0)
Requirement already satisfied: colorama in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from colorlog->sawtooth-sdk) (0.4.6)
Requirement already satisfied: cffi>=1.3.0 in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from secp256k1->sawtooth-sdk) (1.15.1)
Requirement already satisfied: pycparser in c:\users\akhilesh.s\appdata\local\programs\python\python311\lib\site-packages (from cffi>=1.3.0->secp256k1->sawtooth-sdk) (2.21)
Building wheels for collected packages: secp256k1
Building wheel for secp256k1 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
0.26
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for secp256k1
Running setup.py clean for secp256k1
Failed to build secp256k1
Installing collected packages: secp256k1, sawtooth-sdk
Running setup.py install for secp256k1 ... error
error: subprocess-exited-with-error
× Running setup.py install for secp256k1 did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
0.26
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated.
Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
Using bundled libsecp256k1
running install
C:\Users\akhilesh.s\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__init__.py -> build\lib.win-amd64-cpython-311\secp256k1
copying secp256k1\__main__.py -> build\lib.win-amd64-cpython-311\secp256k1
running build_clib
Building experimental
error: [WinError 193] %1 is not a valid Win32 application
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> secp256k1
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
output-image-1
output-image-2
While installing sawtooth-sdk from "pip install sawtooth-sdk", encountered "pkg-config" error.
Pycharm error 'pkg-config' is required to install this package on Windows
Its resolved.
Later encountered secp256k1 error. Even installed Microsoft C++ build tools, still found this "secp256k1" error. Also tried with python 3.9 version getting same error . Can anyone share the fix?
I tried to install tronpy module in Pydroid 3, but it failed with an error FileNotFound.
I used this command:
pip3 install tronpy
And got this error message:
/storage/emulated/0 $ pip3 install tronpy
Collecting tronpy
Using cached tronpy-0.2.6-py3-none-any.whl (34 kB)
Collecting base58<3.0.0,>=2.0.0
Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting pycryptodome<4.0.0,>=3.9.7
Using cached pycryptodome-3.15.0-cp35-abi3-linux_aarch64.whl
Collecting ecdsa<0.16,>=0.15
Using cached ecdsa-0.15-py2.py3-none-any.whl (100 kB)
Collecting httpx<0.17.0,>=0.16.1
Using cached httpx-0.16.1-py3-none-any.whl (65 kB)
Requirement already satisfied: requests<3.0.0,>=2.23.0 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from tronpy) (2.28.1)
Collecting eth_abi<3.0.0,>=2.1.1
Using cached eth_abi-2.2.0-py3-none-any.whl (28 kB)
Requirement already satisfied: six>=1.9.0 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from ecdsa<0.16,>=0.15->tronpy) (1.16.0)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting eth-utils<2.0.0,>=1.2.0
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1-py3-none-any.whl
Requirement already satisfied: certifi in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from httpx<0.17.0,>=0.16.1->tronpy) (2022.9.24)
Collecting sniffio
Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting httpcore==0.12.*
Using cached httpcore-0.12.3-py3-none-any.whl (55 kB)
Collecting rfc3986[idna2008]<2,>=1.3
Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting h11==0.*
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Requirement already satisfied: charset-normalizer<3,>=2 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from requests<3.0.0,>=2.23.0->tronpy) (2.1.1)
Requirement already satisfied: idna<4,>=2.5 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from requests<3.0.0,>=2.23.0->tronpy) (3.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /data/data/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.9/site-packages (from requests<3.0.0,>=2.23.0->tronpy) (1.26.12)
Collecting eth-hash<0.4.0,>=0.3.1
Using cached eth_hash-0.3.3-py3-none-any.whl (8.9 kB)
Collecting cytoolz<1.0.0,>=0.10.1
Using cached cytoolz-0.12.0.tar.gz (502 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting toolz>=0.8.0
Using cached toolz-0.12.0-py3-none-any.whl (55 kB)
Building wheels for collected packages: cytoolz
Building wheel for cytoolz (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for cytoolz (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [62 lines of output]
[1/5] Cythonizing cytoolz/utils.pyx
[2/5] Cythonizing cytoolz/dicttoolz.pyx
[3/5] Cythonizing cytoolz/functoolz.pyx
[4/5] Cythonizing cytoolz/itertoolz.pyx
[5/5] Cythonizing cytoolz/recipes.pyx
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-cpython-39
creating build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/__init__.py -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/_signatures.py -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/_version.py -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/compatibility.py -> build/lib.linux-aarch64-cpython-39/cytoolz
creating build/lib.linux-aarch64-cpython-39/cytoolz/curried
copying cytoolz/curried/__init__.py -> build/lib.linux-aarch64-cpython-39/cytoolz/curried
copying cytoolz/curried/exceptions.py -> build/lib.linux-aarch64-cpython-39/cytoolz/curried
copying cytoolz/curried/operator.py -> build/lib.linux-aarch64-cpython-39/cytoolz/curried
copying cytoolz/dicttoolz.pyx -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/functoolz.pyx -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/itertoolz.pyx -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/recipes.pyx -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/utils.pyx -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/__init__.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/cpython.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/dicttoolz.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/functoolz.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/itertoolz.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/recipes.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
copying cytoolz/utils.pxd -> build/lib.linux-aarch64-cpython-39/cytoolz
creating build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_compatibility.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_curried.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_docstrings.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_doctests.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_functoolz.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_none_safe.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_recipes.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_serialization.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_signatures.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_tlz.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
copying cytoolz/tests/test_utils.py -> build/lib.linux-aarch64-cpython-39/cytoolz/tests
UPDATING build/lib.linux-aarch64-cpython-39/cytoolz/_version.py
set build/lib.linux-aarch64-cpython-39/cytoolz/_version.py to '0.12.0'
running build_ext
building 'cytoolz.dicttoolz' extension
creating build/temp.linux-aarch64-cpython-39
creating build/temp.linux-aarch64-cpython-39/cytoolz
aarch64-linux-android-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -O3 -Wall -Os -s -fno-builtin-copysignf -D__ANDROID_API__=21 -I/home/n0n3m4/Desktop/Pydroid/pyinstall3/include/python3.9 -c cytoolz/dicttoolz.c -o build/temp.linux-aarch64-cpython-39/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:19:10: fatal error: Python.h: No such file or directory
19 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/data/user/0/ru.iiec.pydroid3/files/bin/aarch64-linux-android-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cytoolz
Failed to build cytoolz
ERROR: Could not build wheels for cytoolz, which is required to install pyproject.toml-based projects
/storage/emulated/0 $
Thanks for any answer.
I used Termux and wrote apt install python-dev and then I installed tronpy and started my code by typing python and then my code.
Thanks for comment.
having problems installing web3 package in Pycharm. I am old and clueless when it comes to package installations. The same errors occur either through pip install or interpreter settings/add package. I do not know what else to try and stackoverflow is giving me an error because it says I need to add more details.
OS: Linux Mint 20.1
Pycharm: 2021.1.3
Python: 3.8.10
This answer worked:
"You have to install apt install python3.8-dev –
furas
"
Collecting web3
Using cached web3-5.28.0-py3-none-any.whl (499 kB)
Collecting eth-utils<2.0.0,>=1.9.5
Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting aiohttp<4,>=3.7.4.post0
Using cached aiohttp-3.8.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.3 MB)
Collecting lru-dict<2.0.0,>=1.1.6
Using cached lru-dict-1.1.7.tar.gz (10 kB)
Preparing metadata (setup.py) ... done
Collecting hexbytes<1.0.0,>=0.1.0
Using cached hexbytes-0.2.2-py3-none-any.whl (6.1 kB)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in /usr/lib/python3/dist-packages (from web3) (2.22.0)
Collecting eth-abi<3.0.0,>=2.0.0b6
Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting ipfshttpclient==0.8.0a2
Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting eth-account<0.6.0,>=0.5.7
Using cached eth_account-0.5.7-py3-none-any.whl (101 kB)
Collecting jsonschema<4.0.0,>=3.2.0
Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting protobuf<4,>=3.10.0
Using cached protobuf-3.19.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
Using cached eth_hash-0.3.2-py3-none-any.whl (8.8 kB)
Collecting eth-typing<3.0.0,>=2.0.0
Using cached eth_typing-2.3.0-py3-none-any.whl (6.2 kB)
Collecting websockets<10,>=9.1
Using cached websockets-9.1-cp38-cp38-manylinux2010_x86_64.whl (102 kB)
Collecting multiaddr>=0.0.7
Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting attrs>=17.3.0
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting frozenlist>=1.1.1
Using cached frozenlist-1.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (158 kB)
Collecting async-timeout<5.0,>=4.0.0a3
Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting yarl<2.0,>=1.0
Using cached yarl-1.7.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (308 kB)
Collecting charset-normalizer<3.0,>=2.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting aiosignal>=1.1.2
Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121 kB)
Collecting parsimonious<0.9.0,>=0.8.0
Using cached parsimonious-0.8.1-py3-none-any.whl
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.3.0-py3-none-any.whl (5.0 kB)
Collecting eth-keys<0.4.0,>=0.3.4
Using cached eth_keys-0.3.4-py3-none-any.whl (21 kB)
Collecting rlp<3,>=1.0.0
Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting bitarray<1.3.0,>=1.2.1
Using cached bitarray-1.2.2.tar.gz (48 kB)
Preparing metadata (setup.py) ... done
Collecting eth-keyfile<0.6.0,>=0.5.0
Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting pycryptodome<4,>=3.6.6
Using cached pycryptodome-3.14.1-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
Collecting cytoolz<1.0.0,>=0.10.1
Using cached cytoolz-0.11.2.tar.gz (481 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: six>=1.11.0 in /usr/lib/python3/dist-packages (from jsonschema<4.0.0,>=3.2.0->web3) (1.14.0)
Collecting pyrsistent>=0.14.0
Using cached pyrsistent-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (119 kB)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (60.9.3)
Requirement already satisfied: toolz>=0.8.0 in ./venv/lib/python3.8/site-packages (from cytoolz<1.0.0,>=0.10.1->eth-utils<2.0.0,>=1.9.5->web3) (0.11.2)
Collecting eth-rlp<2,>=0.1.2
Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Requirement already satisfied: varint in ./venv/lib/python3.8/site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (1.0.2)
Collecting base58
Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Requirement already satisfied: netaddr in ./venv/lib/python3.8/site-packages (from multiaddr>=0.0.7->ipfshttpclient==0.8.0a2->web3) (0.8.0)
Requirement already satisfied: idna>=2.0 in /usr/lib/python3/dist-packages (from yarl<2.0,>=1.0->aiohttp<4,>=3.7.4.post0->web3) (2.8)
Building wheels for collected packages: lru-dict, bitarray, cytoolz
Building wheel for lru-dict (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running bdist_wheel
running build
running build_ext
building 'lru' extension
creating build
creating build/temp.linux-x86_64-3.8
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/bs/PycharmProjects/SOLIDITY_TESTING/venv/include -I/usr/include/python3.8 -c lru.c -o build/temp.linux-x86_64-3.8/lru.o
lru.c:1:10: fatal error: Python.h: No such file or directory
1 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Building wheel for bitarray (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/bitarray
copying bitarray/test_bitarray.py -> build/lib.linux-x86_64-3.8/bitarray
copying bitarray/__init__.py -> build/lib.linux-x86_64-3.8/bitarray
copying bitarray/test_util.py -> build/lib.linux-x86_64-3.8/bitarray
copying bitarray/util.py -> build/lib.linux-x86_64-3.8/bitarray
running build_ext
building 'bitarray._bitarray' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/bitarray
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/bs/PycharmProjects/SOLIDITY_TESTING/venv/include -I/usr/include/python3.8 -c bitarray/_bitarray.c -o build/temp.linux-x86_64-3.8/bitarray/_bitarray.o
bitarray/_bitarray.c:12:10: fatal error: Python.h: No such file or directory
12 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for bitarray
Running setup.py clean for bitarray
Building wheel for cytoolz (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [60 lines of output]
[1/5] Cythonizing cytoolz/utils.pyx
[2/5] Cythonizing cytoolz/dicttoolz.pyx
[3/5] Cythonizing cytoolz/functoolz.pyx
[4/5] Cythonizing cytoolz/itertoolz.pyx
[5/5] Cythonizing cytoolz/recipes.pyx
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.8
creating build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/_version.py -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/__init__.py -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/_signatures.py -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/compatibility.py -> build/lib.linux-x86_64-3.8/cytoolz
creating build/lib.linux-x86_64-3.8/cytoolz/curried
copying cytoolz/curried/exceptions.py -> build/lib.linux-x86_64-3.8/cytoolz/curried
copying cytoolz/curried/__init__.py -> build/lib.linux-x86_64-3.8/cytoolz/curried
copying cytoolz/curried/operator.py -> build/lib.linux-x86_64-3.8/cytoolz/curried
copying cytoolz/dicttoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/utils.pyx -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/recipes.pyx -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/itertoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/functoolz.pyx -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/itertoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/dicttoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/utils.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/recipes.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/cpython.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/functoolz.pxd -> build/lib.linux-x86_64-3.8/cytoolz
copying cytoolz/__init__.pxd -> build/lib.linux-x86_64-3.8/cytoolz
creating build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_serialization.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_functoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_docstrings.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_recipes.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_curried.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_utils.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_compatibility.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_signatures.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_none_safe.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_doctests.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
copying cytoolz/tests/test_tlz.py -> build/lib.linux-x86_64-3.8/cytoolz/tests
running build_ext
building 'cytoolz.dicttoolz' extension
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/cytoolz
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/bs/PycharmProjects/SOLIDITY_TESTING/venv/include -I/usr/include/python3.8 -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.8/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:19:10: fatal error: Python.h: No such file or directory
19 | #include "Python.h"
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cytoolz
Running setup.py clean for cytoolz
Failed to build lru-dict bitarray cytoolz
Installing collected packages: lru-dict, bitarray, websockets, pyrsistent, pycryptodome, protobuf, parsimonious, multidict, hexbytes, frozenlist, eth-typing, eth-hash, cytoolz, charset-normalizer, base58, attrs, async-timeout, yarl, multiaddr, jsonschema, eth-utils, aiosignal, rlp, ipfshttpclient, eth-keys, eth-abi, aiohttp, eth-rlp, eth-keyfile, eth-account, web3
Running setup.py install for lru-dict ... error
error: subprocess-exited-with-error
× Running setup.py install for lru-dict did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running install
/home/bs/PycharmProjects/SOLIDITY_TESTING/venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'lru' extension
creating build
creating build/temp.linux-x86_64-3.8
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/bs/PycharmProjects/SOLIDITY_TESTING/venv/include -I/usr/include/python3.8 -c lru.c -o build/temp.linux-x86_64-3.8/lru.o
lru.c:1:10: fatal error: Python.h: No such file or directory
1 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lru-dict
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
In error you can see
Python.h: No such file or directory
and it means it compiles some C/C++ code and it needs C/C++ headers for Python source code.
You have to install
apt install python3.8-dev
QUICK NOTE: This question is probably more related to macos or zsh than python.
I am trying to install discord.py on macos monterey, though I have the xcode command line tools, I am facing errors while installing discord.py. I am running Python 3.11.0a5.
The whole output:
Collecting discord.py
Using cached discord.py-1.7.3-py3-none-any.whl (786 kB)
Collecting aiohttp<3.8.0,>=3.6.0
Using cached aiohttp-3.7.4.post0-py3-none-any.whl
Collecting yarl<2.0,>=1.0
Using cached yarl-1.7.2.tar.gz (168 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting async-timeout<4.0,>=3.0
Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting chardet<5.0,>=2.0
Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting typing-extensions>=3.6.5
Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting multidict<7.0,>=4.5
Using cached multidict-6.0.2-cp311-cp311-macosx_10_9_universal2.whl
Collecting attrs>=17.3.0
Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting idna>=2.0
Using cached idna-3.3-py3-none-any.whl (61 kB)
Building wheels for collected packages: yarl
Building wheel for yarl (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for yarl (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [43 lines of output]
**********************
* Accelerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-3.11
creating build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_url.py -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_quoting_py.py -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/__init__.py -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_quoting.py -> build/lib.macosx-10.9-universal2-3.11/yarl
running egg_info
writing yarl.egg-info/PKG-INFO
writing dependency_links to yarl.egg-info/dependency_links.txt
writing requirements to yarl.egg-info/requires.txt
writing top-level names to yarl.egg-info/top_level.txt
reading manifest file 'yarl.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl/*.html'
warning: no previously-included files found matching 'yarl/*.so'
warning: no previously-included files found matching 'yarl/*.pyd'
no previously-included directories found matching 'docs/_build'
adding license file 'LICENSE'
writing manifest file 'yarl.egg-info/SOURCES.txt'
copying yarl/__init__.pyi -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_quoting_c.c -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_quoting_c.pyi -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/_quoting_c.pyx -> build/lib.macosx-10.9-universal2-3.11/yarl
copying yarl/py.typed -> build/lib.macosx-10.9-universal2-3.11/yarl
running build_ext
building 'yarl._quoting_c' extension
creating build/temp.macosx-10.9-universal2-3.11
creating build/temp.macosx-10.9-universal2-3.11/yarl
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c yarl/_quoting_c.c -o build/temp.macosx-10.9-universal2-3.11/yarl/_quoting_c.o
yarl/_quoting_c.c:198:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build yarl
ERROR: Could not build wheels for yarl, which is required to install pyproject.toml-based projects
https://docs.python.org/3.11/whatsnew/3.11.html#whatsnew311-c-api-porting
You're getting an error because you're using an alpha release of Python 3.11 and YARL hasn't been updated to support it yet.
The non-limited API files cellobject.h, classobject.h, code.h, context.h, funcobject.h, genobject.h and longintrepr.h have been moved to the Include/cpython directory. Moreover, the eval.h header file was removed. These files must not be included directly, as they are already included in Python.h: Include Files. If they have been included directly, consider including Python.h instead. (Contributed by Victor Stinner in bpo-35134.)
You should use a supported version of Python 3.10.
Try upgrading it:
pip install -U yarl
i tried to install discord.py but something went wrong, i don't know why, ,can someone help me?
i have execute this command:
pip install discord
right now i'm using python 3.9.0, maybe i should be using version 3.5.3?
MY TERMINAL:
PS C:\Users\badreddinelaghlid\Desktop\codaggio con python> pip install discord
Collecting discord
Downloading discord-1.0.1-py3-none-any.whl (1.1 kB)
Collecting discord.py>=1.0.1
Downloading discord.py-1.5.1-py3-none-any.whl (701 kB)
|████████████████████████████████| 701 kB 1.3 MB/s
Collecting aiohttp<3.7.0,>=3.6.0
Downloading aiohttp-3.6.3.tar.gz (1.1 MB)
|████████████████████████████████| 1.1 MB 726 kB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting yarl<1.6.0,>=1.0
Downloading yarl-1.5.1.tar.gz (173 kB)
|████████████████████████████████| 173 kB 1.6 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting chardet<4.0,>=2.0
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 2.2 MB/s
Collecting attrs>=17.3.0
Downloading attrs-20.2.0-py2.py3-none-any.whl (48 kB)
|████████████████████████████████| 48 kB 2.2 MB/s
Collecting async-timeout<4.0,>=3.0
Downloading async_timeout-3.0.1-py3-none-any.whl (8.2 kB)
Collecting multidict<5.0,>=4.5
Downloading multidict-4.7.6.tar.gz (50 kB)
|████████████████████████████████| 50 kB 3.1 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting idna>=2.0
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 1.7 MB/s
Building wheels for collected packages: aiohttp, yarl, multidict
Building wheel for aiohttp (PEP 517) ... done
Created wheel for aiohttp: filename=aiohttp-3.6.3-py3-none-any.whl size=440479 sha256=515efabf51ce43d3d161e6a2829a8b366438049af887a441fc5aee702f0830f0
Stored in directory: c:\users\badreddinelaghlid\appdata\local\pip\cache\wheels\b6\9c\bd\6b99bc6ec9dab11f3756d31fb8506d3ecf07aea58b6201f539
Building wheel for yarl (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\python.exe' 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\BADRED~1\AppData\Local\Temp\tmpz_p_dipv'
cwd: C:\Users\badreddinelaghlid\AppData\Local\Temp\pip-install-ty37tuq6\yarl
Complete output (35 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\yarl
copying yarl\_quoting.py -> build\lib.win32-3.9\yarl
copying yarl\_quoting_py.py -> build\lib.win32-3.9\yarl
copying yarl\_url.py -> build\lib.win32-3.9\yarl
copying yarl\__init__.py -> build\lib.win32-3.9\yarl
running egg_info
writing yarl.egg-info\PKG-INFO
writing dependency_links to yarl.egg-info\dependency_links.txt
writing requirements to yarl.egg-info\requires.txt
writing top-level names to yarl.egg-info\top_level.txt
reading manifest file 'yarl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.cache' found anywhere in distribution
warning: no previously-included files found matching 'yarl\*.html'
warning: no previously-included files found matching 'yarl\*.so'
warning: no previously-included files found matching 'yarl\*.pyd'
no previously-included directories found matching 'docs\_build'
writing manifest file 'yarl.egg-info\SOURCES.txt'
copying yarl\__init__.pyi -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.c -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.pyi -> build\lib.win32-3.9\yarl
copying yarl\_quoting_c.pyx -> build\lib.win32-3.9\yarl
copying yarl\py.typed -> build\lib.win32-3.9\yarl
running build_ext
building 'yarl._quoting_c' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for yarl
Building wheel for multidict (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\python.exe' 'c:\users\badreddinelaghlid\appdata\local\programs\python\python39-32\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\BADRED~1\AppData\Local\Temp\tmpitmt1bzr'
cwd: C:\Users\badreddinelaghlid\AppData\Local\Temp\pip-install-ty37tuq6\multidict
Complete output (40 lines):
**********************
* Accellerated build *
**********************
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\multidict
copying multidict\_abc.py -> build\lib.win32-3.9\multidict
copying multidict\_compat.py -> build\lib.win32-3.9\multidict
copying multidict\_multidict_base.py -> build\lib.win32-3.9\multidict
copying multidict\_multidict_py.py -> build\lib.win32-3.9\multidict
copying multidict\__init__.py -> build\lib.win32-3.9\multidict
running egg_info
writing multidict.egg-info\PKG-INFO
writing dependency_links to multidict.egg-info\dependency_links.txt
writing top-level names to multidict.egg-info\top_level.txt
reading manifest file 'multidict.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files found matching 'multidict\_multidict.html'
warning: no previously-included files found matching 'multidict\*.so'
warning: no previously-included files found matching 'multidict\*.pyd'
warning: no previously-included files found matching 'multidict\*.pyd'
no previously-included directories found matching 'docs\_build'
writing manifest file 'multidict.egg-info\SOURCES.txt'
copying multidict\__init__.pyi -> build\lib.win32-3.9\multidict
copying multidict\_multidict.c -> build\lib.win32-3.9\multidict
copying multidict\py.typed -> build\lib.win32-3.9\multidict
creating build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\defs.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\dict.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\istr.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\iter.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\pair_list.h -> build\lib.win32-3.9\multidict\_multilib
copying multidict\_multilib\views.h -> build\lib.win32-3.9\multidict\_multilib
running build_ext
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for multidict
Successfully built aiohttp
Failed to build yarl multidict
ERROR: Could not build wheels for yarl, multidict which use PEP 517 and cannot be installed directly
I haven't been coding in a long time so.. I may have forgotten something..
thanks for attention.
There's the problem: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/. U need to download it.
There are some issues with discord.pyand python3.9 on Windows, see:
https://github.com/Rapptz/discord.py/issues/5984
I would recommend you to use python<=3.8 as 3.9.0 is too new.