Closed chdecultot closed 8 years ago
Can you give me the output of git status
inside the frappe and erpnext folders inside frappe-bench/apps?
Hi vjFalk,
The frappe folder has been created with the easy install but not the ERPNext folder:
~/frappe-bench/apps$ ls
frappe
Here is the status of the frappe folder:
~/frappe-bench/apps/frappe$ git status
On branch develop
Your branch is up-to-date with 'upstream/develop'.
nothing to commit, working directory clean
What does bench worker
give you? Try running from within the frappe-bench directory:
./env/bin/pip install -e ./apps/frappe
and then do bench start
again
Off topic : Any reason you're doing a development setup on a DO Droplet?
@chdecultot After failing did you install python-ldap
and its dependencies manually after which had got to see successful installation message ?
@shreyasp Good catch
@chdecultot
Looking back at your error log. I think running sudo -H pip install python-ldap
followed by ./env/bin/pip install -e ./apps/frappe
from frappe-bench should do the trick!
Here is the result of bench worker
~/frappe-bench$ bench worker
Usage: bench [OPTIONS] COMMAND [ARGS]...
Error: No such command "worker".
When running ./env/bin/pip install -e ./apps/frappe
, I have the following result:
Command "/home/ch/frappe-bench/env/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oYaL2f/python-ldap/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-dAuNnr-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ch/frappe-bench/env/include/site/python2.7/python-ldap" failed with error code 1 in /tmp/pip-build-oYaL2f/python-ldap/
So I installed sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
before running ./env/bin/pip install -e ./apps/frappe
again (sorry I did that before you posted your next message @vjFaLk ).
And this time got no error.
So I continued the installation of ERPNext manually and it worked fine:
bench get-app erpnext https://github.com/frappe/erpnext
bench new-site site1.local
bench --site site1.local install-app erpnext
bench start
You were right @shreyasp , the problem was that python-ldap
was missing.
Would it be possible to update the easy install script to avoid other people having a similar issue?
And @vjFaLk , to answer your question regarding a development environment on DO, I have just made an habit of setting up all my development workflow on remote servers. It is just more convenient for me :-)
Thanks a lot for your help guys.
Best regards, Charles-Henri
@chdecultot I am making PR with dependencies today itself. Thanks for reporting the issue.
Thanks a lot @shreyasp, I have successfully retested on an AWS-EC2 Machine with Ubuntu 16.04 (64bit):
Therefore this issue can be closed.
Hi all,
I have been trying to install bench today on two different machines: an AWS EC2 (Ubuntu 16.04 64bit/ 1 GB RAM) and a DigitalOcean Droplet (Ubuntu 16.04 64bit/ 2GB RAM).
Both machines were clean servers on which I run the exact following process with a non-root user ("Easy Install" process):
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python-minimal
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo -H python install.py --develop
But the install returns the same error as #285 which is already closed:
When trying to install again (
sudo -H python install.py --develop
), the installation seem to work:And then when trying to start the bench
bench start
in the frappe-bench folder, I get the following error:Several issues have been created and closed on similar issues, but it doesn't seem to work out-of-the-box as it should.
I would be grateful for any help solving this issue.
Thanks a lot in advance.
Charles-Henri