IRC logs of #tryton for Thursday, 2010-02-18

chat.freenode.net #tryton log beginning Thu Feb 18 00:00:02 CET 2010
2010-02-18 00:16 -!- rednul_(~rednul@216.187.188.134) has joined #tryton
2010-02-18 00:45 -!- rednul_(~rednul@216.187.188.134) has joined #tryton
2010-02-18 01:15 -!- petrus(~petrus@142.176.238.66) has joined #tryton
2010-02-18 01:16 <petrus> is anybody using the 1.4 branch on Ubuntu 9.10 (karmic)?
2010-02-18 01:17 <petrus> I can't get it working because of the egenix-mx-base dependency
2010-02-18 01:26 <sharoon> petrus: i do
2010-02-18 01:28 -!- sharoon(~sharoonth@opg066b.halls.manchester.ac.uk) has left #tryton
2010-02-18 01:39 <petrus> how did you get around installing egenix-mx-base?
2010-02-18 02:10 -!- rednul_(~rednul@host-98-127-6-7.bln-mt.client.bresnan.net) has joined #tryton
2010-02-18 03:20 -!- ikks_(~ikks@200.118.243.193) has joined #tryton
2010-02-18 04:07 -!- ikks_(~ikks@200.118.243.193) has joined #tryton
2010-02-18 04:17 -!- pepeu(~manuel@201.152.98.188) has joined #tryton
2010-02-18 05:18 -!- yangoon(~mathiasb@p549F7211.dip.t-dialin.net) has joined #tryton
2010-02-18 07:09 -!- vengfulsquirrel(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-02-18 07:38 -!- Timitos(~timitos@88.217.184.172) has joined #tryton
2010-02-18 08:07 -!- sharkcz(~dan@plz1-v-4-17.static.adsl.vol.cz) has joined #tryton
2010-02-18 08:21 -!- enlightx(~enlightx@host-78-13-112-155.cust-adsl.tiscali.it) has joined #tryton
2010-02-18 08:52 -!- bechamel(~user@host-85-201-159-186.brutele.be) has joined #tryton
2010-02-18 09:23 -!- cedk(~ced@ced.homedns.org) has joined #tryton
2010-02-18 09:23 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-02-18 09:41 -!- paepke(~paepke@p4FEB12C5.dip0.t-ipconnect.de) has joined #tryton
2010-02-18 09:57 -!- paepke_(~paepke@p4FEB11CE.dip0.t-ipconnect.de) has joined #tryton
2010-02-18 09:59 -!- sharoon(~sharoonth@opg066b.halls.manchester.ac.uk) has joined #tryton
2010-02-18 10:17 -!- essich(~essich@p4FCF8BE9.dip0.t-ipconnect.de) has joined #tryton
2010-02-18 10:18 -!- essich(~essich@p4FCF8BE9.dip0.t-ipconnect.de) has left #tryton
2010-02-18 10:25 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2010-02-18 11:07 -!- tekknokrat(~gthielebe@dslb-188-103-022-099.pools.arcor-ip.net) has joined #tryton
2010-02-18 11:30 <sharoon> cedk: the mail in google groups which came now... i really thought from the subject you guys were organisinag a party
2010-02-18 11:31 <cedk> sharoon: :-)
2010-02-18 11:43 -!- |FWiesing|(~FWiesing@194-208-185-012.tele.net) has joined #tryton
2010-02-18 12:08 -!- ikks_(~ikks@200.118.243.193) has joined #tryton
2010-02-18 14:47 -!- elver(~elver@213-35-213-182-dsl.trt.estpak.ee) has joined #tryton
2010-02-18 16:43 -!- sharoon(~sharoonth@opg066b.halls.manchester.ac.uk) has left #tryton
2010-02-18 16:51 -!- bechamel(~user@host-85-201-159-186.brutele.be) has joined #tryton
2010-02-18 17:01 -!- bechamel(~user@host-85-201-159-186.brutele.be) has joined #tryton
2010-02-18 18:22 -!- petrus(~petrus@142.176.238.66) has joined #tryton
2010-02-18 18:26 <petrus> if I "python setup install" in trytond/ (dev branch) it installs modules/XXX/ .py files but not the related .xml etc. data files
2010-02-18 18:27 <petrus> what is there a proper way of using the setup.py in the module's directory to install the given module into the right place?
2010-02-18 18:28 <petrus> say, "just copy over" is not an option
2010-02-18 18:37 -!- paepke_(~paepke@p4FEB793E.dip.t-dialin.net) has joined #tryton
2010-02-18 18:38 <cedk> petrus: it should
2010-02-18 18:41 <cedk> petrus: which module do you try to install ?
2010-02-18 18:42 <petrus> cedk: "what should" ??? the "copy over"? so what is the point to have setup.py files for each module then? -- am I missing something?
2010-02-18 18:43 <petrus> cedk: any module
2010-02-18 18:43 <cedk> petrus: setup.py should copy the xml files if they are defined in package_data
2010-02-18 18:43 <cedk> petrus: could put the output of one try
2010-02-18 18:45 <petrus> cedk: which setup.py, trytond/setup.py does not as I said before
2010-02-18 18:45 <petrus> cedk: and I could not figure out how to use a modules/XXX/setup.py to put the stuff into the already installed trytond
2010-02-18 18:46 <petrus> cedk: that is what I am asking about
2010-02-18 18:46 <cedk> petrus: please copy/paste the shell history when you try to install
2010-02-18 18:55 <petrus> cedk: the history is in what I said before, but here it is is again: cd src/trytond; python setup install; cd src trytond/modules/XXX; python setup install
2010-02-18 18:55 <cedk> petrus: and the output of the command?
2010-02-18 18:55 <petrus> cedk: and this does not install the module into the right place, treats it as a toplevel package
2010-02-18 18:57 <petrus> cedk: additionally, it starts pulling the dependency modules from the internet, however all of them already here
2010-02-18 18:58 <petrus> cedk: and yes the second module install do see the the already installed trytond core since it is running in the same virtualenv
2010-02-18 18:58 <petrus> cedk: not that this really makes any difference
2010-02-18 19:01 <petrus> cedk: the output as any normal install, a million lines, what the point to copy it here. both install proceed but while the first produces what one expect
2010-02-18 19:02 <petrus> cedk: the second produces not desired results: pull from internet and goes to pyenv/trytond/lib/python2.6/site-packages/trytond_XXXX instead of
2010-02-18 19:04 <petrus> cedk: ls
2010-02-18 19:04 <cedk> petrus: it must not be a problem
2010-02-18 19:04 <petrus> cedk: pyenv/trytond/lib/python2.6/site-packages/trytond-1.5.0-py2.6.egg/trytond/modules
2010-02-18 19:04 <cedk> petrus: trytond can handle modules installed with pkg_resources
2010-02-18 19:05 <petrus> cedk: I have not tried to run this way yet, but will
2010-02-18 19:06 <petrus> cedk: so why then they got "half installed" during the firs step?
2010-02-18 19:07 <petrus> cedk: also, how can avoid the repated pulling from the net?
2010-02-18 19:08 <cedk> petrus: I don't understand the "half installed"
2010-02-18 19:08 <cedk> petrus: what is pulling from the net?
2010-02-18 19:09 <petrus> cedk: half installed: please read my very first sentence in this thread
2010-02-18 19:09 <cedk> petrus: copy/paste the output of the install
2010-02-18 19:16 <petrus> cedk: you can't be serious with asking me to copy here the several thousands lines here, I believe I have given all important information already
2010-02-18 19:16 <petrus> cedk: the end of the second phase when I kill it since it starts pulling form the net is here:
2010-02-18 19:17 <petrus> cedk: creating /home/peter/pyenv/trytond/lib/python2.6/site-packages/trytond_account-1.5.0-py2.6.egg
2010-02-18 19:17 <petrus> Extracting trytond_account-1.5.0-py2.6.egg to /home/peter/pyenv/trytond/lib/python2.6/site-packages
2010-02-18 19:18 <petrus> trytond-account 1.5.0 is already the active version in easy-install.pth
2010-02-18 19:18 <petrus> Installed /home/peter/pyenv/trytond/lib/python2.6/site-packages/trytond_account-1.5.0-py2.6.egg
2010-02-18 19:18 <petrus> Processing dependencies for trytond-account==1.5.0
2010-02-18 19:18 <petrus> Searching for trytond-currency
2010-02-18 19:18 <petrus> Reading http://pypi.python.org/simple/trytond_currency/
2010-02-18 19:18 <petrus> Reading http://www.tryton.org/
2010-02-18 19:18 <petrus> ^Cinterrupted
2010-02-18 19:21 <petrus> cedk: so the question is again, if trytond can, as you said, deal with "top-installed" modules, why the core install installs the modules partially (without data files) at all?
2010-02-18 19:27 <cedk> petrus: copy/paste = http://pastebin.com/
2010-02-18 19:28 <cedk> petrus: for data I don't know and I can not know if you don't give all the informations
2010-02-18 19:36 <petrus> cedk: it would be simpler (and probably useful) if you ran a "setup.py install" in dev-branch/.../trytond/ and see what is happening -- I have not changed anything in the repo tree.
2010-02-18 19:36 <petrus> cedk: I have the feeling that you don't really understand what I am talking about -- probably my fault
2010-02-18 19:36 <petrus> cedk: for any case, thanks for your help -- I am running out of time here, and sitting at the end of a very bad network connection
2010-02-18 19:41 <cedk> petrus: I run it and all is ok
2010-02-18 19:42 <cedk> petrus: but I don't see any advantage to install developpement version
2010-02-18 19:43 <petrus> cedk: all is ok? all modules installed in the right place with data? it is not what happening when I run in it in the repo
2010-02-18 19:44 <cedk> petrus: trytond install correctly with data
2010-02-18 19:44 <petrus> cedk: sure, but what is in the modules/ dir, take a look
2010-02-18 19:45 <petrus> cedk: and what you see there is what I call "half installed" modules
2010-02-18 19:47 <cedk> petrus: modules are on separate directory but it works
2010-02-18 19:48 <cedk> petrus: it is eggs installation but trytond can find modules with pkg_resources
2010-02-18 19:50 -!- rednul_(~rednul@host-98-127-6-7.bln-mt.client.bresnan.net) has joined #tryton
2010-02-18 19:51 -!- rednul__(~rednul@host-98-127-6-7.bln-mt.client.bresnan.net) has joined #tryton
2010-02-18 19:51 <petrus> cedk: you did not answer my question: what do you see in trytond/modules/XXX? the modules kind of installed twice in two places , look into your eggs or install unzipped so you can see
2010-02-18 19:53 <cedk> which trytond/modules ?
2010-02-18 19:53 <cedk> the one in trytond-1.5.0-py2.6.egg is empty
2010-02-18 19:53 <cedk> the one in trytond_google_translate-1.5.0-py2.6.egg is filled by the google_translate module
2010-02-18 19:57 <paepke_home> cedk, petrus: is it a common tryton-practise to install the modules python wide in the site packages? i always used the trytond/modules folder in a seperate install dir.
2010-02-18 19:58 <cedk> paepke_home: I do it for production environment otherwise for dev I never do
2010-02-18 19:58 <cedk> paepke_home: but we made Tryton working with both way
2010-02-18 19:58 <petrus> paepke: I use a virualenv just for tryton(d)
2010-02-18 20:00 <cedk> petrus: maybe there is an issue with virtualenv
2010-02-18 20:02 -!- vengfulsquirrel(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-02-18 20:02 <cedk> petrus: that is why I ask you about the all log installation
2010-02-18 20:03 <petrus> cedk: when I run trytond/setup.py it does "half install" the modules into the trytond-1.5.0-py2.6.egg tree
2010-02-18 20:03 <cedk> petrus: I don't understand
2010-02-18 20:06 <petrus> cedk: I see that -- and now I understand why!
2010-02-18 20:07 <petrus> cedk: your repo structure is not the same then mine: created by the suggested copy script
2010-02-18 20:08 <cedk> petrus: with teh script you don't need to install
2010-02-18 20:08 <petrus> cedk: but I want to
2010-02-18 20:08 <cedk> petrus: do you have module inside trytond/modules or do you have symlink ?
2010-02-18 20:09 <cedk> petrus: why?
2010-02-18 20:09 <petrus> cedk: your trytond/modules in your rep is empty, mine is in place
2010-02-18 20:09 <cedk> petrus: so if you want to install use clean repositories
2010-02-18 20:09 <petrus> cedk: there is a line setup.y: packages=find_packages(exclude=['*.modules.*', 'modules.*', 'modules']),
2010-02-18 20:10 <petrus> cedk: but this line does not prevent "half installing" the modules
2010-02-18 20:12 <cedk> petrus: but it should exclude modules with this line
2010-02-18 20:17 <petrus> cedk: it should but i does not; I have just rerun a new install from scratch after trytond/setup.py modules/XXX/ contains all the .py files of the modules but not the data
2010-02-18 20:18 <vengfulsquirrel> petrus: Sorry the conversation is kind of confusing, you ran dev pull script and then tried to run setup.py for trytond? Or you tried to install directly with easy install ?
2010-02-18 20:19 <cedk> petrus: maybe a buggy version of setuptools?
2010-02-18 20:19 <petrus> cedk: I have never ever mentioned easy_install,
2010-02-18 20:19 <petrus> I run python setup.py install
2010-02-18 20:19 <vengfulsquirrel> Ha I did, I mentioned it sorry.
2010-02-18 20:20 <cedk> petrus: I never too
2010-02-18 20:20 <petrus> vengfulsquirrel: I did not see it
2010-02-18 20:21 <petrus> cedk: info: setuptools-0.6c11, virtualenv-1.4.5
2010-02-18 20:21 <petrus> cedk: that is what I am using , the most recent ones
2010-02-18 20:22 <cedk> petrus: so we must find why it doesn't exclude the directories
2010-02-18 20:23 <petrus> cedk: yes, could be a bug in setuptools
2010-02-18 20:24 <cedk> petrus: but for now if you remove directories from trytond/modules in the installation folder, it should work
2010-02-18 20:26 <petrus> cedk: the structure created by dev pull script is not necessarily the best for installs like what I am doing (for good reasons)
2010-02-18 20:26 <petrus> cedk: removing trytond/modules is an option, right
2010-02-18 20:27 <petrus> cedk: when I started this thread I hoped setup.py --???? parameter trick which would put each modules one by one into trytond/modules/XXX
2010-02-18 20:28 <petrus> cedk: I played a bit around but could not find it,
2010-02-18 20:28 <petrus> cedk: maybe possible
2010-02-18 20:29 <cedk> petrus: which script do you use?
2010-02-18 20:30 <petrus> cedk: another matter, other day I was suggesting an .hgignore in each repo -- I did not get a reply, any comment?; my suggestion may make more sense now seeing what I am trying to do
2010-02-18 20:31 <petrus> the python one
2010-02-18 20:32 <petrus> cedk: by the way these install problems are the same for any branch not just the dev one
2010-02-18 20:32 <cedk> petrus: we had one year ago this discussion and we decided to not include .hgignore because everybody will want to have his special configuration for his editor etc.
2010-02-18 20:32 <cedk> petrus: you can define for you a global .hgignore for *.pyc files
2010-02-18 20:34 <cedk> petrus: the python one was a copy of the shell one, but it seems it doesn't make symlink like the shell one
2010-02-18 20:35 <cedk> petrus: maybe to work also on windows
2010-02-18 20:35 <petrus> cedk: I see, but isn't it in the other way around? what I suggested is true for all repos in tryton and editor/user specific ones could go to global
2010-02-18 20:36 <petrus> cedk: anyway not so important
2010-02-18 20:38 <petrus> cedk: back to install -- how can I prevent modules/XXX/setup.py pulling dependencies from the net instead of finding them locally?
2010-02-18 20:39 <petrus> cedk: do I need to traverse the dependency tree properly?
2010-02-18 20:39 <petrus> cedk: that's a pain in the a*
2010-02-18 20:40 <cedk> petrus: this is why there is package manager and distribution devs that do the work
2010-02-18 20:40 <cedk> petrus: and in some distribution python package are installed without entries for setuptools
2010-02-18 20:40 <cedk> petrus: so setuptools think they are not installed
2010-02-18 20:43 <petrus> cedk: I know that. however I do all my deployment (dev or prod) in virtualenv to insulate myself from distro anomalies. which of Ubuntu (my paltform) is producing more and more recently.
2010-02-18 20:44 <cedk> petrus: so what is downloaded that you don't want?
2010-02-18 20:48 <petrus> cedk: if I have the full dev repo tree locally already then I don't want module/XXX/setup.py to pull anything from the net during install.
2010-02-18 20:49 <udono> petrus: hi
2010-02-18 20:50 <petrus> cedk: it would be better just to fail, so can remdey the situation by traversing the dependency tree by trial and error
2010-02-18 20:50 <udono> petrus: Maybe there is a way with setuptools to tell, that it should only use local files in a folder?
2010-02-18 20:53 <petrus> udono: maybe, I don't know -- I don't really like setuptools and the associated automagics
2010-02-18 20:53 <cedk> petrus: so don't use it
2010-02-18 20:53 <udono> petrus: so just do not use it...
2010-02-18 20:53 <udono> :-)
2010-02-18 20:54 <cedk> we create setup.py file for packagers
2010-02-18 20:54 <petrus> cedk: so I should write my own setup.py for each component, that is what you suggesting?
2010-02-18 20:55 <cedk> petrus: no
2010-02-18 20:55 <udono> petrus: no, there is just no need of setup tools. you can run tryton directly
2010-02-18 20:55 <petrus> cedk: just by runnig setup.py the automagic kicks in
2010-02-18 20:55 <udono> petrus: run bin/tryton
2010-02-18 20:55 <udono> petrus: for the client
2010-02-18 20:56 <udono> and bin/trytond for the server.
2010-02-18 20:56 <udono> petrus: before you change into the appropriate path's
2010-02-18 20:56 <petrus> udono: for some good reasons I need/want to install
2010-02-18 20:56 <udono> petrus: which?
2010-02-18 20:57 <petrus> long story, maybe another time -- I've got to go now -- cheers
2010-02-18 20:58 <petrus> \close
2010-02-18 21:00 <cedk> udono: http://bugs.tryton.org/roundup/issue1420
2010-02-18 21:00 <cedk> udono: this should help petrus
2010-02-18 21:14 <udono> cedk: yes, possible. I thought of petrus is mixing trunk with releases... but he don't give the required informations to check this and I do not understand the 'good reasons' for using setuptools and distutils when want to mix different versions of the same software...
2010-02-18 22:03 -!- tekknokrat(~gthielebe@dslb-188-103-022-099.pools.arcor-ip.net) has left #tryton
2010-02-18 23:44 -!- sharoon(~sharoonth@78.150.73.10) has joined #tryton

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