test pip3 install web3py on ubuntu docker container, known work must
install cython3 to ensure gevent source can be build by gcc, and the
procedure must clone repo first then run python3 setup.py install, then you
can successful pip3 install web3py (inefficient i think), detail steps on
test 5 below
*error traceback*
Collecting web3py
Downloading https:
//files.pythonhosted.org/packages/ee/a2/f57e1fefb0c62b4423fd76ea359d58d2363982054050b8c0ab54ed4b84c5/web3py-0.1.20190426.tar.gz
Complete output from command python setup.py egg_info:
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-fedj6ohs/web3py/setup.py", line 25, in <module>
long_description=__doc__ + ' (%s)' % get_hash(),
File "/tmp/pip-build-fedj6ohs/web3py/setup.py", line 13, in get_hash
return subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip
().decode('utf8')
File "/usr/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/usr/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['git', 'rev-parse', 'HEAD']'
returned non-zero exit status 128.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-
build-fedj6ohs/web3py/
*test 1 steps : return error traceback above*
apt install -y git python3-pip cython3
pip3 install web3py
*test 2 steps : return error traceback above*
apt install -y git python3-pip cython3
cd
git init
pip3 install web3py
*test 3 steps : return error traceback above*
apt install -y git python3-pip cython3
cd
git clone https://github.com/web2py/web3py
cd web3py
pip3 install web3py
*test 4 steps : return error traceback above*
apt install -y git python3-pip cython3
cd
git clone https://github.com/web2py/web3py
cd web3py
pip3 install -U -r requirements.txt
pip3 install web3py
*test 5 steps : work*
apt install -y git python3-pip cython3
cd
git clone https://github.com/web2py/web3py
cd web3py
python3 setup.py clean
python3 setup.py build
python3 setup.py install
pip3 install web3py
python3 -c "from pydal.validators import CRYPT;
open('password.txt','w').write(str(CRYPT()('a' )[0] ) )"
touch apps/__init__.py
/usr/local/bin/web3py-start -p ./password.txt -a 0.0.0.0:8000 ./apps
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/e130cce2-43de-44ec-bf9e-edbd267008cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.