chat.freenode.net #tryton log beginning Fri Oct 12 00:00:01 CEST 2018 | ||
-!- thaneor(~lenovo3@179.26.55.31) has joined #tryton | 23:53 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:57 | |
-!- yangoon(~mathiasb@i59F5F32F.versanet.de) has joined #tryton | 02:42 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 05:03 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 05:46 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:46 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 06:57 | |
-!- vmora(~vmora@aracar.oslandia.net) has joined #tryton | 07:21 | |
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton | 08:34 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 09:33 | |
LordVan | hi | 09:34 |
---|---|---|
LordVan | i was just wondering .. is it possible to have some sort of interactive shell that can be connected to trytond ? (like ipython) | 09:35 |
Timitos | LordVan: i use proteus inside ipython notebook quite often | 09:37 |
LordVan | Timitos, ah cool thanks good to know that works | 09:38 |
LordVan | do you know of a howto about that somewhere? | 09:38 |
LordVan | to get started i mean | 09:40 |
Timitos | LordVan: no. but its quite simple. you only need to: | 09:40 |
Timitos | from proteus import config, Model | 09:40 |
Timitos | proteus_config = config.set_trytond(........) | 09:40 |
Timitos | or: proteus_config = config.set_xmlrpc(.....) if the trytond is not on the same machine | 09:41 |
LordVan | thanks i shall try | 09:41 |
LordVan | it is on the same (test) machine | 09:41 |
LordVan | pcfg = config.set_trytond(database='tryton', config_file='/etc/tryon/trytond.conf') | 09:47 |
LordVan | gets me an error | 09:47 |
LordVan | ImportError: No module named 'trytond.backend.' | 09:47 |
LordVan | (pasting the full trace in a sec on a pastebin) | 09:47 |
LordVan | ah | 09:47 |
LordVan | wait | 09:48 |
LordVan | seems to be i am missing something | 09:48 |
LordVan | ValueError: not enough values to unpack (expected 1, got 0) | 09:48 |
LordVan | ep, = pkg_resources.iter_entry_points( | 09:48 |
LordVan | ---> 32 'trytond.backend', db_type) | 09:48 |
-!- csotelo(~csotelo@2800:200:f400:23c1:83dd:9b29:5c88:1c4c) has joined #tryton | 10:27 | |
Timitos | LordVan: is it working now? otherwise the full traceback would be helpful | 10:33 |
cedk | LordVan: looks like you are not in the right virtualenv or right python version | 11:00 |
-!- mariomop(~quassel@host187.190-229-240.telecom.net.ar) has joined #tryton | 11:03 | |
LordVan | cedk, ah the python version might b it good point | 11:04 |
LordVan | hmm no it is the correct version (the same running trytond) - and i installed it globally iwth the ebuilds | 11:05 |
LordVan | though it'd hepl if I did not have a typon in the config path ^^ | 11:11 |
LordVan | cedk, it would be nice if there was an error that said something like "config file not found" ;) | 11:11 |
cedk | LordVan: I guess we could raise an better error is backend name() return empty string | 11:33 |
LordVan | yeah i did overlook that typo quite a few times and the error message did not point me to an error opening the ocnfig file ;) | 11:35 |
cedk | LordVan: there is never error about opening config file because it is optional | 11:36 |
LordVan | yeah, but i mean simply if a config file is specified and not found an error saying that might be a good idea | 11:37 |
cedk | LordVan: it does not on purpose | 11:39 |
cedk | https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.read | 11:39 |
LordVan | ah | 11:47 |
LordVan | i suppose if you put it that way it makes sense | 11:47 |
LordVan | but maybe some debug logging when a path is invalid instead of an error? | 11:47 |
LordVan | you know only for debugging log level | 11:49 |
cedk | LordVan: there is already something like that | 11:55 |
LordVan | hmm must've missed it | 11:55 |
LordVan | my bad | 11:55 |
-!- thaneor1(~lenovo3@r186-48-91-51.dialup.adsl.anteldata.net.uy) has joined #tryton | 11:56 | |
-!- tafelgeschirr(~tafelgesc@5.104.149.54) has joined #tryton | 11:59 | |
cedk | LordVan: it depends of the version | 12:02 |
LordVan | 4.8.4 | 12:06 |
cedk | we get not a bad score for the new website: https://developers.google.com/speed/pagespeed/insights/?hl=en-US&utm_source=PSI&utm_medium=incoming-link&utm_campaign=PSI&url=new.tryton.org&tab=mobile | 12:45 |
-!- lukio(~lukio@host34.190-136-120.telecom.net.ar) has joined #tryton | 13:14 | |
mrichez | cedk: new web site is cool... i saw in events section: 10 years anniversary, is there something planned ? | 13:16 |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 13:23 | |
cedk | mrichez: nothing | 13:37 |
cedk | mrichez: but it will be great to have a news with some retrospective etc. | 13:38 |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 13:43 | |
-!- TidBJE(~TidB@ip189c25.banglalionwimax.com) has joined #tryton | 14:18 | |
-!- Chiron|_(~Chiron|_@186.14.148.77) has joined #tryton | 15:25 | |
-!- lukio(~lukio@host249.190-136-122.telecom.net.ar) has joined #tryton | 15:43 | |
-!- utack(~utack@175.195.35.44) has joined #tryton | 15:59 | |
-!- csotelo(~csotelo@2800:200:f400:23c1:83dd:9b29:5c88:1c4c) has joined #tryton | 16:41 | |
-!- sakuXZ(~saku@121.133.215.25) has joined #tryton | 16:43 | |
-!- FierceDeityLink(~FierceDei@LFbn-IDF1-1-44-44.w82-124.abo.wanadoo.fr) has joined #tryton | 16:50 | |
-!- paolo(~paolo@unaffiliated/paolo) has joined #tryton | 16:56 | |
-!- csotelo_(~csotelo@2800:200:f400:23c1:83dd:9b29:5c88:1c4c) has joined #tryton | 17:13 | |
-!- lucascastro(~lucascast@131.255.227.138) has joined #tryton | 17:16 | |
-!- lucascastro(~lucascast@131.255.227.138) has joined #tryton | 17:35 | |
-!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton | 17:45 | |
-!- rmu(~robert@cpe90-146-69-94.liwest.at) has joined #tryton | 18:05 | |
-!- lukio(~lukio@host249.190-136-122.telecom.net.ar) has joined #tryton | 18:51 | |
-!- themillsQ(~themill@c-73-229-215-48.hsd1.co.comcast.net) has joined #tryton | 18:56 | |
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton | 20:01 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!