IRC logs of #tryton for Tuesday, 2015-03-03

chat.freenode.net #tryton log beginning Tue Mar 3 00:00:01 CET 2015
2015-03-03 00:22 -!- digitalsatori(~Thunderbi@116.234.179.119) has joined #tryton
2015-03-03 00:36 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-03 00:57 -!- digitalsatori(~Thunderbi@116.234.179.119) has joined #tryton
2015-03-03 03:05 -!- alimon(~alimon@187-176-43-14.dynamic.axtel.net) has joined #tryton
2015-03-03 03:06 -!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton
2015-03-03 04:21 -!- TheCowboy`(~TheCowboy@ip68-98-183-236.dc.dc.cox.net) has joined #tryton
2015-03-03 06:01 -!- yangoon1(~mathiasb@p549F052D.dip0.t-ipconnect.de) has joined #tryton
2015-03-03 06:33 -!- digitalsatori(~Thunderbi@180.157.158.133) has joined #tryton
2015-03-03 06:40 -!- frispete(~frispete@p54A90CCE.dip0.t-ipconnect.de) has joined #tryton
2015-03-03 07:28 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-03 07:42 -!- michael-kohlhaas(~mk@p57B9F806.dip0.t-ipconnect.de) has joined #tryton
2015-03-03 07:42 -!- michael-kohlhaas(~mk@unaffiliated/michael-kohlhaas) has joined #tryton
2015-03-03 07:42 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-03 08:16 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 08:22 -!- bechamel(~Adium@host-85-201-213-94.dynamic.voo.be) has joined #tryton
2015-03-03 09:03 -!- pokoli(~pokoli@unaffiliated/pokoli) has joined #tryton
2015-03-03 09:08 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2015-03-03 09:15 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has joined #tryton
2015-03-03 09:21 -!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 09:30 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-03 09:34 -!- Timitos(~kpreisler@mail.einewelthaus.de) has joined #tryton
2015-03-03 09:43 -!- jvblasco(~seba@62.43.196.37.static.user.ono.com) has joined #tryton
2015-03-03 09:56 -!- pobsteta(~Thunderbi@4cb54-3-88-160-87-54.fbx.proxad.net) has joined #tryton
2015-03-03 10:08 -!- Timitos(~kpreisler@mail.einewelthaus.de) has joined #tryton
2015-03-03 10:29 -!- Timitos(~kpreisler@mail.einewelthaus.de) has joined #tryton
2015-03-03 11:02 -!- jitesh(~jitesh@116.68.98.20) has joined #tryton
2015-03-03 11:03 <jitesh> hey guys
2015-03-03 11:03 <jitesh> can u please help me out to create a proper config file
2015-03-03 11:03 <jitesh> ?
2015-03-03 11:06 -!- nicoe(~nicoe@2a02:a03f:3065:f00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-03 11:06 <jitesh> despite of explicitly mentioning the config file it falls back to sqlite
2015-03-03 11:07 <jitesh> where as i wanted postgres as my backend which i mentioned in my config file
2015-03-03 11:09 -!- Telesight(~anthony@4daedff9.ftth.telfortglasvezel.nl) has joined #tryton
2015-03-03 11:09 -!- jcm(~jcm@symetrie.net) has joined #tryton
2015-03-03 11:10 <cedk> jitesh: are you sure it loads your configuration file
2015-03-03 11:11 <jitesh> i did doubt that
2015-03-03 11:12 <jitesh> and i tried other stuffs like creating a bin and etc inside tryton d file
2015-03-03 11:12 <jitesh> trytond*
2015-03-03 11:12 <cedk> jitesh: "-c" option
2015-03-03 11:15 <jitesh> @cedk i did use -c option to run my tryton server with my config files
2015-03-03 11:15 <jvblasco> jitesh: does the user running tryton have permissions on the config file?
2015-03-03 11:17 <jitesh> i made it accessable for all
2015-03-03 11:17 <jitesh> and please note: i installed tryton on my virtual environment
2015-03-03 11:17 <jitesh> will that be fine?
2015-03-03 11:19 <jitesh> i was trying to run TrytonAsModule :https://code.google.com/p/tryton/wiki/HowToUseTrytondAsAModule in my virtual environment and it dint require any server to run independently
2015-03-03 11:21 <cedk> jitesh: which version of trytond? and are you sure you are using the right configuration syntax?
2015-03-03 11:21 <jitesh> but even after explicitly mentioning the trytond and conf path in that TrytonAsModule it still hits back with an error sqlite is not found while i was trying to use postgre
2015-03-03 11:21 <jitesh> tryton is version 3.4.2
2015-03-03 11:22 <jitesh> and for syntax shall i post the code here?
2015-03-03 11:22 <cedk> jitesh: no copy/paste in chan
2015-03-03 11:24 <jitesh> pardon?
2015-03-03 11:24 <cedk> jitesh: use a paster service
2015-03-03 11:26 <jitesh> iam sorry iam not aware of any such thing
2015-03-03 11:27 <cedk> jitesh: for example: http://dpaste.com/
2015-03-03 11:29 <jitesh> http://dpaste.com/3607KV7
2015-03-03 11:29 <jitesh> thanks
2015-03-03 11:31 <cedk> jitesh: and what is the configuration file?
2015-03-03 11:32 <jitesh> 1 min i am uploading it
2015-03-03 11:32 <cedk> jitesh: I think you are just not using the right keywords and so they are ignored
2015-03-03 11:34 -!- Timitos(~kpreisler@mail.einewelthaus.de) has joined #tryton
2015-03-03 11:35 <jitesh> http://dpaste.com/16T0JEG
2015-03-03 11:36 <jitesh> please check this
2015-03-03 11:41 <cedk> jitesh: it looks OK
2015-03-03 11:42 <jitesh> but when i run it i get the error as dbname.sqlite doesnot exits
2015-03-03 11:43 <jitesh> exists*
2015-03-03 11:44 <jitesh> iam not running tryton just importing the modules
2015-03-03 11:45 <jitesh> but before working on transactions it fails as the db is not found
2015-03-03 11:45 <jitesh> i created a db in postgres
2015-03-03 11:45 <Timitos> jitesh: do you start the tryton server with "trytond -c PATHTOCONFIG" ?
2015-03-03 11:46 <jitesh> @Timitos noi am not running tryton server just importing the modules
2015-03-03 11:47 <jitesh> :https://code.google.com/p/tryton/wiki/HowToUseTrytondAsAModule
2015-03-03 11:47 <jitesh> iam folllowing this
2015-03-03 11:47 <cedk> jitesh: this howto is probably out dated (2 years old)
2015-03-03 11:48 <jitesh> and hence i reached here seeking help from you guys
2015-03-03 11:48 <cedk> jitesh: this should give you a more up to date: https://code.google.com/p/flask-tryton/source/browse/flask_tryton.py#32
2015-03-03 11:54 <jitesh> cedk, i will go through it
2015-03-03 11:55 <pokoli> jitesh: you can use TRYTOND_CONFIG environment variable to set your config path
2015-03-03 11:55 <jitesh> pokoli, can you please show me a sample syntax
2015-03-03 11:55 <jitesh> ?
2015-03-03 11:59 <pokoli> os.environment['TRYTOND_CONFIG'] = 'path_to_your_file'
2015-03-03 12:00 <jitesh> pokoli, thanks i will try that
2015-03-03 12:01 <pokoli> jitesh: sorry os.environ['TRYTOND_CONFIG'] = 'path_to_your_file'
2015-03-03 12:01 <pokoli> jitesh: memory it's bad somethimes
2015-03-03 12:01 <jitesh> pokoli, thats fine absolutely
2015-03-03 12:04 <jitesh> pokoli, unfortunately that dint work either....i do know it will be just a minute mistake but cant find out where it is...
2015-03-03 12:04 <jitesh> IOError: Database "dbname.sqlite" doesn't exist!
2015-03-03 12:04 <pokoli> jitesh: could you paste the full code you are executing? the script you call
2015-03-03 12:05 <jitesh> kk
2015-03-03 12:08 <jitesh> http://dpaste.com/03H44AP
2015-03-03 12:08 <jitesh> pokoli, i have pasted it
2015-03-03 12:10 <jitesh> fails at line no 31
2015-03-03 12:13 <pokoli> jitesh: I'm running the test script without any problem
2015-03-03 12:13 <cedk> jitesh: all I can see is that the path could be wrong
2015-03-03 12:14 <pokoli> jitesh: i just have addapted the file location and it works well here
2015-03-03 12:14 <pokoli> jitesh: so that's way I imagine, the path is wrong or your user doesn't have right to read the file
2015-03-03 12:15 <jitesh> and this is the error paste http://dpaste.com/1VMPZA9
2015-03-03 12:15 <jitesh> pokoli, cedk so is the mistake is at postgres user rights??
2015-03-03 12:16 <pokoli> jitesh: don't think so as you will have a postgresql error
2015-03-03 12:17 <cedk> jitesh: no for me the path to your configuration file is wrong
2015-03-03 12:17 <jitesh> pokoli, ok but as user 'jitesh' i have the rights to the file
2015-03-03 12:18 <cedk> jitesh: I have the same kind of behaviour if I put a wrong path
2015-03-03 12:19 <cedk> the python config parser doesn't fail if a wrong path is given
2015-03-03 12:19 <jitesh> cedk, but the file was in that location
2015-03-03 12:20 <cedk> jitesh: we can not be sure as you hide it
2015-03-03 12:21 <jitesh> i ran it through nautilus and the file was there in that location
2015-03-03 12:21 <jitesh> am i doing anything wrong?
2015-03-03 12:23 <cedk> jitesh: check with a console, I don't know what nautilus could simulate
2015-03-03 12:23 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-03 12:24 <jitesh> 'cd' works fine with the location to the configcode
2015-03-03 12:26 <cedk> jitesh: maybe you are using a relative path which doesn't work from the location where you run the code
2015-03-03 12:27 <jitesh> i guess i use abs path from the '/' to all the subdirectories till the config file
2015-03-03 12:27 <jitesh> pokoli, i also checkd the pemission of the file...its available for all user group and others no restrictions
2015-03-03 12:27 <cedk> jitesh: if yourself you guess...
2015-03-03 12:28 <jitesh> :) trust me iam doing 'cd' from random locations
2015-03-03 12:28 <jitesh> and it always goes to the proper location
2015-03-03 12:30 <cedk> jitesh: as you seem to not want to show the path, we can not help further
2015-03-03 12:32 <pokoli> jitesh: are you using full path or relative one? could you move the file to somewhere it's accessible (i.e: /tmp) and test from there
2015-03-03 12:32 <pokoli> jitesh: maybe file it's accesible but directory not, so it fails silently and ignores the file
2015-03-03 12:37 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-03 12:39 <jitesh> cedk, pokoli this is the paths http://dpaste.com/3HAYRPM
2015-03-03 12:41 -!- jcm(~jcm@symetrie.net) has joined #tryton
2015-03-03 12:44 <cedk> jitesh: very strange to put it there, have you try somewhere else like /home/projects/trytond.conf ?
2015-03-03 12:45 <jitesh> outside virutal environment it wont work
2015-03-03 12:46 <jitesh> i wanted that to run only in my virtual environment so dint try outside that
2015-03-03 12:47 <pokoli> jitesh: configuration file it's not related to virtualenv, i tried your script with a config file in my home directory and works as expected
2015-03-03 12:47 <jitesh> i dnt have tryton installed outside my virtual environment
2015-03-03 12:47 <pokoli> jitesh: you only need to activate your virtualenv in order to make the script work
2015-03-03 12:48 <jitesh> ok then i will try what cedk asked me to do
2015-03-03 12:55 -!- jcm(~jcm@symetrie.net) has joined #tryton
2015-03-03 12:59 <jitesh> the file was not moving till i applied rot power
2015-03-03 12:59 <jitesh> and then i placed it in /home/projects
2015-03-03 13:00 <jitesh> had to change its ownership to me again and ran the script inside virualenv
2015-03-03 13:00 <jitesh> but that dint work again
2015-03-03 13:01 <jitesh> i also updated the location in my script and printed it to debug properly
2015-03-03 13:02 -!- frispete(~frispete@p54A90CCE.dip0.t-ipconnect.de) has joined #tryton
2015-03-03 13:04 <pokoli> jitesh: so the root power shows that you don't have proper permisions
2015-03-03 13:05 <pokoli> jitesh: could you recreate the file with your user (so permision is correct)
2015-03-03 13:21 <jitesh> pokoli, iam on it
2015-03-03 13:29 <jitesh> pokoli i changed the entire ownership of project directory to me in recursive mode
2015-03-03 13:30 <jitesh> pokoli, and then i recreated that conf file again with my previlages
2015-03-03 13:30 <jitesh> but then again it failed with sqlite error
2015-03-03 13:30 <jitesh> duh!!!
2015-03-03 13:36 <pokoli> jitesh: sorry but don't know whats happening on your side
2015-03-03 13:36 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 13:40 <jitesh> cedk, pokoli thank you for the precious time u spent on my issue... #respect
2015-03-03 13:40 <jitesh> will be taking a break for now
2015-03-03 13:40 -!- jitesh(~jitesh@116.68.98.20) has left #tryton
2015-03-03 13:41 -!- smarro(~sebastian@190.105.93.196) has joined #tryton
2015-03-03 13:43 -!- gremly(~gremly@190.85.36.58) has joined #tryton
2015-03-03 13:44 -!- juanfe(~juanfe@190.85.115.49) has joined #tryton
2015-03-03 14:07 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 14:08 -!- lukio(~lukio@host14.190-136-221.telecom.net.ar) has joined #tryton
2015-03-03 14:16 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-03 14:35 -!- digitalsatori(~Thunderbi@116.234.179.119) has joined #tryton
2015-03-03 14:50 -!- TheCowboy`(~TheCowboy@wsip-98-191-208-111.dc.dc.cox.net) has joined #tryton
2015-03-03 15:08 -!- lukio(~lukio@host14.190-136-221.telecom.net.ar) has joined #tryton
2015-03-03 15:32 -!- digitalsatori(~Thunderbi@116.234.179.119) has joined #tryton
2015-03-03 15:33 -!- jcm(~jcm@symetrie.net) has joined #tryton
2015-03-03 16:16 -!- alimon(alimon@nat/intel/x-ibuyducdjzqceozw) has joined #tryton
2015-03-03 16:38 -!- mariomop(~quassel@186.153.75.24) has joined #tryton
2015-03-03 16:48 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 16:51 -!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 16:54 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 17:01 -!- lukio(~lukio@host14.190-136-221.telecom.net.ar) has joined #tryton
2015-03-03 17:01 -!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 17:09 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-03 17:09 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 17:15 -!- Warsaw(bbcc5c84@gateway/web/freenode/ip.187.204.92.132) has joined #tryton
2015-03-03 17:16 <Warsaw> Hello guys!
2015-03-03 17:16 <Warsaw> I have made progress in my instalation of Tryton in Win$
2015-03-03 17:17 <Warsaw> I can run << python trytond -c trytond.conf >> in the c:\python27\scripts folder. I prepared a trytond.conf file for this
2015-03-03 17:17 <Warsaw> The only thing that I configured were: [jsonrpc]
2015-03-03 17:18 <Warsaw> listen = localhost:8000
2015-03-03 17:18 <Warsaw> hostname = localhost
2015-03-03 17:18 <Warsaw> [database]
2015-03-03 17:18 <Warsaw> uri = postgresql://tryton:admin@localhost:5432
2015-03-03 17:18 <Warsaw> [session]
2015-03-03 17:18 <Warsaw> timeout = 300
2015-03-03 17:18 <Warsaw> super_pwd = pTerJOXihUsGc
2015-03-03 17:18 <Warsaw> (admin)
2015-03-03 17:19 <Warsaw> I just realised that I should have << listen = *:8000 >>
2015-03-03 17:20 <Warsaw> Nope, that didn't work
2015-03-03 17:20 <Warsaw> ...
2015-03-03 17:21 <Warsaw> I get an [Errno 10057] about a request, because the socket is not connected
2015-03-03 17:22 <Warsaw> Mmm... any idea of why this may be?
2015-03-03 17:24 -!- jcros1(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 17:28 <Warsaw> Ha!
2015-03-03 17:28 <Warsaw> I think that there is no tryton user in PostgreSQL
2015-03-03 17:31 <Warsaw> CREATE ROLE tryton LOGIN ENCRYPTED PASSWORD 'md5f78da5d5046322e2f925bbd39e9c5487' NOSUPERUSER INHERIT CREATEDB NOCREATEROLE NOREPLICATION;
2015-03-03 17:31 <Warsaw> (using PgAdmin III)
2015-03-03 17:33 <Warsaw> I cannot create a database
2015-03-03 17:33 <Warsaw> Could someone help me with this?
2015-03-03 17:35 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has left #tryton
2015-03-03 17:35 -!- pablovannini(~pablo@110-189-235-201.fibertel.com.ar) has joined #tryton
2015-03-03 17:37 <cedk> Warsaw: try first without the client
2015-03-03 17:38 <cedk> Warsaw: http://doc.tryton.org/3.4/trytond/doc/topics/setup_database.html#topics-setup-database
2015-03-03 17:38 -!- jcros(~Thunderbi@187.176.125.78.rev.sfr.net) has joined #tryton
2015-03-03 17:38 <Warsaw> Ohh!!!
2015-03-03 17:38 <Warsaw> Let me try
2015-03-03 17:41 <Warsaw> Apparently, I don't have psycopg2... :S
2015-03-03 17:41 <Warsaw> I'll be back :)
2015-03-03 17:42 <Warsaw> Requirement already satisfied (use --upgrade to upgrade): psycopg2 in c:\python27\lib\site-packages Cleaning up...
2015-03-03 17:43 <Warsaw> I will add << c:\python27\lib\site-packages >> to the Path: << setx Path "%Path%;c:\python27\lib\site-packages" >>
2015-03-03 17:53 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-03 18:10 <Warsaw> It didn't work. What I did was to follow https://stackoverflow.com/a/13173362 :
2015-03-03 18:10 <Warsaw> (1) Download psycopg2 from here http://www.stickpeople.com/projects/python/win-psycopg/
2015-03-03 18:10 <Warsaw> (2) rename to zip
2015-03-03 18:11 <Warsaw> (3) extract contents of the folder PLATLIB into C:\Python27\Lib\site-packages\
2015-03-03 18:11 <Warsaw> (4) python -c "import psycopg2"
2015-03-03 18:59 <Warsaw> I have a new problem now: http://pastebin.com/60WMvn5j
2015-03-03 18:59 <Warsaw> I get a ImportError: DLL load failed: %1 is not a valid Win32 application
2015-03-03 19:01 <cedk> Warsaw: probably wrong version of lxml
2015-03-03 19:01 <cedk> Warsaw: 36vs64 bit maybe
2015-03-03 19:06 -!- munron(~AndChat68@197.211.216.214) has joined #tryton
2015-03-03 19:09 <Warsaw> it went automatically via pip install
2015-03-03 19:09 <cedk> Warsaw: so you have a compiler
2015-03-03 19:09 <Warsaw> Mmmmm?
2015-03-03 19:09 <cedk> Warsaw: usually, it is easier to install such package with the setup.exe
2015-03-03 19:09 <Warsaw> Ok...
2015-03-03 19:10 <cedk> expecially lxml because it requires xml libraries that are quite huge
2015-03-03 19:10 <Warsaw> I thought that it was easier with pip install. Actually, I think that it went through << pip install trytond >>
2015-03-03 19:10 <Warsaw> Ok
2015-03-03 19:10 <Warsaw> I will try to download lxml from pypi
2015-03-03 19:11 <Warsaw> I have checked this: << python -c "import lxml" >>, and it works
2015-03-03 19:11 <cedk> Warsaw: I guess lxml root has no code
2015-03-03 19:12 <Warsaw> Should I check (how?) or just download from PyPI?
2015-03-03 19:17 <Warsaw> YAY! it seems to be woking. I downloaded the EXE from https://pypi.python.org/pypi/lxml/3.4.2#downloads
2015-03-03 19:17 <Warsaw> [Tue Mar 03 12:17:12 2015] INFO:trytond.server:Update/Init succeed!
2015-03-03 19:20 <Warsaw> It didn't ask me for a password
2015-03-03 19:29 -!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton
2015-03-03 20:01 -!- pilou(~pilou@181.204.19.93.rev.sfr.net) has joined #tryton
2015-03-03 20:01 -!- pilou(~pilou@pdpc/supporter/active/pilou) has joined #tryton
2015-03-03 20:02 -!- hiaselhans(~Thunderbi@212.186.50.97) has joined #tryton
2015-03-03 20:08 <Warsaw> cedk: I'm going to restart. I am not being able to connect to the database. I'll be back
2015-03-03 20:08 <Warsaw> Thanks
2015-03-03 20:10 -!- vcardon(~vcardon@bureau-sdsl.tranquil.it) has left #tryton
2015-03-03 20:50 -!- pobsteta(~Thunderbi@37.161.85.18) has joined #tryton
2015-03-03 20:55 -!- pobsteta(~Thunderbi@37.161.85.18) has joined #tryton
2015-03-03 21:55 <yangoon1> cedk: hi, was it intended to remove TODO files on bugfix releases?
2015-03-03 21:56 <yangoon1> or some undesired side effect?
2015-03-03 22:12 <yangoon1> http://hg.tryton.org/modules/sale/rev/c5bbded67a6f :(
2015-03-03 22:28 -!- nicoe(~nicoe@2a02:a03f:3065:f00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2015-03-03 23:15 -!- alimon(~alimon@134.134.139.74) has joined #tryton

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