We have installation errors each time for ubuntu.
I tried couple of month ago with V12 and after posting numerus errors here… I would be able to install to Ubuntu 18. ( So it is like a very tuff procedure)
Earlier also same for V11
Now today, I have tried to install V11 to ubuntu and not success.
I use easy install script.
So can any one make this easy install script workable? please
when every time we do installation, it break why???
Here you seem to be installing on Red Hat or CentOS?
To confirm that try this:
[clarkej@zedi ~]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.7.1908 (Core)
Release: 7.7.1908
Codename: Core
[clarkej@zedi ~]$ uname -a
Linux zedi 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
The output is your guide what to do or enable to proceed. A web search like ‘centos epel-release install’ will get you pointers and clues.
I am installing on ubuntu 18
So if you get something like this
frappe@ubuntu1804lts:~/frappe-bench$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
The question is why is epel-release redhat-lsb-core
in the install argument list if that’s the case.
yes I can received the same
Enable IPV6 and things will work. It worked for me.
After enabling ipv6 the auto installer worked with no issues.
I did not get it. would you explain it.
I think it is a problem of script or something??
Update…
I am getting this now
sanath@debian:~$ sudo python3 install.py --production
Logs are saved under /tmp/logs/easy-install__2020-06-23__15-50.log
Checking System Compatibility…
debian 9 is compatible!
Extracting templates from packages: 100%
Installing curl…
curl installed!
wget already installed!
git already installed!
Installing pip3…
pip3 installed!
Failed building wheel for cryptography
Can’t rollback cryptography, nothing uninstalled.
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file =‘/tmp/pip-build-iggzkxl9/cryptography/setup.py’;f=getattr(tokenize, ‘open’, open)(file );code=f.read().replace(‘\r\n’, ‘\n’);f.close();exec(compile(code, file , ‘exec’))” install --record /tmp/pip-dlmk6d99-record/install-record.txt --single-version-externally-managed --compile” failed with error code 1 in /tmp/pip-build-iggzkxl9/cryptography/
Traceback (most recent call last):
File “install.py”, line 439, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python3.5/subprocess.py”, line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1
sanath@debian:~$
After ran the below CMD,
sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip
as mentioned in above error
I got this
-------------------------------------------
sanath@debian:~$ sudo -H python3 -m pip install --upgrade setuptools cryptograph y ansible==2.8.5 pip
[sudo] password for sanath:
Requirement already up-to-date: setuptools in /usr/local/lib/python3.5/dist-pack ages
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/56/3b/78c6816918fdf2405d6 2c98e48589112669f36711e50158a0c15d804c30d/cryptography-2.9.2.tar.gz
Collecting ansible==2.8.5
Collecting pip
Using cached https://files.pythonhosted.org/packages/43/84/23ed6a1796480a6f1a2 d38f2802901d078266bda38388954d01d3f2e821d/pip-20.1.1-py2.py3-none-any.whl
Requirement already up-to-date: six>=1.4.1 in /usr/local/lib/python3.5/dist-pack ages (from cryptography)
Requirement already up-to-date: cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.5/d ist-packages (from cryptography)
Collecting PyYAML (from ansible==2.8.5)
Collecting jinja2 (from ansible==2.8.5)
Using cached https://files.pythonhosted.org/packages/30/9e/f663a2aa66a09d83804 2ae1a2c5659828bb9b41ea3a6efa20a20fd92b121/Jinja2-2.11.2-py2.py3-none-any.whl
Requirement already up-to-date: pycparser in /usr/local/lib/python3.5/dist-packa ges (from cffi!=1.11.3,>=1.8->cryptography)
Collecting MarkupSafe>=0.23 (from jinja2->ansible==2.8.5)
Using cached https://files.pythonhosted.org/packages/b1/60/fa4afa6fb4547b46b24 bc679dd312242e0e579b4ee5651a2e5f50f814319/MarkupSafe-1.1.1-cp35-cp35m-manylinux1 _i686.whl
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokeni ze;__file__='/tmp/pip-build-rfpy0lxk/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compi le(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmppjhd_kpcpip-wheel- --python- tag cp35:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-i686-3.5
creating build/lib.linux-i686-3.5/cryptography
copying src/cryptography/exceptions.py -> build/lib.linux-i686-3.5/cryptograph y
copying src/cryptography/__init__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/__about__.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/utils.py -> build/lib.linux-i686-3.5/cryptography
copying src/cryptography/fernet.py -> build/lib.linux-i686-3.5/cryptography
creating build/lib.linux-i686-3.5/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-i 686-3.5/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.linux-i686-3.5/crypto graphy/x509
copying src/cryptography/x509/oid.py -> build/lib.linux-i686-3.5/cryptography/ x509
copying src/cryptography/x509/name.py -> build/lib.linux-i686-3.5/cryptography /x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-i686-3.5/cryptography /x509
copying src/cryptography/x509/__init__.py -> build/lib.linux-i686-3.5/cryptogr aphy/x509
copying src/cryptography/x509/base.py -> build/lib.linux-i686-3.5/cryptography /x509
copying src/cryptography/x509/general_name.py -> build/lib.linux-i686-3.5/cryp tography/x509
creating build/lib.linux-i686-3.5/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.linux-i686-3.5/crypto graphy/hazmat
copying src/cryptography/hazmat/_der.py -> build/lib.linux-i686-3.5/cryptograp hy/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.linux-i686-3.5/cryptograp hy/hazmat
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-i686-3 .5/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/backends
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-i686-3 .5/cryptography/hazmat/bindings
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux -i686-3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-i686-3.5 /cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-i686- 3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-i686-3.5 /cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-i686-3 .5/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-i686- 3.5/cryptography/hazmat/primitives
creating build/lib.linux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-i68 6-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.l inux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux -i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.l inux-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux- i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-i 686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-i68 6-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux -i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux- i686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-i 686-3.5/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux -i686-3.5/cryptography/hazmat/backends/openssl
creating build/lib.linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib. linux-i686-3.5/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux -i686-3.5/cryptography/hazmat/bindings/openssl
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-i68 6-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-i686 -3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux- i686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-i 686-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-i6 86-3.5/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux -i686-3.5/cryptography/hazmat/primitives/kdf
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux -i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib. linux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.li nux-i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux- i686-3.5/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux- i686-3.5/cryptography/hazmat/primitives/ciphers
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib. linux-i686-3.5/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.lin ux-i686-3.5/cryptography/hazmat/primitives/twofactor
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/ lib.linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.l inux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib. linux-i686-3.5/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/li b.linux-i686-3.5/cryptography/hazmat/primitives/serialization
creating build/lib.linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.lin ux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.l inux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib .linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.li nux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib. linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux -i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linu x-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux -i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib. linux-i686-3.5/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.li nux-i686-3.5/cryptography/hazmat/primitives/asymmetric
running egg_info
writing top-level names to src/cryptography.egg-info/top_level.txt
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vect ors'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching '.azure-pipelines'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files matching '*' found under directory '.azu re-pipelines'
warning: no previously-included files matching '*' found under directory '.tra vis'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'rtd-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-i686-3.5/_padding.c'
creating build/temp.linux-i686-3.5
generating cffi module 'build/temp.linux-i686-3.5/_constant_time.c'
generating cffi module 'build/temp.linux-i686-3.5/_openssl.c'
building '_openssl' extension
creating build/temp.linux-i686-3.5/build
creating build/temp.linux-i686-3.5/build/temp.linux-i686-3.5
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-F5oRAB/python3.5-3.5.3=. -fstack-protecto r-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-i686-3.5/_openssl.c -o build/temp. linux-i686-3.5/build/temp.linux-i686-3.5/_openssl.o -Wconversion -Wno-error=sign -conversion
build/temp.linux-i686-3.5/_openssl.c:546:30: fatal error: openssl/opensslv.h: No such file or directory
#include <openssl/opensslv.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography
Installing collected packages: cryptography, PyYAML, MarkupSafe, jinja2, ansible , pip
Found existing installation: cryptography 1.7.1
Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside env ironment /usr
Running setup.py install for cryptography ... error
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Can't rollback cryptography, nothing uninstalled.
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rfpy0lxk/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-35srmn16-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rfpy0lxk/cryptography/
sanath@debian:~$
1 Like
Have any one successfully install to Ubuntu server 18 using easy install script recently?
I used fresh server.
I didn’t face this issue the last time I ran the install script, but seems like there’s an issue installing cryptography. Can you check by running the script by removing just cryptography
from that line?
bedo
June 24, 2020, 7:54pm
15
Hi, I installed just a few days ago, LTS.18.04.
But I didn’t install under frappe user but as root. User frappe is created automatically by the script.
python3 install.py --production --user frappe
I upgraded from centos7 where I had erpnext v10.
At that time I used this to install
So now with ubuntu I followed the same, of course not all commands but steps in general.
system
Closed
July 8, 2020, 7:54pm
16
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.