IRC logs of #tryton for Friday, 2016-01-22

chat.freenode.net #tryton log beginning Fri Jan 22 00:00:02 CET 2016
2016-01-22 01:20 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-01-22 01:48 -!- faviod(~faviod@200.59.241.4) has joined #tryton
2016-01-22 01:49 -!- _Yul(~jcagbay@49.151.37.90) has joined #tryton
2016-01-22 01:50 -!- _Yul(~jcagbay@49.151.37.90) has left #tryton
2016-01-22 01:54 -!- yulx(~jcagbay@49.151.37.90) has joined #tryton
2016-01-22 01:55 <yulx> hello...
2016-01-22 02:00 <yulx> I tried neso-setup-3.8.1-20151113.exe but there is a problem on '"No module named chardet".
2016-01-22 02:00 <yulx> May I ask here if how to fix?
2016-01-22 02:03 -!- faviod(~faviod@200.59.241.4) has joined #tryton
2016-01-22 03:02 -!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton
2016-01-22 03:25 -!- zodman_(~zodman@187.189.156.23) has joined #tryton
2016-01-22 05:47 -!- yulx(~jcagbay@49.151.37.90) has joined #tryton
2016-01-22 06:02 -!- yangoon(~mathiasb@p549F06FB.dip0.t-ipconnect.de) has joined #tryton
2016-01-22 07:40 -!- frispete(~frispete@p54A913F1.dip0.t-ipconnect.de) has joined #tryton
2016-01-22 07:48 -!- kstenger1(~karla@r186-50-17-158.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-01-22 08:09 -!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton
2016-01-22 08:34 -!- tbruyere(~smuxi@mail.saluc.com) has joined #tryton
2016-01-22 09:11 -!- mrichez(~smuxi@mail.saluc.com) has joined #tryton
2016-01-22 09:34 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-01-22 10:19 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-01-22 10:34 -!- cjbarnes18(~user@213.131.188.214) has joined #tryton
2016-01-22 10:56 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-01-22 11:05 -!- VlijmenFileer(~VlijmenFi@139.192.169.245) has joined #tryton
2016-01-22 11:07 -!- nicoe(~nicoe@2a02:a03f:3079:3200:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-01-22 11:09 <VlijmenFileer> Hey all. I have Tryton 3.8 on Debian testing. Want to try Sao.
2016-01-22 11:09 <VlijmenFileer> I downloaded 3.8 (seemed more logical than "development") from https://github.com/tryton/sao/
2016-01-22 11:10 <VlijmenFileer> I know nothing about Node.js or npm, so I tried the exact instructions
2016-01-22 11:10 <VlijmenFileer> Install (under my home dir), unzip, and npm install
2016-01-22 11:11 <VlijmenFileer> Unfortunately it gives errors....
2016-01-22 11:12 <VlijmenFileer> npm ERR! tryton-sao@3.8.3 postinstall: `bower install`
2016-01-22 11:12 <VlijmenFileer> npm ERR! Exit status 127
2016-01-22 11:12 <VlijmenFileer> npm ERR!
2016-01-22 11:12 <VlijmenFileer> npm ERR! Failed at the tryton-sao@3.8.3 postinstall script.
2016-01-22 11:12 <VlijmenFileer> npm ERR! This is most likely a problem with the tryton-sao package,
2016-01-22 11:12 <VlijmenFileer> npm ERR! not with npm itself.
2016-01-22 11:12 <VlijmenFileer> npm ERR! Tell the author that this fails on your system:
2016-01-22 11:12 <VlijmenFileer> npm ERR! bower install
2016-01-22 11:12 <VlijmenFileer> npm ERR! You can get their info via:
2016-01-22 11:12 <VlijmenFileer> npm ERR! npm owner ls tryton-sao
2016-01-22 11:12 <VlijmenFileer> npm ERR! There is likely additional logging output above.
2016-01-22 11:12 <VlijmenFileer> npm ERR! System Linux 4.2.0-1-amd64
2016-01-22 11:12 <VlijmenFileer> npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
2016-01-22 11:12 <cedk> VlijmenFileer: Please don't copy/paste in chan use pastebin
2016-01-22 11:12 <VlijmenFileer> npm ERR! cwd /home/user01/Sao38/sao-3.8
2016-01-22 11:12 <VlijmenFileer> npm ERR! node -v v4.2.4
2016-01-22 11:12 <VlijmenFileer> npm ERR! npm -v 1.4.21
2016-01-22 11:12 <VlijmenFileer> npm ERR! code ELIFECYCLE
2016-01-22 11:12 <VlijmenFileer> npm WARN This failure might be due to the use of legacy binary "node"
2016-01-22 11:12 <VlijmenFileer> Anybody who could give a quick hint?
2016-01-22 11:12 <VlijmenFileer> *Whack!* Ok, will remember that...
2016-01-22 11:13 <cedk> VlijmenFileer: what is you run bower install ?
2016-01-22 11:14 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-01-22 11:16 <VlijmenFileer> Hm that sounds like it is a separate tool. I assumed this "bower" (and "grunt") were part of npm.
2016-01-22 11:16 <VlijmenFileer> Again, sorry, I know nothing about Node.js plus tools...
2016-01-22 11:16 <cedk> VlijmenFileer: no bower is for browser side stuffs and grunt is to compile server side stuffs
2016-01-22 11:17 <cedk> VlijmenFileer: in npm we put a postinstall command to run: bower install
2016-01-22 11:17 -!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton
2016-01-22 11:17 <VlijmenFileer> "npm install -g bower"?
2016-01-22 11:17 <VlijmenFileer> And: "npm install -g grunt"?
2016-01-22 11:21 <cedk> VlijmenFileer: it should already be installed as it is the postinstall that fails
2016-01-22 11:27 <VlijmenFileer> Not sure... I was hasty, already "npm install -g bower" and that ran fine.
2016-01-22 11:27 <VlijmenFileer> Now I have /usr/local/lib/node_modules/bower/bin/bower (and no other modules there).
2016-01-22 11:28 <VlijmenFileer> Perhaps Debian does not give those modules bower and grunt "for free"?
2016-01-22 11:29 <cedk> VlijmenFileer: the sao package.json consider you will install all localy not globally
2016-01-22 11:55 <VlijmenFileer> Here again. Marginally increased my understanding. So it seems sao as downloaded brings with it a local bower and grunt.
2016-01-22 11:56 <VlijmenFileer> package.js wants "postinstall": "./node_modules/.bin/bower install"
2016-01-22 11:56 <VlijmenFileer> Running bower in that location gives "/usr/bin/env: node: No such file or directory"
2016-01-22 11:58 <VlijmenFileer> Which perhaps means I needs to install the whole node.js first, right?? (A)
2016-01-22 12:05 <cedk> VlijmenFileer: yes npm depends on node.js
2016-01-22 12:06 <aroncero> VlijmenFileer: apt-get install nodejs npm works for me
2016-01-22 12:06 <VlijmenFileer> I just noted I already got that as dependency with my npm install via apt-get
2016-01-22 12:07 <VlijmenFileer> I think this might be the problem, in package.json: "#!/usr/bin/env node"
2016-01-22 12:08 <VlijmenFileer> This means the binary "node" must be in $PATH, right? But for me it's not.
2016-01-22 12:08 <aroncero> VlijmenFilleer: try to use absolut route
2016-01-22 12:08 <aroncero> in my case: /usr/local/bin/bower install
2016-01-22 12:11 <aroncero> use "which bower" to find the absolute path
2016-01-22 12:14 <VlijmenFileer> aroncero: same result. i'm pretty sure it's that "node" does not exist as executable in my path
2016-01-22 12:14 <VlijmenFileer> My Debian does give me a "/usr/bin/nodejs". Maybe the same thing but different name?
2016-01-22 12:16 <aroncero> VlijmenFileer: I use Debian too
2016-01-22 12:18 <VlijmenFileer> Strange. I do find some confirmation of my suspicion:
2016-01-22 12:18 <VlijmenFileer> https://github.com/jlord/git-it/issues/118
2016-01-22 12:18 <aroncero> ln -s /usr/bin/nodejs /usr/bin/node
2016-01-22 12:20 <VlijmenFileer> Already :)
2016-01-22 12:23 <VlijmenFileer> Ugh. Another fail in npm install at bower... But now exit status 1 instead of 127.
2016-01-22 12:23 <VlijmenFileer> I need a feed. Back later. Thanks so far guys!
2016-01-22 12:47 -!- yulx(~jcagbay@49.151.37.90) has left #tryton
2016-01-22 12:56 -!- mariomop(~quassel@186.153.113.101) has joined #tryton
2016-01-22 13:26 <VlijmenFileer> Back again. Launching soa postinstall action on command line now shows it needs git to be installed.
2016-01-22 13:26 <VlijmenFileer> bower jquery#~2.1.1 ENOGIT git is not installed or not in the PATH
2016-01-22 13:27 <VlijmenFileer> Installing git ...
2016-01-22 13:41 <VlijmenFileer> npm install now gives lots of green messages, no error :)
2016-01-22 13:44 <VlijmenFileer> set data in [jsonrpc] in trytond.conf
2016-01-22 13:44 <VlijmenFileer> $grunt I guess has to be $./node_modules/.bin/grunt (not in path)
2016-01-22 13:54 -!- cjbarnes18(~user@213.131.188.214) has left #tryton
2016-01-22 14:03 <VlijmenFileer> I get a login interface in the webpage now. It has a header "database" without database name under it.
2016-01-22 14:04 -!- bechamel(~Adium@host-95-182-199-152.dynamic.voo.be) has joined #tryton
2016-01-22 14:04 <VlijmenFileer> Trying to login with user/pass as in tryton client gives zero reaction :(
2016-01-22 14:04 <VlijmenFileer> Anybody? Where does this interface make log files?
2016-01-22 14:05 <cedk> VlijmenFileer: in your browser
2016-01-22 14:12 <VlijmenFileer> cedk: What you mean, look at http in browser? I was thinking maybe node.js has logging.
2016-01-22 14:17 <cedk> VlijmenFileer: there is no node.js
2016-01-22 14:18 <cedk> VlijmenFileer: if you don't see the database, it is probably because there is an error in the browser
2016-01-22 14:20 <cedk> VlijmenFileer: and when I said "in the browser" I mean in the javascript console log
2016-01-22 14:49 -!- afk(~nf@ip-83-134-57-214.dsl.scarlet.be) has joined #tryton
2016-01-22 14:59 -!- faviod(~faviod@190.108.228.120) has joined #tryton
2016-01-22 15:18 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2016-01-22 15:54 -!- faviod(~faviod@190.108.228.120) has joined #tryton
2016-01-22 16:06 -!- meanmicio(~lfm@fsf/member/meanmicio) has joined #tryton
2016-01-22 17:30 <VlijmenFileer> cedk: Almost have to call it a day here. FWIW, in FF console I see that in the form for "Database", the entities <select id" login-database" and <input-id login-database are not displayed
2016-01-22 17:31 <cedk> VlijmenFileer: I'm not sure what you call console
2016-01-22 17:31 <VlijmenFileer> I have zero knowledge of web pogrammign and javascript. Don't know why they are not displayed. Will tinker on probably after the weekend.
2016-01-22 17:32 <cedk> VlijmenFileer: but there is a console and if there are errors, it will appear in it
2016-01-22 17:32 <VlijmenFileer> ctrl-shift-k in FF. It gives many options. This is in "Inspector"
2016-01-22 17:33 <VlijmenFileer> The Javascript part/console only gave me an "http://localhost/locale/en_US.json NOT FOUND" as error.
2016-01-22 17:33 <cedk> VlijmenFileer: ok so no error I guess
2016-01-22 17:33 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton
2016-01-22 17:34 <cedk> VlijmenFileer: did you prevent trytond to list the database?
2016-01-22 17:34 <cedk> VlijmenFileer: and can you connect to it with the native client?
2016-01-22 17:35 <VlijmenFileer> "list = True" in trytond.conf, and can connect successfully with native client
2016-01-22 17:36 <VlijmenFileer> In the Inspector console I can manually disable "display: none" lines under "Rules". Then the database selection field appears, but is empty
2016-01-22 17:38 <cedk> VlijmenFileer: are you connecting using trytond server?
2016-01-22 17:39 <cedk> VlijmenFileer: I mean is it trytond that server the webpage?
2016-01-22 17:41 <VlijmenFileer> OMG
2016-01-22 17:41 <VlijmenFileer> It now is. localhost:8000. And works.
2016-01-22 17:42 <VlijmenFileer> Sorry for bothering, but many thanks for the help. I really do not yet have a good idea of the architecture of this thing...
2016-01-22 17:43 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton
2016-01-22 17:43 <cedk> VlijmenFileer: browser doesn't allow javascript to communicate with other server than from where it was fetched
2016-01-22 17:44 <cedk> VlijmenFileer: but they are mechanism that are available but it requires web server configuration and it is much more complicate than just serving the page
2016-01-22 18:11 -!- kstenger(~karla@r186-50-17-158.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-01-22 18:15 -!- bvillasanti(~bvillasan@181.192.32.145) has joined #tryton
2016-01-22 19:52 -!- kstenger1(~karla@r190-134-133-221.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-01-22 19:55 -!- mariomop(~quassel@181.110.164.184) has joined #tryton
2016-01-22 23:24 <marc0s> I'm getting "relation "ir_configuration_id_seq" already exists" when setting up a new database from the client into a frshly installed 3.8 trytond, from pip, is it any known issue? search the bugtracker and found nothing.
2016-01-22 23:35 <cedk> marc0s: not aware of it
2016-01-22 23:36 <cedk> marc0s: which version of postgresql?
2016-01-22 23:37 <marc0s> cedk: 9.5
2016-01-22 23:41 <cedk> marc0s: https://bugs.tryton.org/issue5248
2016-01-22 23:41 <cedk> marc0s: only 4.0 will support 9.5
2016-01-22 23:43 <cedk> marc0s: or you can apply the patch
2016-01-22 23:43 <marc0s> cedk: oh, thanks for the link and the info
2016-01-22 23:44 <marc0s> cedk: actually I can stick to 9.4; should it be ok?
2016-01-22 23:47 <cedk> marc0s: yes
2016-01-22 23:48 <cedk> marc0s: indeed 9.5 just changed a little bit the output of search_path
2016-01-22 23:48 <cedk> marc0s: and so we don't parse it correctly and so trytond can not find back what it created
2016-01-22 23:50 <marc0s> cedk: i understand

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