sources:https://github.com/frappe/frappe https://frappe.io/
Make sure you have build-essential & python-setuptools installed, if not hit apt-get install build-essential python-setuptools
wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
python install.py --develop --user frappe
bench start
bench run-tests
Problem-1 frappe.exceptions.LinkValidationError: Could not find Parent Item Group: All Item Groups
cd ~/frappe-bench/ ##Didnt worked but https://discuss.erpnext.com/t/update-error-in-frappe-get-single-domain-settings-save/30198/4
bench --site site_name console
doc = frappe.new_doc("Item Group")
doc.update({
"item_group_name": "All Item Groups",
"is_group": 1
})
doc.insert()
frappe.db.commit() # committing changes to database
Problem-2 frappe.exceptions.LinkValidationError: Could not find Default Unit of Measure: Unit
need to configure outgoing email.. error reported in run-tests's output
python install.py --develop --user frappe ##Failed at "get erpnext" retried with next.
bench get-app erpnext https://github.com/frappe/erpnext --branch develop
attempt-4 #bench already installed. starting fresh frappe setupe
bench init /home/frappe/erpnext_test #This downloads frappe from git and configures well..
cd erpnext_test
20180113:-------
Spinned new ubuntu VPC.. installed bench and frappe + erpnext using above link and easy install steps. Things didnt worked. Performed following to check with new frappe app creation..
mkdir -p /home/frappe/projects
cd /home/frappe/projects
bench init frappe_test #This created frappe_test folder and configured frappe in it.
bench start #Starts but cannot get to any thing as there were no site installed.. stopped it by Ctrl + C
bench new-app frappe_ex1 # It asks for few details about app being created..
bench new-site frappe_site1 # Asks for db and admin password.. and setups new site with given name..
bench use frappe_site1 #sets frappe_site1 site as default site.
bench --site frappe_site1 install frappe_ex1 #installs app to site..
bench start # started properly , but in browser got nothing in login link. on browser's console js syntax errors were reported in frappe.web.min.js file..
ctrl + c #stopped running site. switching to master branch of frappe, as errors were for frappe files..
cd apps/frappe
git checkout -b remotes/upstream/master
bench update --reset
bench start #And you are good to go developing new apps using frappe...
-------