IRC logs of #tryton for Wednesday, 2019-03-27

chat.freenode.net #tryton log beginning Wed Mar 27 00:00:01 CET 2019
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton00:43
-!- trytonnoob(~trytonnoo@110.54.223.65) has joined #tryton01:07
-!- trytonnoob(~trytonnoo@180.191.156.72) has joined #tryton01:47
-!- shard__(~shard@223.74.176.42) has joined #tryton02:10
-!- yangoon(~mathiasb@i59F5F276.versanet.de) has joined #tryton03:57
-!- trytonnoob(~trytonnoo@110.54.223.65) has joined #tryton04:52
-!- kapil____(uid36151@gateway/web/irccloud.com/x-wqhbwsmyasdkoyoe) has joined #tryton05:19
-!- trytonnoob(~trytonnoo@180.191.156.72) has joined #tryton05:22
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:31
-!- thaneor1(~lenovo3@r179-25-81-216.dialup.adsl.anteldata.net.uy) has joined #tryton07:01
-!- gdrius(~gdrius@m90-143-68-36.cust.tele2.lt) has joined #tryton07:17
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:53
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:54
-!- andrew_(~andrew@host86-173-92-121.range86-173.btcentralplus.com) has joined #tryton07:56
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton09:03
sisalpwifasoi: Hello, membership for association is a generic need. You may consider proposing a blueprint and set up a discussion in the community, so your module could be mainstream later.09:29
sisalpwifasoi: sorry, I didn't notice pokoli already gave this advice.09:34
mrichezhi, need some advices... when doing a patch in tryton_env, i'm cloning tryton-env in a directory with the id of the issue, then i'm creating a virtualenv... how to add all dependencies in pip? i'm doing "python setup.py developp" in trytond, but when doing tests on a module, i'm always getting dependencies errors. So i've to go into module directory and launching setup.py. Is there another way ? Do you use a script to automate all the process (cloning,10:10
mrichezcreating sqlite database, virtualenv and adding dependencies)? or do you execute a pip install with a txt file having all tryton dependencies inside?10:10
pokolimrichez: you have to manually install them10:38
pokolimrichez: that's what I execute:  pip install python-stdnum stripe febelfin-coda csb43 ldap3 simpleeval cached_property ofxparse zeep PyPDF210:38
pokolimrichez: and then python setup.py develop in trytond to get server on path and install dependencies10:38
pokoliindeed i have no text file but i store the command on my shell history :)10:39
mrichezpokoli: ok, i remember i already ask the question in google groups10:39
pokolimrichez: don't worry I understand it is something that we do not do frequently :)10:39
mrichezmaybe i'll write a small script to automate this kind of task10:39
mrichezpokoli: you keep always the same tryton repo for patch ?10:40
mrichezpokoli: it seems complicated when you have multiple issues at the same time10:41
nicoemrichez: What you could do is having a requirements.txt file somewhere and in your virtualenv do something like "pip install -r path_to_requirements.txt"10:48
nicoemrichez: I have only one virtualenv for tryton dev in fact10:48
nicoemrichez: (well maybe two in case I need to work on python2.7 but it's more and more rare)10:49
mrichezok, so one or two virtualenv and multiple tryton-env clones for each patch..10:52
nicoemrichez: That's what I do10:52
mrichezok, thanks nicoe and pokoli!10:54
-!- mariomop(~quassel@host211.201-253-197.telecom.net.ar) has joined #tryton11:04
pokolicedk: it is possible to restore the country translations for catalan language on pootle?11:05
pokoliit seems somebody translated them using the wrong language: http://pootle.tryton.org/ca/tryton/translate/country.po#filter=all&unit=52700611:05
pokolihere is the culprit: http://pootle.tryton.org/user/parviz.homayun/11:06
cedkpokoli: I guess you can upload an updated file11:14
cedkpokoli: but I do not understand how he could translate other languages11:15
pokolicedk: neither do I, but it's all the module that has been translated11:16
cedkhe has only permission for persian11:16
pokolicedk: I will upload the file from the 5.0 series and complete the translation, thanks for the tip11:17
cedknormally, we should process to update country and currency modules with pycountry11:17
cedkpokoli: you can contact him to understand what he did11:19
pokolicedk: done, will keep you informed11:26
mricheznicoe: one more question about dependencies and virtualenv... so you have multiple tryton-env for issues, but which trytond and proteus do you use in your virtualenv ? to run the tests, i have to install in develop mode the trytond in the directory of issue i'm working in... so if i switch to another issue, i'll have to uninstall trytond in pip, and then reinstall trytond from other issue directory ?12:35
wifasoiI found out that tryton doesn't like the developer mode/editable ... Bud didn't have time to debug the problem, a workarround is to manually create a simlink in the venv folder from the project folder to the trytond/module folder12:40
nicoemrichez: I don't install trytond or proteus in my virtualenv12:40
nicoemrichez: If you run your script from the root of your tryton-env you can import trytond or proteus12:41
mricheznicoe: in tryton-env directory i'm executing this command : "python ./trytond/trytond/tests/run-tests.py -m party -c .trytond_sqlite.conf"12:43
mricheznicoe: and then i got ImportError: No module named 'trytond'12:43
wifasoi(misunderstood the question, but yes.. i need to find the root cause of why i can't install a module in dev/editable mode)12:44
nicoeI have a small script to run the test that adds in the PYTHONPATH trytond and proteus12:45
mricheznicoe: :-) and path is related to directory of your issue12:46
nicoemrichez: https://paste.debian.net/1074887/12:46
wifasoisisalp: I'll do wen i have some time, maybe I'll post the bleprint tomorrow12:47
mricheznicoe: thanks nicoe :-)12:48
-!- kapil____(uid36151@gateway/web/irccloud.com/x-rdpxszwqqastefkl) has joined #tryton14:05
-!- trytonnoob(b4bf9e79@gateway/web/freenode/ip.180.191.158.121) has joined #tryton15:52
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton15:54
-!- technoob(b4bf9e79@gateway/web/freenode/ip.180.191.158.121) has joined #tryton15:55
technoobhey guys15:55
technoobis this a good place to ask15:56
technoobis it possible to install trton on an ubuntu server15:56
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has left #tryton15:57
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton15:58
nicoetechnoob: Yes to both questions16:04
technoobis there like a step by step process to install the server on ubuntu16:07
technoob@nicoe16:10
technoobnicoe16:10
nicoetechnoob: http://www.tryton.org/download16:13
nicoeYou can either use the docker image16:13
nicoeOr the ubuntu packages directly16:14
nicoeThe docker image is probably easier for the newcomers as it sets up the database etc16:15
nicoe(read its readme)16:15
nicoehttps://hub.docker.com/r/tryton/tryton/16:15
technoobinstalling the server is using this command pip install trytond16:18
technoobam i right?16:18
technoobnicoe:16:18
nicoepip is a method to install python packages on your computer16:20
nicoetrytond is a python package16:20
nicoeSo it can work but you have to understand the difference between using docker, the ubuntu packages or the python packages16:21
-!- yangoon(~mathiasb@i59F5F276.versanet.de) has joined #tryton16:59
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton17:20
-!- nicoe(~nicoe@2a02:578:858c:500:7e2a:31ff:fe5e:b25d) has joined #tryton17:27
-!- csotelo(~csotelo@181.67.16.48) has joined #tryton17:47
-!- Richard(beab7279@gateway/web/freenode/ip.190.171.114.121) has joined #tryton18:36
-!- Guest1510(beab7279@gateway/web/freenode/ip.190.171.114.121) has left #tryton18:40
-!- RichardVong(beab7279@gateway/web/freenode/ip.190.171.114.121) has joined #tryton18:47
-!- thaneor(~lenovo3@179.26.105.61) has joined #tryton19:04
pokoli /exit19:11
BuglouseGetting an ascii encode error, tried with PYTHONIOENCODING=utf-8; http://ix.io/1EEC20:31
-!- semarie(~semarie@unaffiliated/semarie) has joined #tryton21:01
cedkBuglouse: your database is not UTF-821:39
cedkBuglouse: http://docs.tryton.org/projects/server/en/latest/topics/setup_database.html#create-a-database21:39

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