IRC logs of #tryton for Saturday, 2020-05-30

chat.freenode.net #tryton log beginning Sat 30 May 2020 12:00:01 AM CEST
-!- Quiquetom(~quique@121.6.133.37.dynamic.jazztel.es) has joined #tryton22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton23:36
-!- thaneor(~ldlc6@179.26.239.21) has joined #tryton02:30
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:59
-!- davemc(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton08:08
-!- davemc_(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton08:13
davemc_..08:16
davemc_hello Trytonites08:16
davemc_While installing from source, clean new install, on debian 1008:17
davemc_How do I install the sao web client files?08:18
davemc_tryton-env/sao seems to have some of them08:18
davemc_I've run npm install --production08:18
davemc_like I do have index.html, package.json etc08:20
davemc_but not custom.js custom.css etc08:20
davemc_How are these files generated?08:20
semariecustom.js and custom.css are ... custom files :)08:20
semarieyou could just create empty files if 404 is too ugly08:21
davemc_oh. ok08:21
davemc_how about dist/tryton-sao.min.js08:21
davemc_seems a bit more important08:21
semarienot necessary. sao will fallback to dist/tryton-sao.js if not found08:22
semariebut I agree that documented installed doesn't generate it08:22
semariedocumented installation* procedure*08:23
davemc_ah.08:23
davemc_GET /dist/tryton-sao.min.js HTTP/1.1" 405 -08:23
davemc_"GET /dist/tryton-sao.min.css HTTP/1.1" 405 -08:23
davemc_"GET /dist/tryton-sao.js HTTP/1.1" 405 -08:23
davemc_"GET /dist/tryton-sao.css HTTP/1.1" 405 -08:23
davemc_Which results in a blank user interface, ie no login box08:23
semarie405 for /dist/tryton-sao.{js,css} are unexpected08:24
davemc_Just the hamburger top left08:24
davemc_Ok, cool. Unexpected means something to fix08:24
davemc_Since those files aren't in the   hg clone, something must generate them?08:24
semarieI think there are generated by 'npm install --production'08:24
semarieACTION is checking08:25
davemc_ah.08:25
davemc_ok, so it runs but trips over08:25
davemc_npm WARN lifecycle tryton-sao@5.7.0~postinstall: cannot run in wd tryton-sao@5.7.0 npx bower install (wd=/srv/tryton/tryton-env/sao)08:25
davemc_I tried running    npx bower install --allow-root08:27
davemc_but no output and no .js file08:27
davemc_I'm trying now the npm install  method08:29
semarierunning './node_modules/grunt/bin/grunt dev' seems to generate them08:31
davemc_cool, excellent, thank you, will give that a try08:31
davemc_yup, it did make them08:33
semarieand with ./node_modules/grunt/bin/grunt uglify , it will generate tryton-sao.min.js08:34
davemc_ok. Interesting naming convention.08:34
davemc_yay, I've got a login box now.08:35
davemc_thank you so much for those pointers.08:35
semariethanks to you. I updated my build script :)08:35
davemc_excellent, good synergy.08:36
davemc_I'm documenting all my steps for clean install on clean OS08:36
davemc_will submit it when complet.e08:36
cedkI think we should put in the README to launch: npx grunt dev08:45
davemc_currently it just says   grunt dev08:45
cedkyes because npx did not exist at that time and we expected people to know where to find it08:48
semariecedk: I have a problem with po2json : 'Local Npm module "grunt-po2json" not found. Is it installed?'08:55
semarieI have such warnings after "npm install --production" :08:55
semarienpm WARN grunt-xgettext@0.3.5 requires a peer of grunt@~0.4.5 but none is installed. You must install peer dependencies yourself.08:55
semarienpm WARN grunt-po2json@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.08:55
semarieACTION knows almost nothing to nodejs08:56
davemc_I see this WARN too08:57
cedksemarie: po2json should not be needed for production as json file are produced for the release09:02
semariebut I am running tip on production :)09:03
cedksemarie: using source code requires to install dev tools09:04
semarieas said, I know very little to nodejs. could you be more explicit ? I assume it is some 'npm install stuff' ?09:06
cedksemarie: if you run from source (not release), you must run "npm install" which will install po2json09:07
semarieok, it makes sense09:08
davemc_so how to install a suitable version of grunt so that grunt-po2json is happy?09:08
semariedavemc_: 'npm install' should install it09:09
semariea bit more fun for me: node_modules/puppeteer/lib/helper.js:279 Error: Unsupported platform: openbsd09:11
davemc_'should' and 'does' are at variance09:11
davemc_sao$ npm install09:11
davemc_npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.09:11
davemc_> tryton-sao@5.7.0 postinstall /srv/tryton/tryton-env/sao09:11
davemc_> npx bower install09:11
davemc_npm WARN grunt-xgettext@0.3.5 requires a peer of grunt@~0.4.5 but none is installed. You must install peer dependencies yourself.09:11
davemc_npm WARN grunt-po2json@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself.09:11
davemc_audited 564 packages in 8.173s09:11
semariecedk: I have a problem with "Check price_decimal configuration" I think. when running trytond-admin I have exception "psycopg2.errors.UndefinedColumn: column a.product_price_decimal does not exist"10:19
semarieI will open an issue10:19
cedksemarie: did you make an update first?10:21
semarieit fails on trytond-admin -m10:21
semarieI am trying to do trytond-admin --all first10:21
cedkthe schema must be always fixed first10:23
semarieyes, it seems that running "trytond-admin --all" first is fine, and next "trytond-admin -m" is fine too10:23
semarieok thanks, I will update my update script :)10:23
-!- thaneor(~ldlc6@179.26.31.33) has joined #tryton14:33
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton19:02

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!