IRC logs of #tryton for Friday, 2016-03-11

chat.freenode.net #tryton log beginning Fri Mar 11 00:00:04 CET 2016
-!- bvillasanti(~bvillasan@138.117.21.56) has joined #tryton00:31
-!- bvillasanti(~bvillasan@138.117.21.56) has joined #tryton00:36
-!- JosDzGx(~Thunderbi@189.130.232.144) has joined #tryton02:08
-!- mbtamuli12(mbtamuli12@gateway/shell/blinkenshell.org/x-lquczzmvxilqnbrp) has left #tryton02:10
-!- JosDzGx(~Thunderbi@187.188.72.34) has joined #tryton02:13
-!- flook_(pakhandiba@nat/iiit/x-rcphdmflsohbxdga) has joined #tryton04:24
-!- leio(~leio@gentoo/developer/leio) has joined #tryton04:41
-!- kstenger(~karla@r167-56-238-108.dialup.adsl.anteldata.net.uy) has joined #tryton06:49
-!- toshad(uid150688@gateway/web/irccloud.com/x-qyjclfbbplbghgmf) has joined #tryton07:02
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton07:09
-!- vivekjain(0e8b5206@gateway/web/cgi-irc/kiwiirc.com/ip.14.139.82.6) has joined #tryton07:19
-!- frispete_(~frispete@p54A91EAB.dip0.t-ipconnect.de) has joined #tryton07:40
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton07:46
-!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton07:48
-!- dj_xatra(~dj_xatra@217.166.83.130) has joined #tryton08:04
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton08:06
-!- kstenger1(~karla@r186-54-31-240.dialup.adsl.anteldata.net.uy) has joined #tryton08:15
-!- udono(~udono@ip-178-202-239-138.hsi09.unitymediagroup.de) has joined #tryton08:20
-!- toshad(uid150688@gateway/web/irccloud.com/x-qyjclfbbplbghgmf) has joined #tryton08:21
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton08:53
-!- toshad(uid150688@gateway/web/irccloud.com/x-qyjclfbbplbghgmf) has joined #tryton08:54
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton08:54
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton09:12
-!- harindersingh(6705860a@gateway/web/freenode/ip.103.5.134.10) has joined #tryton09:40
-!- harindersingh(6705860a@gateway/web/cgi-irc/kiwiirc.com/ip.103.5.134.10) has joined #tryton09:41
-!- manipalsingh(manipalsin@nat/iiit/x-loamcrmxauquhnof) has joined #tryton10:29
-!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton10:58
-!- smarro(~sebastian@181.16.7.104) has joined #tryton11:41
-!- flook(pakhandiba@nat/iiit/x-eiofhwwldpbxjmuv) has joined #tryton11:47
-!- mariomop(~quassel@host101.181-1-255.telecom.net.ar) has joined #tryton12:17
-!- harindersingh(6705860a@gateway/web/cgi-irc/kiwiirc.com/ip.103.5.134.10) has joined #tryton12:26
-!- ccaz(~ccr@80.215.169.72) has joined #tryton12:57
-!- flook(pakhandiba@nat/iiit/x-kzmgkbyqiouiivkd) has joined #tryton13:08
-!- bvillasanti(~bvillasan@138.117.21.56) has joined #tryton14:29
-!- lukio(~lukio@host126.186-109-85.telecom.net.ar) has joined #tryton15:12
-!- nicoe(~nicoe@balisto.wifi.b2ck.com) has joined #tryton15:18
-!- gremly(~gremly@190.85.36.58) has joined #tryton15:20
-!- umeshksingla_(uid137324@gateway/web/irccloud.com/x-ibfjiajrniaejeix) has joined #tryton15:50
-!- yland(~yland@41.202.219.67) has joined #tryton16:08
ylandHello, my name is Amate Yolande, I've been trying to setup tryton with sqlite, but so far when I try to create a database I get the following errors http://pastebin.com/4LUwsA0L16:18
cedkyland: have you pysqlite2 installed?16:23
cedkyland: if yes which version?16:24
-!- yland(~yland@41.202.219.70) has joined #tryton16:36
-!- tafodinho(~tafodinho@195.24.220.134) has joined #tryton17:05
cedkyland: did you see my question about pysqlite2 installed?17:06
ylandcedk, No, I and am just seeing it now.17:11
tafodinhohello everyone please i have an error cloning the tryton code please view error at http://pastebin.com/Nt4AmFkS17:11
cedktafodinho: try without ssl17:16
cedktafodinho: otherwise can you access it via browser?17:17
tafodinhocedk: no.17:17
tafodinhocedk: please hw do i do it17:17
cedktafodinho: open a browser and type the URL17:19
tafodinhocedk: i have done just that17:19
-!- flook(flook@nat/iiit/x-hhjdbrqjzcbustxq) has joined #tryton17:20
cedktafodinho: and what is the result?17:21
ylandcedk: I do not think pysqlite2 is installed. I am trying to install it.17:21
tafodinhocedk: i have the tryton repository under the mercurial17:21
cedkyland: no need to install it17:21
cedkyland: which version of Python do you have?17:22
cedktafodinho: ok so your browser doesn't have ssl issue17:22
cedktafodinho: did you retry once to clone?17:22
tafodinhocedk: so what can be the possible problem. Yes17:22
ylandcedk:  python2.717:22
tafodinhocedk: can i use ssh17:23
cedktafodinho: no, http or https17:24
cedkyland: more precisly17:24
cedkyland: because it seems you have a sqlite embeded that doesn't have context management on the connection17:25
ylandcedk:  python2.7.1017:25
tafodinhocedk: because i also had some problem like that with github and i am using ssh on github17:26
cedkyland: this is very strange because I have the same version and sqlite support context management17:34
cedkyland: are you really sur you don't have pysqlite2 installed17:34
-!- yland(~yland@41.202.219.70) has joined #tryton17:46
ylandcedk: I am not certain but when I run trytond -c conffile -d database --all -v, it runs for a while then it stop with "database is locked"17:46
nicoeyland: Can you execute the example given there https://docs.python.org/2/library/sqlite3.html#using-the-connection-as-a-context-manager17:48
ylandnicoe: yes , I can execute the example.17:52
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton17:57
-!- ccaz(~ccr@ax313-1-82-66-159-99.fbx.proxad.net) has joined #tryton18:00
cedktafodinho: if you have similar issue with other website, I guess it is linked to some router that has a wrong MTU18:01
cedkyland: it is not clear if you have run the code successfuly or not18:02
ylandcedk: running python setup.py ran successfully, but running trytond -c conffile -d database --all -v, it runs for a while then it stop with "database is locked"18:05
ylandcedk: I just get errors when trying to access or create a database18:07
-!- JosDzG(~Thunderbi@187.188.72.34) has joined #tryton18:09
kstenger1yland: what result do you get after running the example above?18:10
ylandkstenger1: example.db file if created and data is inserted into the file18:12
cedkyland: so I'm pretty sure you have a very old pysqlite2 installed18:13
kstenger1yland: that's the example nicoe posted above?18:13
ylandkstenger1: yes it is.18:14
ylandcould this have any thing to do with configuration ?18:15
-!- flook(flook@nat/iiit/x-pitwodzhthetxcvd) has joined #tryton18:16
kstenger1yland: I think you are not runnign this example  https://docs.python.org/2/library/sqlite3.html#using-the-connection-as-a-context-manager  it has nothing to do with tryton nor it's configuration. When I run it on a python2 terminal I get "couldn't add Joe twice" as output, which output do you get when you run it?18:23
ylandkstenger: sorry for the mix up, ran the program and I got "couldn't add Joe twice"18:28
cedkthat's what I think, you have a good sqlite3 lib but trytond first try to import pysqlite218:29
cedkand I think you have a too old pysqlite2 installed18:29
nicoeyland: can you run "python -c 'import pysqlite2' ?18:30
nicoeyland: If so cedk analysis is right18:30
ylandnicoe: yes, I ran the command and I got no errors.18:32
kstengeryland: what's your OS/distro? maybe the package name is different18:33
ylandkstenger: fedora 2318:34
kstengercould be the package python-sqlite2 ?18:36
kstengerbah, there seems to be another called python2-pysqlite18:37
kstengerwould this be easier if she tries to run inside a virtualenv?18:41
ylandkstenger: I have been using virtualenv throughout18:43
ylandThanks everyone for the help I would try to install it all over on ubuntu14 and report back with any updates18:43
kstengeryland: ok, just keep in mind that as suggested by cedk it could be solved if you update your pysqlite2 version (I particularly don't know exactly how to do this on fedora)18:46
ylandkstenger: Do you know how I could update it on ubuntu, if I run into the same issue ?.18:48
kstengeryland: it would be easier to find it out, but I somehow doubt you will run into the same issue18:48
kstenger(you may get other issues heh, but probabilities of the same one are low ;-) )18:49
ylandkstenger: Thanks18:50
cedkyland: or you can uninstall pysqlite218:51
-!- lukio(~lukio@190.55.81.222) has joined #tryton18:58
-!- softcoder32(~djff@41.202.219.64) has joined #tryton19:35
-!- lukio(~lukio@190.55.81.222) has left #tryton19:58
softcoder32hello, i am a gsoc 2016 aspirant well versed in python and c programming. i wish to participate under the tryton org. if i wish for some directives on where to start. thanks20:07
kstengersoftcoder32: hi, and welcome, take a look at this https://discuss.tryton.org/t/google-summer-of-code-2016/6620:09
softcoder32@kstenger, are gsoc aspirant just expected to submit patches or i can also commit, hence cloning repo with ssh??20:11
kstengersoftcoder32: you can submit patches to the bugtracker20:12
cedksoftcoder32: submit patch following: http://www.tryton.org/how-to-contribute.html20:12
cedksoftcoder32: direct push access is given after showing deep involvement in the project20:13
-!- kstenger1(~karla@r186-48-34-229.dialup.adsl.anteldata.net.uy) has joined #tryton20:17
-!- yland(~yland@41.202.219.74) has joined #tryton20:18
-!- softcoder32(~djff@41.202.219.68) has joined #tryton20:19
-!- softcoder32(~djff@41.202.219.64) has joined #tryton20:39
-!- softcoder32(~djff@41.202.219.64) has joined #tryton21:13
-!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton21:16
-!- perilla(~perilla@corp-190-57-169-210-cue.puntonet.ec) has joined #tryton21:16
-!- shrox(shrox@nat/iiit/x-ibhxwvqfjekjjnyb) has joined #tryton21:47
-!- softcoder32(~djff@41.202.219.78) has joined #tryton22:00
shroxHi, I have a question about using upload.py to submit patches. When I run the following command, how will the upload.py file know the location of the code that I want to submit for review? python ~/.local/bin/upload.py --oauth222:18
cedkshrox: you must run it from within the repository22:21
shroxcedk: I see. Okay, thanks!22:22
shroxcedk: It says "No valid patches found in output from hg diff" even though I have made changes to the code. Am I missing something?22:38
cedkshrox: what happens if you do: hg status22:40
shroxcedk: It says there are files not added to version control22:42
shroxcedk: ..and shows a number of files22:42
cedkshrox: if you only created new files, you must add them with: hg add command22:43
shroxcedk: these are .pyc files that were created when the py files were run22:45
cedkshrox: you must not add those22:46
shroxcedk: Yes, I haven't.22:49
cedkshrox: so is hg status showing any modification or addition?22:51
shroxcedk: I found the mistake I was making. I had cloned the modules that I made the changes in separately so the hg command on the main repo didn't consider them.22:56
shroxcedk: I will just have to separately run the upload.py files in the two module folders I think.22:57
shroxcedk: Sorry, just the one module.22:59
cedkshrox: if you have modified 2 repositories, you have to run twice upload.py on each one23:01
cedkshrox: also you can use hgreview extension which could be easier23:01
shroxcedk: Yes, I have figured it out now :) Thank you so much. I'll hopefully not have any problems with my next patch. And yes, I'll try the extension. I read about it on the 'to contribute' page. Thanks!23:08

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!