IRC logs of #tryton for Friday, 2016-03-18 #tryton log beginning Fri Mar 18 00:00:01 CET 2016
2016-03-18 00:20 -!- shivansh_(~quassel@ has left #tryton
2016-03-18 00:48 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-03-18 01:50 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 03:01 <kstenger> shrox: I once had the same issue about running 0 tests in 0 seconds, the problem was in my virtualenv I was using "pip install ." for each module (or was it "python install" ?... by now I seriously think it doesn't matter much which one). The case is, you need virtualenv to realize about your modifications, so you should re-install again and again after each change you do.
2016-03-18 03:01 <kstenger> As nicoe pointed me, the solution for this was to start using "pip install -e ." instead. It creates a direct link to the code and so you don't need to reinstall it every time.
2016-03-18 03:06 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 03:41 <shrox> kstenger: -e is used when trying to install a local project, right
2016-03-18 03:43 <shrox> kstenger: I installed trytond using pip install -e. According to what cedk said, I'll have to install the modules the same way
2016-03-18 03:44 <shrox> kstenger: For the 0 tests in 0 seconds error, I hadn't installed it at all. I was running the tests directly from source
2016-03-18 03:45 <kstenger> shrox: yes, you have to install all with "-e ." (notice the dot after the space)
2016-03-18 03:45 <kstenger> about the rest, I don't understand what you did to run the tests
2016-03-18 03:46 <kstenger> shrox: maybe I missed something, did you get the tests yto work?
2016-03-18 03:50 <shrox> kstenger: Didn't notice the dot. Installed it that way and it did install successfully .
2016-03-18 03:50 <shrox> kstenger: I think I will have to install the modules too, wait a minute.
2016-03-18 03:50 <kstenger> hmm, ok, the dot may not be mandatory
2016-03-18 03:51 <kstenger> in my head it makes explicit the "install whatever there is in this directory" meaning :)
2016-03-18 03:52 <shrox> kstenger: Ha, yes got that. I tried to install the account module and got this error
2016-03-18 03:54 <shrox> kstenger: I will have to go now. I have my classes. Do let me know if you can figure what's going on. If you can't I'll try again later.
2016-03-18 03:54 <kstenger> yes, well, I forgot that... you have to handle the order of dependencies to get through that, do you know how to make a for in bash? (this is for a quite dirty fix to the problem)
2016-03-18 03:55 <shrox> kstenger: For loop in bash?
2016-03-18 03:55 <kstenger> ok shrox, I would just run the command for every directory in the modules directory with a for, until none faile
2016-03-18 03:55 <kstenger> it's dirty, but works
2016-03-18 03:55 <kstenger> I don't know a clean way to handle the dependencies
2016-03-18 03:55 <shrox> kstenger: Okay.
2016-03-18 03:56 <shrox> kstenger: cedk will probably come online by the time I get free from my classes now. will ask him.
2016-03-18 03:56 <kstenger> sure, good luck!
2016-03-18 03:56 <shrox> kstenger: Haha, thanks :D
2016-03-18 03:57 <kstenger> no pun intended :)
2016-03-18 03:57 <shrox> kstenger: You're mentioned as potential mentor for 'FODT support for relatorio'. I will also have to start with my proposal today. Do give me some pointers for that too later.
2016-03-18 03:58 <shrox> kstenger: I've got the basic idea of what I'm to do.
2016-03-18 03:59 <kstenger> shrox: good, then maybe you can write the proposal, and put it as a draft in the gsoc page, we can give you feedback there, it seems more oficial to me, but anyway you can ask whatever you need here too
2016-03-18 03:59 <kstenger> you can share it as a google doc there
2016-03-18 03:59 <kstenger> so we can put comments
2016-03-18 04:00 <shrox> kstenger: Sure, I'll do that. But I will have to get a better idea of the workflow too, I think ,before I actually begin drafting the propsoal, won't I?
2016-03-18 04:01 <shrox> shrox: Anyhow, we'll see later. Thank you so much for your help!
2016-03-18 04:01 <kstenger> which workflow?
2016-03-18 04:01 <kstenger> ok, go if you are in a rush, don't miss your class :)
2016-03-18 04:02 <shrox> kstenger: By that I mean *how* I will do what I do. Yes, I'll leave now. Bye :)
2016-03-18 04:03 <kstenger> oki :)
2016-03-18 04:05 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 06:10 -!- perilla( has joined #tryton
2016-03-18 06:19 -!- perilla( has joined #tryton
2016-03-18 07:40 -!- frispete_( has joined #tryton
2016-03-18 07:42 -!- ccaz( has joined #tryton
2016-03-18 07:54 -!- divya(7ab15b0e@gateway/web/freenode/ip. has joined #tryton
2016-03-18 07:59 <divya> I got 2 date time fields in tryton3.8. When I change the out time (time widget), the in time (time widget) gets 00:00 by itself. although it is not written in the code (ref -
2016-03-18 07:59 <divya> I am using tryton 3.8.5 and trytond3.8.2
2016-03-18 08:11 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-03-18 08:24 -!- dj_xatra(~dj_xatra@ has joined #tryton
2016-03-18 08:45 -!- kstenger1( has joined #tryton
2016-03-18 08:54 -!- mrichez( has joined #tryton
2016-03-18 09:09 -!- nicoe( has joined #tryton
2016-03-18 09:11 -!- Timitos( has joined #tryton
2016-03-18 09:12 -!- Timitos( has left #tryton
2016-03-18 09:12 -!- Timitos( has joined #tryton
2016-03-18 09:29 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-03-18 09:36 -!- tbruyere( has joined #tryton
2016-03-18 09:45 -!- meigallodixital( has joined #tryton
2016-03-18 11:15 <cedk> pokoli: the migration query doesn't work:
2016-03-18 11:15 <cedk> pokoli: more than one row returned by a subquery used as an expression
2016-03-18 11:17 <cedk> pokoli: I think it requires an aggregate like Max
2016-03-18 11:19 <pokoli> cedk: let me see
2016-03-18 11:25 <pokoli> cedk: review17971004 fixes it for me
2016-03-18 11:28 <cedk> pokoli: also for me
2016-03-18 11:31 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 11:59 -!- mariomop( has joined #tryton
2016-03-18 12:46 -!- Telesight( has joined #tryton
2016-03-18 12:47 <dj_xatra> cedk: yesterday you said to avoid the python package installer because it's buggy. Could you elaborate?
2016-03-18 12:47 <dj_xatra> I don't have much experience with it yet.
2016-03-18 12:48 <cedk> dj_xatra: pip doesn't realy respect the dependencies once packages are installed so upgrade is very complicate
2016-03-18 12:49 <cedk> dj_xatra: any way, if you plan to develop on Tryton, you must master it by using repository setup
2016-03-18 12:50 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 12:51 <cedk> prayashm: to submit a first patch, you can follow:
2016-03-18 12:51 <dj_xatra> cedk: to develop on top of tryton-server (only custom modules) I would think that setting up from release is sufficient?
2016-03-18 12:51 <cedk> prayashm: did you find an issue to work on?
2016-03-18 12:51 <prayashm> Yep. I want to work on Issue5386
2016-03-18 12:51 <cedk> dj_xatra: yesterday, I was talking for student of GSoC which need to work on develop tree
2016-03-18 12:52 <dj_xatra> cedk: ah, ok :)
2016-03-18 12:52 <cedk> dj_xatra: but yes if you develop only custom module, as far as you pin the Tryton series installed
2016-03-18 12:52 <dj_xatra> gotcha
2016-03-18 12:53 <prayashm> Currently I am reading through the docs.
2016-03-18 12:53 <cedk> prayashm: I though shrox was working on it but it seems he unassigned
2016-03-18 12:53 <prayashm> What does soa expand to?
2016-03-18 12:54 <cedk> prayashm: this one is about editing the template invoice.odt and check if it works
2016-03-18 12:54 <cedk> prayashm: sao is the name of the web client
2016-03-18 12:55 <prayashm> Ohkay :)
2016-03-18 13:01 <cedk> prayashm: after issue5386, it will be good if you could also do an issue that involve sao
2016-03-18 13:02 <cedk> prayashm: as you plan to apply for a sao idea
2016-03-18 13:02 <prayashm> Umm. I thought issue5386 is about sao
2016-03-18 13:03 <cedk> prayashm: no it is only about account_invoice module
2016-03-18 13:04 -!- shrox(shrox@nat/iiit/x-wyvuwqfzfymptpwc) has joined #tryton
2016-03-18 13:05 <shrox> cedk: Haha, yes. I unassigned myself. I didn't know that the patches of my ongoing bug would require so many changes!
2016-03-18 13:05 <shrox> cedk: Today I plan to install tryton via the repo, check the patches, and of course, start with my proposal :)
2016-03-18 13:07 <cedk> prayashm: maybe:
2016-03-18 13:07 <cedk> prayashm: or
2016-03-18 13:10 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 13:10 <prayashm> cedk, thanks a lot for helping
2016-03-18 13:12 <cedk> shrox: so you plan to work on issue5386? if so you should keep the assignation
2016-03-18 13:13 <shrox> cedk: I do, but it is lower on my priority list right now. I wouldn't mind if someone new picked it up.
2016-03-18 13:13 <shrox> cedk: I'd just pick something else.
2016-03-18 13:14 <prayashm> cedk: There's another thing. I am trying to register in the bug tracker. But I am not getting the confirmation mail.
2016-03-18 13:14 <cedk> shrox: OK
2016-03-18 13:14 <shrox> cedk: Mainly I want to use hgreview once and see how it works. And make sure that I follow all the conventions this time around.
2016-03-18 13:14 <cedk> prayashm: did you check in your spam folder?
2016-03-18 13:15 <prayashm> cedk: It was there, really sorry! I had made a search in gmail, it didn't show up.
2016-03-18 13:15 <cedk> shrox: for sure
2016-03-18 13:20 <shrox> cedk: I was trying to install the account module using sudo pip install -e earlier today and got this error -
2016-03-18 13:22 <cedk> shrox: we don't publish development release
2016-03-18 13:23 <cedk> shrox: if you work from repository, you don't need to install Tryton, you can just run it in place
2016-03-18 13:24 <cedk> shrox:
2016-03-18 13:25 <shrox> cedk: I have of course cloned the repo. I thought I needed to install it by source using pip to test it.
2016-03-18 13:26 <shrox> cedk: So all I need to do is setup the database?
2016-03-18 13:32 <cedk> shrox: install the dependencies and after that you can go with the database setup
2016-03-18 13:37 <shrox> cedk: Okay. Right now if I run the /bin/trytond file. I get a blinking cursor on the terminal just like typical in servers.
2016-03-18 13:41 <cedk> shrox: so you can connect with the client?
2016-03-18 13:42 <shrox> cedk: I don't know. How do I check? Do I install it via pip?
2016-03-18 13:44 <cedk> shrox: run the client and try to connect
2016-03-18 13:47 <shrox> cedk: I haven't made the database yet. But before that, how do I connect? Create a new profile?
2016-03-18 13:47 <shrox> What should the host be?
2016-03-18 13:47 <cedk> shrox: you must create a database
2016-03-18 13:48 <shrox> cedk: All right.
2016-03-18 13:48 <cedk> shrox: you must follow:
2016-03-18 13:49 <shrox> cedk: I will do it in some time. Have to attend to other commitments :)
2016-03-18 14:03 -!- ccaz(~ccr@ has joined #tryton
2016-03-18 14:04 <prayashm> cedk: Why don't we change all the links to instead in the README files?
2016-03-18 14:04 <prayashm> they redirect anyway
2016-03-18 14:06 <cedk> prayashm: like that if we change again the platform, we don't need to change the README
2016-03-18 14:08 <prayashm> cedk: but why don't we change the README in the latest source files?
2016-03-18 14:09 <prayashm> cedk: Oh okay. I understood. :)
2016-03-18 14:28 -!- bvillasanti(~bvillasan@ has joined #tryton
2016-03-18 14:31 <prayashm> cedk: I have cloned sao. I can test it only with a locally running trytond server?
2016-03-18 14:31 <prayashm> cedk: or is there any way to point it the demo server?
2016-03-18 14:35 <prayashm> to the*
2016-03-18 14:44 <dj_xatra> Is it possible to have a user without a password? I think I just created one in demo3.8, but it seems like tryton-client requires a password.
2016-03-18 14:50 <dj_xatra> My use case is kiosk mode.
2016-03-18 15:00 -!- ccaz(~ccr@ has joined #tryton
2016-03-18 15:02 <pokoli> dj_xatra: it requires a password to login
2016-03-18 15:03 -!- toshad(uid150688@gateway/web/ has joined #tryton
2016-03-18 15:09 <dj_xatra> ok, then we'll have to make due with a user that has its username as the password.
2016-03-18 15:12 <pokoli> dj_xatra: don't understand
2016-03-18 15:19 -!- gytis(~gytis@ has joined #tryton
2016-03-18 15:20 <dj_xatra> pokoli: I'd like to set up a pc where anyone can just walk up to and perform some simple action in Tryton w/o having to log in.
2016-03-18 15:21 <pokoli> dj_xatra: so I imagine the unique solution is to create a generic user/password and put a postit on the screen so everybody knows which credentials has to use
2016-03-18 15:22 <pokoli> dj_xatra: but it's not very secure to do such things
2016-03-18 15:32 <cedk> dj_xatra: why not create a simple web application without credential
2016-03-18 15:33 <cedk> dj_xatra: you could use
2016-03-18 15:48 <dj_xatra> pokoli: Something like that. I'm aware of the implications. If the action is not that important or if the pc is in a protected environment.
2016-03-18 15:49 <dj_xatra> cedk: I'll have a look at that.
2016-03-18 15:50 <cedk> dj_xatra: but of course it depends of the functionalities needed
2016-03-18 15:58 -!- ccaz(~ccr@ has joined #tryton
2016-03-18 16:26 <sisalp> hello, trying sao I have some problems : on a new sale proposal, it doesn't propose the existing products. the tryton client does. know issue ? missing a dependency ?
2016-03-18 16:32 <cedk> sisalp: on demo it works
2016-03-18 16:32 <sisalp> cedk: thank you. I have to check my server then.
2016-03-18 17:48 -!- rmu( has joined #tryton
2016-03-18 17:56 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 18:04 -!- perilla( has left #tryton
2016-03-18 19:20 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-18 19:39 <sisalp> cedk: on demo if I switch on proposal lines, it extends the view, I open the folder it pops-up, on my server it is different and most line params are greyed
2016-03-18 19:39 -!- eeshangarg(~eeshangar@ has joined #tryton
2016-03-18 19:41 <eeshangarg> cedk: About adding an option to trytond-admin to change the admin password, should we prompt the user for the old admin password in order to create a new one? Also, we are assuming that the user will provide the name of the database to change the password of, right? :-)
2016-03-18 19:42 <sisalp> cedk: only description and quantity are white
2016-03-18 19:56 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 20:08 -!- ccaz(~ccr@ has joined #tryton
2016-03-18 20:10 -!- kstenger( has joined #tryton
2016-03-18 20:10 -!- gytis(~gytis@ has joined #tryton
2016-03-18 20:11 <cedk> eeshangarg: don't ask for previous
2016-03-18 20:11 <cedk> eeshangarg: user who can run this command has already the credential
2016-03-18 20:12 <cedk> sisalp: this is strange, have you the last version?
2016-03-18 20:15 <cedk> eeshangarg: for the database, it will be good to ask one password for each database
2016-03-18 20:17 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 20:20 <eeshangarg> cedk: Okay, got it! Hoping to submit a patch for this soon. I have another question. I may be mistaken but the migration to ldap3 (which is what I want to submit a proposal for) seems like a relatively small project as compared to the rest of the ideas, is there more to it than on the ideas page?
2016-03-18 20:22 <eeshangarg> cedk: Also, should my patch also include tests for the trytond-admin change password option?
2016-03-18 20:47 -!- kstenger1( has joined #tryton
2016-03-18 21:13 -!- shrox(shrox@nat/iiit/x-xdqhovojjsemljrl) has joined #tryton
2016-03-18 21:15 <shrox> cedk: Hi! I couldn't log on earlier due to some things that cropped up.
2016-03-18 21:16 <shrox> cedk: When I run the tests, I get this error. Why is it?
2016-03-18 21:16 <shrox> cedk: I did not get them earlier. It happened after I had run pip install -e
2016-03-18 21:17 <shrox> cedk: What's most unexpected is that I get the same error even when I run tests on a new repo that I just downloaded
2016-03-18 21:17 <kstenger> shrox: update the database for the modules listed in the error
2016-03-18 21:18 <kstenger> ah... but it's a testing db...
2016-03-18 21:18 <shrox> kstenger: I haven't installed the database as yet. Wait, so is that the reason?
2016-03-18 21:18 <kstenger> no, I don't think so, tests should run their own db
2016-03-18 21:19 <kstenger> shrox: maybe you need to add PYTHONPATH to the command line, pointing to the server directory
2016-03-18 21:19 <shrox> kstenger: When I move the folder mentioned in the error stated above, I get this error -
2016-03-18 21:20 <kstenger> shrox: no, don't move them
2016-03-18 21:20 <kstenger> shrox: what's missing is the install of those modules to the db, but it should be done by the test itself
2016-03-18 21:21 <shrox> kstenger: I moved them to check what was going on. The two repos are independent. The second repo has no module.
2016-03-18 21:21 <shrox> shrox: And I wasn't running module tests
2016-03-18 21:21 <kstenger> what was your command to run the test?
2016-03-18 21:22 <shrox> kstenger: There was already my directory mentioned in sys.path . I removed it because I was trying to test a clean repo. Still didn't work
2016-03-18 21:22 <shrox> kstenger: ./trytond/tests/
2016-03-18 21:24 <kstenger> shrox: when I run tests, I cd to tryton's directory and then pass this path also as PYTHONPATH environment variable
2016-03-18 21:25 <shrox> kstenger: Okay, I'll try that with the new repo. That'll narrow done the problem to the modules then (since the new repo has no modules)
2016-03-18 21:28 <shrox> kstenger: Still same issue :(
2016-03-18 21:28 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-18 21:28 -!- ChkDigit(~u388mw@ has joined #tryton
2016-03-18 21:33 <kstenger> shrox: would you try using full path to ?
2016-03-18 21:35 <shrox> kstenger: Same.
2016-03-18 21:35 <shrox> kstenger: Tell me if you can figure the reason out for the following.
2016-03-18 21:36 <shrox> kstenger: I am running the tests in a folder called tryton-clean
2016-03-18 21:36 <shrox> kstenger: But there is still a mention of the original trytond folder in the error that is displayed
2016-03-18 21:37 <shrox> trytond_clean *
2016-03-18 21:37 <shrox> kstenger: Have a look -
2016-03-18 21:38 <cedk> shrox: uninstall any installed tryton stuff
2016-03-18 21:38 <kstenger> ^
2016-03-18 21:38 <shrox> kstenger: In mentions the appropriate folder before - /home/shrox/trytond-clean/trytond/trytond/tests/run-tests.p. But then switches to the original folder
2016-03-18 21:38 <kstenger> it's using your previous install
2016-03-18 21:40 <shrox> cedk: I did. I even deleted any mention of trytond on my entire system (other than the intended folders).
2016-03-18 21:40 <cedk> shrox: deleted is not uninstalling
2016-03-18 21:41 <cedk> shrox: there are many possible reason why it pick other folder
2016-03-18 21:41 <cedk> shrox: folder is registered as an link egg in site-package folder
2016-03-18 21:41 <cedk> shrox: the folder is in the PYTHONPATH
2016-03-18 21:42 <cedk> shrox: there is some symbolic link from one PYTHONPATH folder to this folder
2016-03-18 21:44 <kstenger> and this is also probably why tests were not running before either
2016-03-18 21:44 <cedk> shrox: we don't know what you did before
2016-03-18 21:44 <cedk> shrox: especially if I remember correctly, you run commands as root
2016-03-18 21:47 <cedk> shrox: probably the best is to start all over from a virtualenv
2016-03-18 21:47 <shrox> cedk: sigh
2016-03-18 21:47 <cedk>
2016-03-18 21:48 <shrox> cedk: And this had to happened just before I was planning to shift to virtualenv
2016-03-18 21:48 <shrox> cedk: Yes, yes. I haven't used it before, but am aware of them.
2016-03-18 21:48 <cedk> shrox: are maybe you could try to just run: pip uninstall trytond
2016-03-18 21:48 <shrox> cedk: There was a link egg, but I had deleted it
2016-03-18 21:48 <shrox> cedk: That was one of the first thing I did
2016-03-18 21:49 <cedk> shrox: you should not delete such thing manually
2016-03-18 21:49 <shrox> cedk: Can't uninstall 'trytond'. No files were found to uninstall.
2016-03-18 21:49 <shrox> cedk: That was after trying everything else.
2016-03-18 21:49 <cedk> shrox: because it also write in easy-install.pth
2016-03-18 21:50 <cedk> shrox: of course if you deleted manually the egg, it can no more know what to delete
2016-03-18 21:50 <shrox> cedk: Haha, yes. But I assure you I did it only after trying to uninstall it properly
2016-03-18 21:51 <shrox> shrox: The damned folder was mentioned in easy-install.pth!
2016-03-18 21:51 <shrox> cedk: After removing it I'm getting the same error that I was for the trytond-clean
2016-03-18 21:52 <shrox> cedk: File "./trytond/tests/", line 11, in <module>
2016-03-18 21:52 <shrox> from trytond.config import config
2016-03-18 21:52 <shrox> ImportError: No module named trytond.config
2016-03-18 21:52 <cedk> shrox: put '.' in your PYTHONPATH
2016-03-18 21:53 <shrox> cedk: I should have even given a grep a go, ha! :P
2016-03-18 21:55 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 21:56 <shrox> cedk: location the main trytond folder or the trytond folder inside?
2016-03-18 21:56 <shrox> location of*
2016-03-18 21:57 <cedk> shrox: the easiest way is to always run from inside the trytond repository (first leve) and have '.' in the PYTHONPATH
2016-03-18 21:57 <kstenger> never imagined it was posible to pass a dot, nice tip :)
2016-03-18 21:58 <shrox> cedk: It says .=: command not found when i do that.
2016-03-18 21:58 <kstenger> PYTHONPATH=.
2016-03-18 21:58 <shrox> kstenger: Yes, that's what I did.
2016-03-18 21:59 <kstenger> it looks like you put .=
2016-03-18 21:59 <shrox> kstenger: It doesn't give me an error outright. It says so when I use $PYTHONPATH
2016-03-18 21:59 <cedk> shrox: PYTHONPATH=. ./trytond/tests/
2016-03-18 21:59 <kstenger> ah, don't use it, just set it
2016-03-18 22:01 <sisalp> cedk: downloaded a fresh sao and it fixed the problem. Thank you ! the buggy one was downloaded last sunday
2016-03-18 22:01 <shrox> cedk: When I paste in that command, it gives me the same dreaded error that it was before.
2016-03-18 22:01 <kstenger> shrox: still refers to the wrong path?
2016-03-18 22:02 <cedk> sisalp: probably issue5135
2016-03-18 22:03 <shrox> kstenger: Ah no it doesn't! It did earlier because I had run the tests on the original folder itself.
2016-03-18 22:04 <kstenger> shrox: then what's the new output?
2016-03-18 22:04 <shrox> kstenger: Ran 167 tests in 39.696s. Sigh, thank you!
2016-03-18 22:04 <cedk> shrox: I'm completly confused, I don't know anymore what is your result
2016-03-18 22:04 <kstenger> whew
2016-03-18 22:04 <cedk> shrox: OK so it works now
2016-03-18 22:05 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 22:06 <shrox> cedk: Yes. So I should always use PYTHONPATH whenever testing a different repo?
2016-03-18 22:06 <kstenger> shrox: yes
2016-03-18 22:06 <cedk> shrox: ./bin/trytond set the path but not
2016-03-18 22:07 <cedk> shrox: but if you want, you can put that in your environment like .profile or what ever is your shell profile file
2016-03-18 22:08 <shrox> I still am getting the error concerning the modules when I run the repo in which I had made the changes to the modules account and account_invoice
2016-03-18 22:08 <shrox>
2016-03-18 22:11 <shrox> cedk: "./bin/trytond set the path but not" So PYTHONPATH=. ./bin/trytond and only after that run the tests?
2016-03-18 22:12 <kstenger> shrox: no, he means that trytond doesn't need PYTHONPATH because it set's it on it's own, but run-tests doesn't do it
2016-03-18 22:13 <cedk> shrox: what do you mean by "when I run the repo"?
2016-03-18 22:13 <shrox> kstenger: Ah, okay. Exactly opposite to what I understood that as.
2016-03-18 22:13 <shrox> cedk: By that I mean run the tests in that repo
2016-03-18 22:14 <shrox> cedk : I have multiple repos. One is the one that I have been trying to get the bug resolve. One is with the modules untouched with tytond. Another with just trytond and no modules, etc.
2016-03-18 22:15 -!- bvillasanti(~bvillasan@ has joined #tryton
2016-03-18 22:16 <cedk> shrox: how?
2016-03-18 22:17 <cedk> shrox: what command are exactly running?
2016-03-18 22:17 <shrox> cedk: I think there's a difference of terminology. I've just cloned them more than once in multiple folders. I have different folders with the same code that I refer to while tinkering.
2016-03-18 22:18 <shrox> cedk: PYTHONPATH=. ./trytond/tests/
2016-03-18 22:18 <cedk> shrox: so from the folder where you run the test, it is missing those module
2016-03-18 22:19 <shrox> cedk: These? [u'party', u'product', u'company', u'account_product']
2016-03-18 22:19 <kstenger> yes
2016-03-18 22:21 <kstenger> shrox: is this /home/shrox/trytond/ the directory where you have your changes for the account and account_invoice ?
2016-03-18 22:21 <shrox> kstenger: cedk: Are these internal modules that have gone missing?
2016-03-18 22:21 <shrox> kstenger: yes, it is
2016-03-18 22:25 <kstenger> shrox: no,, they are just modules, if you don't have them in /home/shrox/trytond/trytond/modules you should clone them there
2016-03-18 22:25 <shrox> kstenger: But if they are not there by default, why are they needed?
2016-03-18 22:25 <kstenger> shrox: because they are dependencies of your modified modules
2016-03-18 22:25 <kstenger> shrox: you cannot test one without the others
2016-03-18 22:25 <shrox> shrox: Ah. Now finally this makes sense :D
2016-03-18 22:25 <shrox> I'll do that
2016-03-18 22:25 <shrox> kstenger: ^
2016-03-18 22:25 <kstenger> shrox: dependencies of modules are listed in the trytond.cfg file of the module directory
2016-03-18 22:25 <shrox> kstenger: The number of times I've typed my own name instead of the person I was referring to is now 3. :P
2016-03-18 22:25 <kstenger> shrox: I wrongly assumed you had cloned all the modules with nclone
2016-03-18 22:25 <shrox> kstenger: Ah, okay. I see.
2016-03-18 22:25 <shrox> kstenger: Something new that I got to know in that case.
2016-03-18 22:25 <kstenger> shrox: haha, typing nicks all the time get's boring :p
2016-03-18 22:25 -!- irclog( has joined #tryton
2016-03-18 22:25 <shrox> kstenger: cedk: Thanks, both of you!
2016-03-18 22:26 <shrox> cedk: People tell me in real life that I ask a lot of questions. I cannot how it feels like on irc.
2016-03-18 22:26 -!- Pilou( has joined #tryton
2016-03-18 22:26 -!- Pilou(~Pilou@pdpc/supporter/active/pilou) has joined #tryton
2016-03-18 22:29 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 22:32 <cedk> shrox: indeed on IRC it is difficult to help debugging because we have to assume a lot
2016-03-18 22:39 <shrox> cedk: I have finally got the error that you commented on my patch. Never been so happy to get an error.
2016-03-18 22:39 <cedk> shrox: good now, I think you are on the right tracks ;-)
2016-03-18 22:39 -!- aroncero(~aroncero@ has joined #tryton
2016-03-18 22:39 <shrox> cedk: By the way, the issue did get resolved, but why did the modules run at all if I didn't specifically mention -m <module_here>
2016-03-18 22:41 <cedk> shrox: run only trytond test
2016-03-18 22:41 <cedk> shrox: -m run trytond and all modules tests
2016-03-18 22:41 <cedk> shrox: <something> run trytond test named <something>
2016-03-18 22:42 <shrox> cedk: Exactly. I ran but I was getting the error that had to do with dependencies for the modules, right?
2016-03-18 22:42 <cedk> shrox: -m <something> run trytond or module test named <something>
2016-03-18 22:42 <cedk> shrox: yes because trytond at startup build the object pool for the modules
2016-03-18 22:42 <cedk> shrox: so if something is missing it fails
2016-03-18 22:43 <shrox> cedk: Okay. So if it always does that, what's the point of the '-m' that can be added?
2016-03-18 22:43 <cedk> shrox: -m is to tell to take also module tests
2016-03-18 22:44 <cedk> shrox: and extra test argument is to filter
2016-03-18 22:45 <cedk> shrox: you know running all the tests for all the modules, take hours on my laptop
2016-03-18 22:45 <cedk> ACTION bbl
2016-03-18 22:45 <shrox> cedk: Let me clear what I've understood till now. runs trytond. It gets errors because of missing module dependencies because it makes a pool. To specifically run the module tests I use -m.
2016-03-18 22:45 <shrox> cedk: Is my understanding till here correct?
2016-03-18 22:47 <kstenger> yes, it seems accurate shrox. so you cannot put in the modules directory a module without putting also the modules on which it depends
2016-03-18 22:47 <kstenger> shrox: actually, you should have had the exact same error if you run just trytond
2016-03-18 22:47 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 22:48 <shrox> kstenger: cedk: if so, how does it get this error get detected my
2016-03-18 22:49 <shrox> kstenger: I assume this is because it does of the modules. But not the others.
2016-03-18 22:49 <kstenger> shrox: that error is not result of a test failing, it's failing to setup trytond
2016-03-18 22:50 <shrox> kstenger: Ah okay. Cool. :) Figured everything now.
2016-03-18 22:51 <kstenger> whenever a test fails it will tell you "test failed" among a lot of other stuff ;-)
2016-03-18 23:10 -!- smarro(~sebastian@ has joined #tryton
2016-03-18 23:18 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 23:32 -!- eeshangarg(~eeshangar@ has joined #tryton
2016-03-18 23:34 <eeshangarg> Hey everyone! I am new to webdav, but I have a couple of questions about migrating to wsgidav, and I'm curious as to what this project might involve. I have a couple of questions about the codebase and it would mean a lot to me if someone could give me a few pointers as to how to find the answers. :-)
2016-03-18 23:35 -!- bvillasanti(~bvillasan@ has joined #tryton
2016-03-18 23:43 -!- JosDzGx(~Thunderbi@ has joined #tryton
2016-03-18 23:46 -!- prayashm(~prayashm@ has joined #tryton
2016-03-18 23:50 -!- JosDzG(~Thunderbi@ has joined #tryton
2016-03-18 23:59 -!- JosDzG(~Thunderbi@ has joined #tryton

Generated by 2.17.3 by Marius Gedminas - find it at!