Closed dirmansebastian closed 6 years ago
Did you install the library using pip install -e . -r requirements.txt
command?
The latest version of web3.py
i.e. (4.6) uses websockets between 6.0.0 and 7.0.0.
We have pinned this library at an older version of web3.py
i.e. 4.4 which uses websockets version 5.0.1, this might be causing the error.
A simple solution is to delete the venvname
folder and reinstall ether_sql
using the pip install -e . -r requirements.txt
command.
i install it with pip3, it require python 3 , pip3 install -e . -r requirements.txt
Obtaining file:///home/ubuntu/ether_sql
Collecting web3==4.4.1 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/9a/37/240392b6c966f97be53 f0a097b77979dddf86e7b75141e142fffad4483f8/web3-4.4.1-py3-none-any.whl
Collecting sqlalchemy==1.2.4 (from -r requirements.txt (line 5))
Collecting alembic==0.9.9 (from -r requirements.txt (line 6))
Collecting psycopg2-binary==2.7.4 (from -r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/02/bc/067c0769eda3a3361f4 1fcf709758b52e4627046e47442baf6aa05940926/psycopg2_binary-2.7.4-cp35-cp35m-manyl inux1_x86_64.whl
Collecting Click==6.7 (from -r requirements.txt (line 10))
Using cached https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c53 66c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl
Collecting pytest==3.0.0 (from -r requirements.txt (line 13))
Using cached https://files.pythonhosted.org/packages/f2/96/beb9e8005e3cc2959c9 743eb2b4f6c538d0d3599d69e716a995732cc716d/pytest-3.0.0-py2.py3-none-any.whl
Collecting pytest-cov==2.2.1 (from -r requirements.txt (line 14))
Using cached https://files.pythonhosted.org/packages/b5/65/10686be887f9806e295 06a99e9b561033db9e4aa185b1d750fef3ae43154/pytest_cov-2.2.1-py2.py3-none-any.whl
Collecting sphinx==1.7.4 (from -r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/89/44/73cd04b856fa35a69e9 e2e790aa283e2eaefb684e116f1d46d01a5e7986f/Sphinx-1.7.4-py2.py3-none-any.whl
Collecting sphinx_rtd_theme==0.3.1 (from -r requirements.txt (line 18))
Using cached https://files.pythonhosted.org/packages/47/33/e3a1cc08acf0c50418c 505d1b954adc950141ace691e3b4a22ba91950a32/sphinx_rtd_theme-0.3.1-py2.py3-none-an y.whl
Collecting sphinx_click==1.2.0 (from -r requirements.txt (line 19))
Using cached https://files.pythonhosted.org/packages/62/e5/6eb4f02757a7d22d026 5f0d75334c227b2c78eec1efb800b6ae8f01998c8/sphinx_click-1.2.0-py2.py3-none-any.wh l
Collecting Celery==4.1.1 (from -r requirements.txt (line 22))
Using cached https://files.pythonhosted.org/packages/99/fa/4049b26bfe71992ecf9 79acd39b87e55b493608613054089d975418015b7/celery-4.1.1-py2.py3-none-any.whl
Collecting flower==0.9.2 (from -r requirements.txt (line 23))
Collecting eth-hash[pycryptodome] (from web3==4.4.1->-r requirements.txt (line 2 ))
Using cached https://files.pythonhosted.org/packages/0d/d8/0f0c8d4ccaa4c8d2552 4fd1ed9f5c6d9551b52b74b973f338de3f0a23111/eth_hash-0.2.0-py3-none-any.whl
Collecting eth-abi<2,>=1.1.1 (from web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/3d/4e/66d711f39c892c295cd 61d2a241d26e4fa253e483382bdb34e39ea4c4d96/eth_abi-1.2.0-py3-none-any.whl
Collecting hexbytes<1.0.0,>=0.1.0 (from web3==4.4.1->-r requirements.txt (line 2 ))
Using cached https://files.pythonhosted.org/packages/18/bd/21697d93ee2153c8c12 253262b740f571e94341d4cee411504032fff3f56/hexbytes-0.1.0-py3-none-any.whl
Collecting lru-dict<2.0.0,>=1.1.6 (from web3==4.4.1->-r requirements.txt (line 2 ))
Collecting eth-utils<2.0.0,>=1.0.1 (from web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/a8/ac/d7df3ce575e8251b7d6 736fedc336b5475df28a77e8aa1ad660954f91420/eth_utils-1.2.1-py3-none-any.whl
Collecting requests<3.0.0,>=2.16.0 (from web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d 8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl
Collecting websockets<6.0.0,>=5.0.1 (from web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/fd/61/614787d6c397196e606 f7fadb454189b5fb0466df01ebacd0b9106719e92/websockets-5.0.1-cp35-cp35m-manylinux1 _x86_64.whl
Collecting eth-account<0.3.0,>=0.2.1 (from web3==4.4.1->-r requirements.txt (lin e 2))
Using cached https://files.pythonhosted.org/packages/1c/f4/752b666464002dbd30d 30443426cd25c045f941ae5f5e7b08eda1aee3c68/eth_account-0.2.3-py3-none-any.whl
Collecting cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython" (from web3==4 .4.1->-r requirements.txt (line 2))
Collecting python-editor>=0.3 (from alembic==0.9.9->-r requirements.txt (line 6) )
Collecting python-dateutil (from alembic==0.9.9->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfa c112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any .whl
Collecting Mako (from alembic==0.9.9->-r requirements.txt (line 6))
Collecting py>=1.4.29 (from pytest==3.0.0->-r requirements.txt (line 13))
Using cached https://files.pythonhosted.org/packages/c8/47/d179b80ab1dc1bfd46a 0c87e391be47e6c7ef5831a9c138c5c49d1756288/py-1.6.0-py2.py3-none-any.whl
Collecting coverage>=3.7.1 (from pytest-cov==2.2.1->-r requirements.txt (line 14 ))
Using cached https://files.pythonhosted.org/packages/2c/c0/8047b7cbbcdbd7d21f8 d68126196b7915da892c5af3d1a99dba082d33ec0/coverage-4.5.1-cp35-cp35m-manylinux1_x 86_64.whl
Collecting six>=1.5 (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bf a78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting docutils>=0.11 (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/36/fa/08e9e6e0e3cbd1d362c 3bbee8d01d0aedb2155c4ac112b19ef3cae8eed8d/docutils-0.14-py3-none-any.whl
Collecting alabaster<0.8,>=0.7 (from sphinx==1.7.4->-r requirements.txt (line 17 ))
Using cached https://files.pythonhosted.org/packages/6e/71/c3648cc2f675063dbe2 d669004a59e4a5120172713a1de3c3b14144d4b31/alabaster-0.7.11-py2.py3-none-any.whl
Collecting packaging (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/ad/c2/b500ea05d5f9f361a56 2f089fc91f77ed3b4783e13a08a3daf82069b1224/packaging-17.1-py2.py3-none-any.whl
Collecting Jinja2>=2.3 (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016 a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting setuptools (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/66/e8/570bb5ca88a8bcd2a1d b9c6246bb66615750663ffaaeada95b04ffe74e12/setuptools-40.2.0-py2.py3-none-any.whl
Collecting snowballstemmer>=1.1 (from sphinx==1.7.4->-r requirements.txt (line 1 7))
Using cached https://files.pythonhosted.org/packages/d4/6c/8a935e2c7b54a377146 56d753e4187ee0631988184ed50c0cf6476858566/snowballstemmer-1.2.1-py2.py3-none-any .whl
Collecting imagesize (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/fc/b6/aef66b4c52a6ad6ac18 cf6ebc5731ed06d8c9ae4d3b2d9951f261150be67/imagesize-1.1.0-py2.py3-none-any.whl
Collecting Pygments>=2.0 (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb 06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting babel!=2.0,>=1.3 (from sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/b8/ad/c6f60602d3ee3d92fbe d87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl
Collecting sphinxcontrib-websupport (from sphinx==1.7.4->-r requirements.txt (li ne 17))
Using cached https://files.pythonhosted.org/packages/52/69/3c2fbdc3702358c5b34 ee25e387b24838597ef099761fc9a42c166796e8f/sphinxcontrib_websupport-1.1.0-py2.py3 -none-any.whl
Collecting pbr>=2.0 (from sphinx_click==1.2.0->-r requirements.txt (line 19))
Using cached https://files.pythonhosted.org/packages/69/1c/98cba002ed975a91a02 94863d9c774cc0ebe38e05bbb65e83314550b1677/pbr-4.2.0-py2.py3-none-any.whl
Collecting pytz>dev (from Celery==4.1.1->-r requirements.txt (line 22))
Using cached https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59 177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl
Collecting billiard<3.6.0,>=3.5.0.2 (from Celery==4.1.1->-r requirements.txt (li ne 22))
Collecting kombu<5.0,>=4.2.0 (from Celery==4.1.1->-r requirements.txt (line 22))
Using cached https://files.pythonhosted.org/packages/97/61/65838c7da048e56d549 e358ac19c0979c892e17dc6186610c49531d35b70/kombu-4.2.1-py2.py3-none-any.whl
Collecting tornado>=4.2.0 (from flower==0.9.2->-r requirements.txt (line 23))
Collecting pycryptodome<4,>=3.6.6; extra == "pycryptodome" (from eth-hash[pycryp todome]->web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/e9/02/f22c807b475c872117e 53d087b7c122980269bf32f54880b6521fbf378ad/pycryptodome-3.6.6-cp35-cp35m-manylinu x1_x86_64.whl
Collecting parsimonious==0.8.0 (from eth-abi<2,>=1.1.1->web3==4.4.1->-r requirem ents.txt (line 2))
Collecting eth-typing<=2 (from eth-abi<2,>=1.1.1->web3==4.4.1->-r requirements.t xt (line 2))
Using cached https://files.pythonhosted.org/packages/5f/cb/e941031a77d19eef05f 8bcdd40f6d8a3b55b7fa45aa7100206d64216c29b/eth_typing-1.3.0-py3-none-any.whl
Collecting idna<2.8,>=2.5 (from requests<3.0.0,>=2.16.0->web3==4.4.1->-r require ments.txt (line 2))
Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c 1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.16.0->web3==4.4.1->-r req uirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b821 71f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl
Collecting urllib3<1.24,>=1.21.1 (from requests<3.0.0,>=2.16.0->web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a 5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests<3.0.0,>=2.16.0->web3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b64 87b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting eth-keys<0.3.0,>=0.2.0b3 (from eth-account<0.3.0,>=0.2.1->web3==4.4.1 ->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/9b/96/bec507291a2ecac6535 8b4485282ce02e8c0cdd30980a232791b355a1f5b/eth_keys-0.2.0b3-py3-none-any.whl
Collecting eth-keyfile<0.6.0,>=0.5.0 (from eth-account<0.3.0,>=0.2.1->web3==4.4. 1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/eb/a5/3615d100b62fbf20fe5 d5c0d1d4d7326eac861d260b0cd2a36af2bf8ccb1/eth_keyfile-0.5.1-py3-none-any.whl
Collecting eth-rlp<1,>=0.1.2 (from eth-account<0.3.0,>=0.2.1->web3==4.4.1->-r re quirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/56/4b/b309fb44dd9bb975e84 f3d626392eec1eeed0108e55a51cd7dd8956a73ad/eth_rlp-0.1.2-py3-none-any.whl
Collecting attrdict<3,>=2.0.0 (from eth-account<0.3.0,>=0.2.1->web3==4.4.1->-r r equirements.txt (line 2))
Collecting toolz>=0.8.0 (from cytoolz<1.0.0,>=0.9.0; implementation_name == "cpy thon"->web3==4.4.1->-r requirements.txt (line 2))
Collecting MarkupSafe>=0.9.2 (from Mako->alembic==0.9.9->-r requirements.txt (li ne 6))
Collecting pyparsing>=2.0.2 (from packaging->sphinx==1.7.4->-r requirements.txt (line 17))
Using cached https://files.pythonhosted.org/packages/6a/8a/718fd7d3458f9fab8e6 7186b00abdd345b639976bc7fb3ae722e1b026a50/pyparsing-2.2.0-py2.py3-none-any.whl
Collecting amqp<3.0,>=2.1.4 (from kombu<5.0,>=4.2.0->Celery==4.1.1->-r requireme nts.txt (line 22))
Using cached https://files.pythonhosted.org/packages/7f/cf/12d4611fc67babd4ae2 50c9e8249c5650ae1933395488e9e7e3562b4ff24/amqp-2.3.2-py2.py3-none-any.whl
Collecting rlp<2,>=0.6.0 (from eth-rlp<1,>=0.1.2->eth-account<0.3.0,>=0.2.1->web 3==4.4.1->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/35/f7/e5df3c3d71c90bfe747 18be9ae24704abc8b8ef04d58c1065e1cbcedc240/rlp-1.0.2-py2.py3-none-any.whl
Collecting vine>=1.1.3 (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.2.0->Celery==4.1.1- >-r requirements.txt (line 22))
Using cached https://files.pythonhosted.org/packages/10/50/5b1ebe42843c19f35ed b15022ecae339fbec6db5b241a7a13c924dabf2a3/vine-1.1.4-py2.py3-none-any.whl
Installing collected packages: pycryptodome, eth-hash, six, parsimonious, toolz, cytoolz, eth-typing, eth-utils, eth-abi, hexbytes, lru-dict, idna, certifi, url lib3, chardet, requests, websockets, eth-keys, eth-keyfile, rlp, eth-rlp, attrdi ct, eth-account, web3, sqlalchemy, python-editor, python-dateutil, MarkupSafe, M ako, alembic, psycopg2-binary, Click, py, pytest, coverage, pytest-cov, docutils , alabaster, pyparsing, packaging, Jinja2, setuptools, snowballstemmer, imagesiz e, Pygments, pytz, babel, sphinxcontrib-websupport, sphinx, sphinx-rtd-theme, pb r, sphinx-click, billiard, vine, amqp, kombu, Celery, tornado, flower, ether-sql
Running setup.py develop for ether-sql
Successfully installed Celery-4.1.1 Click-6.7 Jinja2-2.10 Mako-1.0.7 MarkupSafe- 1.0 Pygments-2.2.0 alabaster-0.7.11 alembic-0.9.9 amqp-2.3.2 attrdict-2.0.0 babe l-2.6.0 billiard-3.5.0.4 certifi-2018.8.24 chardet-3.0.4 coverage-4.5.1 cytoolz- 0.9.0.1 docutils-0.14 eth-abi-1.2.0 eth-account-0.2.3 eth-hash-0.2.0 eth-keyfile -0.5.1 eth-keys-0.2.0b3 eth-rlp-0.1.2 eth-typing-1.3.0 eth-utils-1.2.1 ether-sql -0.1.0 flower-0.9.2 hexbytes-0.1.0 idna-2.7 imagesize-1.1.0 kombu-4.2.1 lru-dict -1.1.6 packaging-17.1 parsimonious-0.8.0 pbr-4.2.0 psycopg2-binary-2.7.4 py-1.6. 0 pycryptodome-3.6.6 pyparsing-2.2.0 pytest-3.0.0 pytest-cov-2.2.1 python-dateut il-2.7.3 python-editor-1.0.3 pytz-2018.5 requests-2.19.1 rlp-1.0.2 setuptools-40 .2.0 six-1.11.0 snowballstemmer-1.2.1 sphinx-1.7.4 sphinx-click-1.2.0 sphinx-rtd -theme-0.3.1 sphinxcontrib-websupport-1.1.0 sqlalchemy-1.2.4 toolz-0.9.0 tornado -5.1 urllib3-1.23 vine-1.1.4 web3-4.4.1 websockets-5.0.1
websockets-5.0.1 is installed, but now ether_sql: command not found
what i have to do after i install the requirements?
$ ls envname/bin/
1.python -V
Python 2.7.12
python3 -V
Python 3.5.2
2.ls envname/bin/
activate activate.fish easy_install pip pip2.7 python2 python-config
activate.csh activate_this.py easy_install-2.7 pip2 python python2.7 wheel
The folder envname/bin
does not contain the file ether_sql
which means that the ether_sql library has not been installed.
This is a ls
on my virtualenv
ankit:~/projects/ether_sql$ ls venv/bin/
activate chardetect ether_sql pip3.6 python rst2html.py rst2s5.py sphinx-build
activate.csh coverage flower pybabel python3 rst2latex.py rst2xetex.py sphinx-quickstart
activate.fish coverage3 mako-render __pycache__ python3.6 rst2man.py rst2xml.py wheel
activate_this.py coverage-3.6 pbr pygmentize python-config rst2odt_prepstyles.py rstpep2html.py
alembic easy_install pip pytest rst2html4.py rst2odt.py sphinx-apidoc
celery easy_install-3.6 pip3 py.test rst2html5.py rst2pseudoxml.py sphinx-autogen
You would basically need to
virtualenv -p python3.6 envname
source envname/bin/activate
pip install -e . -r requirements.txt
yupi, python 3.6 saved me, it works.
thank you Ankit :)
Describe the bug ether_sql command doesn't work, getting that error:
but, my websockets = 6.0
To Reproduce install everything as there: https://ether-sql.readthedocs.io/en/latest/installation.html, then use ether_sql command
Expected behavior ether_sql command to work
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information): ubuntu 16.04