Thanks you for all fo the hard work on python 3 and yarn and rollup, but everything is broken.
If you get this to work, its a miracle of trying several things some of which you need to do over and over again. i finally got it working after following 4 different bug threads. Once I got it working i was determined to recreate a clean docker build from scratch to help others struggling and now i am stuck again. Could someone please take the time to explain how to build from a clean frappe_docker build. Basically it is impossible and people are closing bug tickets and discuss topics without any consensus or resolution and the community is pretty frustrated. I have also tried to run frappe_docker with bench switch-to-master with no success. Someone please post end to end instructions for either frappe_docker on master branches so we donāt have to deal with the completely broken develop or a way to get develop to build.
Hi joshreeder is correct, my systems are totally bricked! I canāt switch to master due to one error (pymysql.err.IntegrityError: (1048, u"Column ātranslatableā cannot be null")), and develop has another (Invalid Token ā.ā in css file when compiling the reports js)
I spent hours yesterday trying to get it working, installed yarn, rollup, and other packages, but I canāt get anything to work. I too followed countless fixes, the only one I couldnāt try is that package.json-lock that someone posted.
As to josh and/or me moaning about āfreeā software, yes agreed but please also consider that ONE āhelpfulā dev can upload something to brick 100ās or 1000ās of peoples machines (eg, this happened recently with yarn! but I think they revoked his access permissions since!)ā¦ and when you add up all that misery, time, and cost, it can be quite a large toll on the community ā imagine if some of those people will move on to other software, overall net loss for the project as a whole.
And itās this dev, that seems to be on the forums saying āhey! brand new build system, letās have some fun and all debug it together!ā which is hard to stomach when youāre not on the same level
I take the whole blame, for not testing the new update on my test servers, etc - but I think a lot of people like me are gravitating towards organisations that test before release themselves (eg, Debian) - as it saves 1000s of man years globally this way.
But having said that, if anyone can help us please, letās meet in the gitter chat room. I have some PayPal for bounty.
Yarn is on develop branch, it has not been merged to master, so itās better to wait to upgrade on master and yarn must be installed as global so u need to run command as root: npm install -g yarn.
And VM virtual image could be not updated as now we are on 10.1 on both frappe and erpnext
so, problem here is not frappe, bench working on not ā¦problem is knowledge ā¦sorry to say that, but you cannot state itās not working because of issues while it has not been installed properly ā¦
Yes indeed. When I ran bench update I would have loved to have seen Warning: New build system, are you sure?. But instead, I lacked the knowledge, and ran the commandā¦ which then bricked my system.
I just tried npm install -g yarn as root, and re-run bench update as frappe user. No change, same error.
My hunch is, because itās getting stuck on ā.ā inside a css file, weāre missing a babel-plugin in the package.json that is provided by bench. And maybe when I try installing packages, they are getting wiped as part of bench update. Iām only guessing, I donāt know. Iām just 8 hours into running a simple ābench updateā ā¦ lost for ideasā¦ please help us and I am sorry we both appear to be ungratefulā¦
/home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/clusterize.min.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/lib/frappe-datatable.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/report_factory.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/report_view.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/reportview_footer.html, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/query_report.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/grid_report.js, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/print_grid.html, /home/frappe/frappe-bench/apps/frappe/frappe/public/js/frappe/views/reports/print_tree.html ā ../../sites/assets/js/report.min.js...
[!] Error: Unexpected token
../../node_modules/frappe-datatable/dist/frappe-datatable.css (4:0)
2: /* variables */
3:
4: .data-table {
^
5:
6: /* styling */
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v6.7.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! frappe@ production: `FRAPPE_ENV=production rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frappe@ production script 'FRAPPE_ENV=production rollup -c'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frappe package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! FRAPPE_ENV=production rollup -c
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs frappe
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls frappe
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! Please include the following file with any support request:
npm ERR! /home/frappe/frappe-bench/apps/frappe/npm-debug.log
________________________________________________________________________________
Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community
()
frappe@78b08a83ecaf:~/frappe-bench$
I agree. Look at this as an /opportunity/, to add the warning before master branch gets it. This warning would be totally sane, because frappe runs as frappe user usually, and the yarn stuff is a root job.
frappe@78b08a83ecaf:~/frappe-bench$ bench update --requirements
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
Updating node libraries...
INFO:bench.utils:npm install
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.3
npm WARN frappe@ No description
________________________________________________________________________________
Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community
()
frappe@78b08a83ecaf:~/frappe-bench$
Isnāt frappe based on python 3? It mentions 2.7 in my logsā¦