bitcoin_tools icon indicating copy to clipboard operation
bitcoin_tools copied to clipboard

Ujson requires python 3.6 or greater version

Open santoshgadagamma opened this issue 3 years ago • 0 comments

Hello,

I am trying to use python bitcoin tools 0.2.3 package but it shows errors while installing i got the below error.

But in the requirement package of source contains there packages - ecdsa python-bitcoinlib base58 qrcode Pillow plyvel matplotlib numpy ujson

Error: C:\Users\rvst sateesh\Downloads>pip install python-bitcoin-tools DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop s upport for Python 2.7 in January 2021. More details about Python 2 support in pi p can be found at https://pip.pypa.io/en/latest/development/release-process/#pyt hon-2-support pip 21.0 will remove support for this functionality. Collecting python-bitcoin-tools Using cached python_bitcoin_tools-0.2.3-py2-none-any.whl (54 kB) Requirement already satisfied: ecdsa in c:\python27\lib\site-packages (from pyth on-bitcoin-tools) (0.13.3) Requirement already satisfied: Pillow in c:\python27\lib\site-packages (from pyt hon-bitcoin-tools) (6.2.2) Requirement already satisfied: qrcode in c:\python27\lib\site-packages (from pyt hon-bitcoin-tools) (6.1) Requirement already satisfied: base58 in c:\python27\lib\site-packages (from pyt hon-bitcoin-tools) (1.0.3) Collecting matplotlib Using cached matplotlib-2.2.5-cp27-cp27m-win_amd64.whl (8.7 MB) Collecting python-bitcoinlib Using cached python-bitcoinlib-0.11.0.tar.gz (150 kB) Requirement already satisfied: numpy in c:\python27\lib\site-packages (from pyth on-bitcoin-tools) (1.16.6) Collecting plyvel Using cached plyvel-1.3.0.tar.gz (149 kB) Collecting ujson Using cached ujson-2.0.3.tar.gz (7.1 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Requirement already satisfied: six in c:\python27\lib\site-packages (from qrcode ->python-bitcoin-tools) (1.15.0) Requirement already satisfied: colorama; platform_system == "Windows" in c:\pyth on27\lib\site-packages (from qrcode->python-bitcoin-tools) (0.4.4) Collecting cycler>=0.10 Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Requirement already satisfied: pytz in c:\python27\lib\site-packages (from matpl otlib->python-bitcoin-tools) (2020.5) Collecting kiwisolver>=1.0.1 Using cached kiwisolver-1.1.0-cp27-none-win_amd64.whl (64 kB) Requirement already satisfied: python-dateutil>=2.1 in c:\python27\lib\site-pack ages (from matplotlib->python-bitcoin-tools) (2.8.0) Requirement already satisfied: backports.functools-lru-cache in c:\python27\lib
site-packages (from matplotlib->python-bitcoin-tools) (1.6.1) Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\py thon27\lib\site-packages (from matplotlib->python-bitcoin-tools) (2.4.7) Requirement already satisfied: setuptools in c:\python27\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->python-bitcoin-tools) (41.2.0) Using legacy 'setup.py install' for python-bitcoinlib, since package 'wheel' is not installed. Using legacy 'setup.py install' for plyvel, since package 'wheel' is not install ed. Building wheels for collected packages: ujson Building wheel for ujson (PEP 517) ... error ERROR: Command errored out with exit status 1: command: 'c:\python27\python.exe' 'c:\python27\lib\site-packages\pip_vendor
pep517_in_process.py' build_wheel 'c:\users\rvstsa~1\appdata\local\temp\tmpok2q zs' cwd: c:\users\rvstsa~1\appdata\local\temp\pip-install-kryqze\ujson Complete output (42 lines): running bdist_wheel running build running build_ext building 'ujson' extension creating build creating build\temp.win-amd64-2.7 creating build\temp.win-amd64-2.7\Release creating build\temp.win-amd64-2.7\Release\deps creating build\temp.win-amd64-2.7\Release\deps\double-conversion creating build\temp.win-amd64-2.7\Release\deps\double-conversion\double-conver sion creating build\temp.win-amd64-2.7\Release\lib creating build\temp.win-amd64-2.7\Release\python C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\bignum-dtoa.cc /Fobuild
temp.win-amd64-2.7\Release./deps/double-conversion/double-conversion\bignum-dto a.obj -D_GNU_SOURCE bignum-dtoa.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\bignum.cc /Fobuild\temp. win-amd64-2.7\Release./deps/double-conversion/double-conversion\bignum.obj -D_G NU_SOURCE bignum.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\cached-powers.cc /Fobuil d\temp.win-amd64-2.7\Release./deps/double-conversion/double-conversion\cached-p owers.obj -D_GNU_SOURCE cached-powers.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\diy-fp.cc /Fobuild\temp. win-amd64-2.7\Release./deps/double-conversion/double-conversion\diy-fp.obj -D_G NU_SOURCE diy-fp.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\double-conversion.cc /Fo build\temp.win-amd64-2.7\Release./deps/double-conversion/double-conversion\doub le-conversion.obj -D_GNU_SOURCE double-conversion.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\fast-dtoa.cc /Fobuild\te mp.win-amd64-2.7\Release./deps/double-conversion/double-conversion\fast-dtoa.ob j -D_GNU_SOURCE fast-dtoa.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\fixed-dtoa.cc /Fobuild\t emp.win-amd64-2.7\Release./deps/double-conversion/double-conversion\fixed-dtoa. obj -D_GNU_SOURCE fixed-dtoa.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./deps/double-conversion/double-conversion\strtod.cc /Fobuild\temp. win-amd64-2.7\Release./deps/double-conversion/double-conversion\strtod.obj -D_G NU_SOURCE strtod.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tp./lib/dconv_wrapper.cc /Fobuild\temp.win-amd64-2.7\Release./lib/dc onv_wrapper.obj -D_GNU_SOURCE dconv_wrapper.cc C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tc./python/ujson.c /Fobuild\temp.win-amd64-2.7\Release./python/ujson .obj -D_GNU_SOURCE ujson.c C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tc./python/objToJSON.c /Fobuild\temp.win-amd64-2.7\Release./python/o bjToJSON.obj -D_GNU_SOURCE objToJSON.c C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tc./python/JSONtoObj.c /Fobuild\temp.win-amd64-2.7\Release./python/J SONtoObj.obj -D_GNU_SOURCE JSONtoObj.c C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tc./lib/ultrajsonenc.c /Fobuild\temp.win-amd64-2.7\Release./lib/ultr ajsonenc.obj -D_GNU_SOURCE ultrajsonenc.c C:\Users\rvst sateesh\AppData\Local\Programs\Common\Microsoft\Visual C++ for P ython\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -I./python -I ./lib -I./deps/double-conversion/double-conversion -Ic:\python27\include -Ic:\py thon27\PC /Tc./lib/ultrajsondec.c /Fobuild\temp.win-amd64-2.7\Release./lib/ultr ajsondec.obj -D_GNU_SOURCE ultrajsondec.c ./lib/ultrajsondec.c(47) : fatal error C1083: Cannot open include file: 'stdin t.h': No such file or directory error: command 'C:\Users\rvst sateesh\AppData\Local\Programs\Common\Mic rosoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe' failed with exit sta tus 2

ERROR: Failed building wheel for ujson Failed to build ujson ERROR: Could not build wheels for ujson which use PEP 517 and cannot be installed directly.

Every package which are mentioned in the requirement is installed properly except ujson and plyvel. Ujson rewuired greater version How to overcome these errors.

santoshgadagamma avatar Jan 18 '21 19:01 santoshgadagamma