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 #tryton00:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton01:05
-!- thaneor(~ldlc6@179.26.239.21) has joined #tryton04:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton08:05
-!- davemc(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton10:05
-!- davemc_(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton10:05
davemc_..10:05
davemc_hello Trytonites10:05
davemc_While installing from source, clean new install, on debian 1010:05
davemc_How do I install the sao web client files?10:05
davemc_tryton-env/sao seems to have some of them10:05
davemc_I've run npm install --production10:05
davemc_like I do have index.html, package.json etc10:05
davemc_but not custom.js custom.css etc10:05
davemc_How are these files generated?10:05
semariecustom.js and custom.css are ... custom files :)10:05
semarieyou could just create empty files if 404 is too ugly10:05
davemc_oh. ok10:05
davemc_how about dist/tryton-sao.min.js10:05
davemc_seems a bit more important10:05
semarienot necessary. sao will fallback to dist/tryton-sao.js if not found10:05
semariebut I agree that documented installed doesn't generate it10:05
semariedocumented installation* procedure*10:05
davemc_ah.10:05
davemc_GET /dist/tryton-sao.min.js HTTP/1.1" 405 -10:05
davemc_"GET /dist/tryton-sao.min.css HTTP/1.1" 405 -10:05
davemc_"GET /dist/tryton-sao.js HTTP/1.1" 405 -10:05
davemc_"GET /dist/tryton-sao.css HTTP/1.1" 405 -10:05
davemc_Which results in a blank user interface, ie no login box10:05
semarie405 for /dist/tryton-sao.{js,css} are unexpected10:05
davemc_Just the hamburger top left10:05
davemc_Ok, cool. Unexpected means something to fix10:05
davemc_Since those files aren't in the   hg clone, something must generate them?10:05
semarieI think there are generated by 'npm install --production'10:05
semarieACTION is checking10:05
davemc_ah.10:05
davemc_ok, so it runs but trips over10:05
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)10:05
davemc_I tried running    npx bower install --allow-root10:05
davemc_but no output and no .js file10:05
davemc_I'm trying now the npm install  method10:05
semarierunning './node_modules/grunt/bin/grunt dev' seems to generate them10:05
davemc_cool, excellent, thank you, will give that a try10:05
davemc_yup, it did make them10:05
semarieand with ./node_modules/grunt/bin/grunt uglify , it will generate tryton-sao.min.js10:05
davemc_ok. Interesting naming convention.10:05
davemc_yay, I've got a login box now.10:05
davemc_thank you so much for those pointers.10:05
semariethanks to you. I updated my build script :)10:05
davemc_excellent, good synergy.10:05
davemc_I'm documenting all my steps for clean install on clean OS10:05
davemc_will submit it when complet.e10:05
cedkI think we should put in the README to launch: npx grunt dev10:05
davemc_currently it just says   grunt dev10:05
cedkyes because npx did not exist at that time and we expected people to know where to find it10:05
semariecedk: I have a problem with po2json : 'Local Npm module "grunt-po2json" not found. Is it installed?'10:05
semarieI have such warnings after "npm install --production" :10:05
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.10:05
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.10:05
semarieACTION knows almost nothing to nodejs10:05
davemc_I see this WARN too10:05
cedksemarie: po2json should not be needed for production as json file are produced for the release11:05
semariebut I am running tip on production :)11:05
cedksemarie: using source code requires to install dev tools11:05
semarieas said, I know very little to nodejs. could you be more explicit ? I assume it is some 'npm install stuff' ?11:05
cedksemarie: if you run from source (not release), you must run "npm install" which will install po2json11:05
semarieok, it makes sense11:05
davemc_so how to install a suitable version of grunt so that grunt-po2json is happy?11:05
semariedavemc_: 'npm install' should install it11:05
semariea bit more fun for me: node_modules/puppeteer/lib/helper.js:279 Error: Unsupported platform: openbsd11:05
davemc_'should' and 'does' are at variance11:05
davemc_sao$ npm install11:05
davemc_npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info.11:05
davemc_> tryton-sao@5.7.0 postinstall /srv/tryton/tryton-env/sao11:05
davemc_> npx bower install11:05
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.11:05
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.11:05
davemc_audited 564 packages in 8.173s11:05
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"12:05
semarieI will open an issue12:05
cedksemarie: did you make an update first?12:05
semarieit fails on trytond-admin -m12:05
semarieI am trying to do trytond-admin --all first12:05
cedkthe schema must be always fixed first12:05
semarieyes, it seems that running "trytond-admin --all" first is fine, and next "trytond-admin -m" is fine too12:05
semarieok thanks, I will update my update script :)12:05
-!- thaneor(~ldlc6@179.26.31.33) has joined #tryton16:05
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton21:05

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