Team Chat Logs

October 26, 2009

2009 9
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

[00:56:52.908306]<macmaN6789>can anyone advise me how to isolate one wsgi-trac from another, as in so it would have only its own set of modules
[00:57:11.274498]<macmaN6789>right now its seeing everything from system site-packages
[01:30:38.749677]<jornlux>hi all
[01:31:03.884662]<jornlux>firing away, hoping someone has an answer
[01:31:05.042376]<Paranoidi>macmaN6789: dunno if it's possible, I'd try with python virtualenv
[01:31:14.793187]<jornlux>got a fresh trac install on a debian etch
[01:31:36.575720]<Paranoidi>macmaN6789: it should work if you can somehow specify the python executable for each trac instance
[01:31:50.835111]<jornlux>requests don't seem to be passed through to python handler
[01:32:16.105621]<jornlux>-> no interpretation of environment, so apache is simply showing folder contents
[01:32:43.441657]<jornlux>anyone seen this ?
[01:33:47.218639]<Paranoidi>macmaN6789: I think you can do it by setting virtualenv with --no-site-pages (or wha it was) and by pointing the trac wgi file #!/bin/python to this virtualenv python binary
[01:47:04.190641]<kirean>@frontend
[01:47:04.208736]<evil_twin>frontend is CGI, FastCGI, mod_python, tracd, or mod_wsgi
[01:47:15.873906]<kirean>jornlux: ^^
[01:47:26.475286]<kirean>jornlux: which frontend?
[01:54:13.534633]<jornlux>sorry
[01:54:23.447646]<jornlux>front: apache2 / mod_python
[01:57:52.325141]<kirean>jornlux: I'd guess you haven't configured your apache conf correctly
[01:58:25.061813]<jornlux>ye reckon so too - but the config is a copy-paste from another working setup
[02:01:35.043972]<kirean>@pastebin
[02:01:35.061364]<evil_twin>pastebin is http://paste.lisp.org/new/trac
[02:02:00.032047]<kirean>jornlux: posting the config might help
[02:02:05.029688]<jornlux>coming up
[02:02:05.904170]<jornlux>sec
[02:04:48.421426]<lisppaste5>jornlux pasted "apacheconf" at http://paste.lisp.org/display/89277
[02:17:08.207228]<kirean>jornlux:
[02:17:08.356438]<kirean>Alias /test /usr/share/tracprojects/test/tracenv
[02:19:00.058635]<jornlux>oui ?
[02:20:47.460773]<jornlux>damn. right out of the box
[02:21:23.304440]<jornlux>do you even know why the Alias directive wasn't working ?
[02:36:44.784579]<kirean>jornlux: did you drop the alias?
[03:01:32.341531]<jornlux>yep. dropped the alias, and it worked right away.
[03:02:03.143817]<jornlux>just curious why i's so
[03:03:46.243758]<kirean>with that alias you'll never hit the Location /test/tracenv
[03:07:04.611739]<jornlux>tried renaming it to something else than 'test', which aliased right, but the request was not being filtered through mod_python
[03:07:22.971678]<jornlux>apparently, since it (again) only listed folder contents
[03:11:17.003572]<kirean>I would change the location config instead (If I'm understanding correctly what you're trying to achieve)
[03:12:04.202535]<kirean><Location /test>
[03:12:04.221107]<kirean> SetHandler ...
[03:12:04.241854]<kirean> ...
[03:12:04.262100]<kirean></Location>
[03:30:41.699521]<jornlux>ah but ofcourse
[03:32:09.225026]<jornlux>think I have to descend to apache config basics repeating
[03:32:25.998003]<jornlux>really appreciate you taking the time
[03:32:37.029530]<jornlux>thank you very much
[03:32:51.504211]<kirean>jornlux: gl
[03:35:04.711467]<jornlux>k+, c ya
[03:37:09.185398]<Dwarfoo7>Hello, I upgraded to trac 0.11.5 yesterday and discovered that the TracForge plugin is no longer supported. Does anyone know any alternative to that plugin? I would really like to be able to have permission control from one master project only.
[03:53:41.568616]<osimons>Dwarfoo7: no known alternatives. not sure what the status and future of the plugin is, but coderanger_ makes a strong explicit note that it isn't supported for 0.11... a branch exists and various tickets with patches exists for the plugin. never seen it or used it myself, so can't help.
[06:52:33.710052]*retracile mutters something incontrovertible about mornings.
[07:02:59.466237]<Dwarfoo7>thanks osimons
[07:03:03.500849]<Dwarfoo7>what a pitty
[07:10:28.513700]<jhammel>Davey: about the mornings?
[08:16:04.713181]<retracile>jhammel: heh :)
[08:19:37.737623]<jtheuer>Can I send notifications only if a ticket enters a certain status?
[09:01:59.948161]<cridenour>Hi, I'm having some troubles using git with Trac. I've installed trac-git from Ubuntu and have included the necessary options in my trac.ini including the [components] area. Can anyone thing of why the component wouldn't be loading (or other explanations for the "Unsupported version control system "git": Can't find an appropriate component," error)
[09:15:21.011951]<cridenour>Problem solved by installing from source. :)
[09:30:26.601880]<bionoid>Hi, I'm trying to use TicketImportPlugin and it works nicely -except- for not detecting my "milestone" column - any ideas? I tried moving it around in the CSV file etc (and it's there no doubt), but does not show for import.
[10:08:20.518820]<vvsh>hello guys, is it possible to set up trac with a working copy of svn ?
[10:08:36.268910]<jhammel>vvsh: of course
[10:09:17.300279]<vvsh>jhammel: i tried to put my working copy's path, but got error said its not a svn repository]
[10:09:49.366079]<vvsh>jhammel: can you point me at the right direction? please
[10:10:15.774517]<jhammel>vvsh: hmmm, i would guess you don't have the right svn libraries installed
[10:10:18.255125]<jhammel>i don't know
[10:10:27.381540]<jhammel>vvsh: oh wait, do you mean a checkout of an svn repo?
[10:11:27.254885]<vvsh>jhammel: yeah, i want to use a reportory i checkout from somewhere else in trac
[10:11:53.696851]<jhammel>vvsh: in that case, no, its not possible
[10:12:06.208573]<vvsh>why?
[10:12:39.396140]<jhammel>vvsh: because Trac wants a real repository there
[10:13:21.741888]<vvsh>what if i got admin right for that repository, but the repository is somewhere else (not the same machine)
[10:13:34.293736]<jhammel>vvsh: then you can sync it with svnsync
[10:13:42.460559]<jhammel>but its pushing the bounds of what svn can do
[10:15:00.255971]<vvsh>so is better to install trac on the same machine as the central repository?
[10:16:48.840642]<retracile>vvsh: generally, yes.
[10:17:33.417762]<vvsh>is there anyway round that, cos i don't want to install trac on the central repository machine
[10:17:58.300380]<retracile>vvsh: svnsync as jhammel suggested
[10:18:45.691473]<retracile>vvsh: or custom post-commit hooks on the central machine to push changes to a repo on the trac machine...
[10:20:46.094203]<vvsh>i was thinking, is it possible to using the git-svn
[10:20:52.045636]<vvsh>to get around it
[10:21:54.437218]<vvsh>cos i already got git plugin install on trac, and some project already working with git as the source
[10:22:49.217188]<vvsh>or using git svn will make life even more complicate?
[10:28:40.746112]<qnix>trac 0.11.5 support mysql by default? right?
[10:30:14.959260]<qnix>ah, I'm probably missing the python plugin
[10:30:26.936505]<qnix>module, should I say.
[10:52:15.108520]<thatch>vvsh: probably more complicated, you'll still need something to pull the changes locally.
[11:02:00.451599]<vvsh>thatch: i think i just need to git fetch regular to keep everything up to date
[11:23:14.191982]<qnix>Can I access directly to files in project/htdocs ?
[11:56:02.390663]<joel___>Hi anyone... I'm getting an error message when creating a ticket: global name 'traceback' is not defined -- i'm new at this. .can anyone point me in the right directon to fix this.. Thanks!
[12:23:00.818453]<qnix>Hmm.. the mercurial repository have to be on the same machine than trac ??
[12:42:21.508591]<joel___>Hi anyone... I'm getting an error message when creating a ticket: global name 'traceback' is not defined -- i'm new at this. .can anyone point me in the right directon to fix this.. Thanks!
[12:52:33.472160]<retracile>joel___: we'll need more details -- version of trac, installed plugins, any logs from trac.log (pastebinned), full error message, distribution you're running on, version of python, webserver involved, etc.
[12:52:56.586450]<joel___>ok.. gathering 411 for you..
[12:59:52.420883]<joel___>Running Track 0.11, Windows 2000 Server with Apache, Admin Plugin Used, Python 2.4.3,
[12:59:53.959066]<joel___> Errors: Trac detected an internal error:
[12:59:55.434662]<joel___>NameError: global name 'traceback' is not defined
[12:59:56.952963]<joel___>The action that triggered the error was:
[12:59:58.931719]<joel___>POST: /newticket
[13:00:00.472078]<joel___>Is that enough 411? Not sure how to find the trac logs
[13:03:30.501621]<retracile>!inform joel___ logging?
[13:03:30.530815]<evil_twin>joel___: http://trac.edgewall.org/wiki/TracLogging <-- Enable debug logging to file, ensure your environments log/ directory is writeable by your web server user, check for errors.
[13:03:47.134093]<retracile>"admin plugin" are you talking webadmin or accountmanager plugin?
[13:04:54.568988]<joel___>account manager plugin
[13:05:23.140221]<joel___>where I can set users and permissions (i belive the 0.11.5 has this built in now..)
[13:06:22.376772]<tenaglia>hi all
[13:08:03.931523]<lisppaste5>joel___ pasted "Error Log for Trackback is not defined" at http://paste.lisp.org/display/89322
[13:08:24.364068]<joel___>the above is the last entries in the log..
[13:09:37.681765]<joel___>One thing to note.. the errors only happen outside my companies corporate firewall. Any internal accesses it doesn't cause an error message. Could THAT be the problem?
[13:21:43.942562]<joel___>Any thoughts?
[13:33:13.233750]<lisppaste5>libin_v pasted "Libin Varghese" at http://paste.lisp.org/display/89324
[13:33:32.142414]<libin_v>Hi I am having problems installing tarc on Mac
[13:33:36.282791]<libin_v>trac**
[13:34:04.424773]<libin_v>I have pasted the error log in the pastebin... please help
[13:40:29.690956]<yaaang>what's the difference between resolutions 'rejected' and 'invalid'?
[13:41:20.055572]<yaaang>in particular, i'm a user who filed a ticket and now realized that the issue wasn't a bug but my own user error; which resolution should i choose?
[13:41:30.566894]<retracile>yaaang: probably invalid
[13:42:44.238657]<joel___>retracile - any thoughts on the 'traceback' is not defined problem?
[13:43:05.472706]<retracile>joel___: do you have a plugin related to "datefield" installed?
[13:43:15.581751]<joel___>yes i do..
[13:43:35.131461]<retracile>joel___: looks like it's something in that plugin at first glance
[13:43:39.394454]<yaaang>thanks
[13:44:29.759168]<joel___>humm ok.. it may be a required field.. have to check.. thay may be the problem
[13:44:36.710597]<retracile>libin_v: that looks like something's wrong in the postgres python bindings to me....
[13:46:47.042072]<libin_v>retracile: ok.. i first installed psycopg... but to install trac it asked me to install pypgsql
[13:53:56.723464]<retracile>libin_v: pacopablo may be more knowledgeable about that; I haven't had a need to move beyond sqlite yet ;)
[13:54:04.306462]<libin_v>retracile: the problem was with mac... http://benkreeger.com/personal/snow-leopards-python-2-6-site-packages
[13:54:34.252357]<libin_v>retracile: the python on snow leopard is 32 bit while my machin eis 64 bit
[13:55:42.628786]<libin_v>I am a newbie to trac... I have a source base which is in Mercurial.... I notice trac has an SVN integration.. this is for the wiki pages right??
[14:11:58.141042]<manowar>hey all, i'm preparing to execute the mantis2trac.py script but i'm not sure where to execute the script from
[14:12:11.839921]<manowar>we are using Trac hosted by a company called wush.net
[14:14:43.368717]<manowar>can someone point me in the right direction? maybe i'm just not seeing it in the Trac UI
[14:22:25.775435]<hardwire>cool.. I should set up paid trac hosting.
[14:22:34.288108]*hardwire rubs his hands together and makes money spit out.
[14:23:39.217459]<hardwire>manowar: it works if you have shell access
[14:23:43.518337]<hardwire>and local database access
[14:24:13.860131]<hardwire>manowar: if you don't have shell access with wush.net then you can't do an import directly.
[14:24:32.188507]<hardwire>but if you can access the trac database (if it's sqlite) you can copy everything from wush.net over to your site.. execute.. then push it back.
[14:24:54.910599]<hardwire>it sounds like they set it up for it to be easier for you to just pay them to do it and send them your data
[14:25:13.192417]<manowar>hmmm cool idea about copying the DB
[14:25:14.824857]<retracile>libin_v: the svn integration is the source browser. there is a plugin to change that to mercurial
[14:25:46.546004]<manowar>I will need python installed to execute the script it looks look too
[14:32:57.207926]<manowar> yes the hosting company is using SQLite, version 3.3.6
[15:14:58.952164]<hardwire>manowar: then you should install the same version of trac they have (requires python)
[15:15:04.611210]<hardwire>and should be good to go if you can get access
[15:22:57.562250]<libin_v>I have 2 python postgresql bindings.... psycopg and pyPgSQL ... I would like to use psycopg.. where can I mention this setting
[15:36:13.914234]<thatch>libin_v: 0.11 automatically prefers psycopg: http://trac.edgewall.org/browser/branches/0.11-stable/trac/db/postgres_backend.py#L31
[15:36:30.896307]<thatch>trunk doesn't support pyPgSQL, only psycopg.
[15:40:24.732193]<libin_v>thatch: But during initenv it asked me to instal pyPgSql
[15:41:38.994301]<libin_v>thatch: I think I screwed my machine... How do I start from scratch ... how to uninstall psycopg & pyPgSQL... I am newbie to python...
[15:41:40.757036]<thatch>libin_v: need more info, what version, and what was the exact error?
[15:41:59.927081]<thatch>before I can answer how to uninstall them, how did you install them?
[15:42:39.994620]<thatch>and, most importantly, do you have more than one version of python on your system?
[15:43:01.755895]<libin_v>i downloaded the source from the corresponding sites and did a "python setup.py build & install"
[15:43:32.222437]<libin_v>how can I check how many versions are there on my machine...
[15:43:56.582049]<thatch>first, examine 'which python', and 'head `which trac-admin`, make sure they match.
[15:44:24.430050]<thatch>and 'which python' running as root (or however you did the setup.py install, get the environ the same)
[15:44:57.354944]<thatch>assuming you're on linux (since you still haven't told me your OS) the packages generally install in /usr/lib/python2.x/site-packages/*
[15:45:35.991152]<libin_v>I am using Mac OSX Snow Leopard... Python 2.6 and trac-admin 0.11.5
[15:46:28.010045]<thatch>are you using the bundled python 2.6 or another one (python.org, perhaps)
[15:46:58.345815]<libin_v>bundled with OSX
[15:47:24.226531]<thatch>okay, so what's the error you get.
[15:47:51.527020]<thatch>and try running: python -c 'import psycopg2; print psycopg2.__file__'
[15:49:12.957442]<retracile>thatch: libin gave http://paste.lisp.org/display/89324
[15:49:57.115876]<thatch>ah.
[15:49:58.411496]<retracile>thatch: also " <libin_v> retracile: the python on snow leopard is 32 bit while my machin eis 64 bit"
[15:50:34.808537]<retracile>thatch: I almost instantly landed in unfamiliar territory... ;)
[15:50:37.850137]<thatch>there are lots of issues with libraries on snow leopard, try running it in 32 bit mode
[15:50:52.750264]<libin_v>thatch: retracile: that was earlier... know I get another error
[15:51:01.185877]<retracile>Oh.
[15:51:17.947534]<thatch>check 'man python' and it mentions a environment variable you can set. See if that helps (but my primary suggestion is: forget pyPgSQL, rm -rf /Library/Python/2.6/site-packages/pyPgSQL, and see if you get further with psycopg only)
[15:51:33.877337]<libin_v>I ran teh command u gave me ... it displayed. /Library/Python/2.6/site-packages/psycopg2/__init__.pyc
[15:51:52.123761]<thatch>okay, get rid of pyPgSQL and try again
[15:52:50.506431]<thatch>retracile: on SL the libs are both 32-bit and 64-bit, which is a pain for compiling because quite often a configure step produced #define INTSIZE 4, based on a sizeof(int) during configure time.
[15:53:42.798175]<thatch>(the compiler can produce both 32-bit and 64-bit binaries _at_the_same_time_ only if such defines don't exist, so you either have to patch them back out to something that's evaluated dynamically, or compile once for each size and then use lipo to merge them)
[15:54:14.966686]<retracile>thatch: infinite loopiness.... ;P
[15:55:00.525691]<thatch>endian issues are even more fun, because you can technically have a 4-way 'fat' binary, which has both big- and little-endian for 32-bit and 64-bit platforms.
[15:55:07.966043]<lisppaste5>libin_v pasted "Libin Varghese" at http://paste.lisp.org/display/89334
[15:55:25.695327]<libin_v>ok... btw the error i get now is in teh pastebin
[15:55:51.161922]<thatch>libin_v: okay, that means an initenv half-worked before. remove the tables in the db that trac created, and try again
[15:55:59.913690]<libin_v>thatch: I am yet to try deleting the pyPgSql
[15:56:15.171695]<thatch>okay, so how did you get this far? 32 bit mode?
[15:58:29.113858]<libin_v>thatch: I get the same error after deleting pyPgSQL...
[15:58:38.697653]<thatch>libin_v: same as what?
[15:58:39.308690]<libin_v>http://paste.lisp.org/display/89334
[15:59:00.015539]<thatch>I already told you what that means. "that means an initenv half-worked before. remove the tables in the db that trac created, and try again
[15:59:03.090140]<thatch>"
[15:59:14.702108]<libin_v>oops... I missed that
[15:59:15.932968]<thatch>so run psql -u ...
[15:59:51.726449]<thatch>and 'drop table', maybe some drop index, I don't know. there's probably a gui as well. if you do it in a schema you can also drop schema ... cascade, which is quite helpful.
[16:05:08.166946]<libin_v>I dropped the schema ... do I need to create the db again...
[16:07:45.652848]<thatch>libin_v: no, it should create the schema for you, if you specify one. I don't think it will create 'public' if that is what you were using.
[16:09:25.871043]<kisielk>wow, people in #httpd are massive assholes
[16:09:38.210525]<libin_v>thatch: I did a "drop schema public cascade"
[16:10:18.618084]<libin_v>thatch: can I remove the db and craete one
[16:10:20.810494]<thatch>libin_v: then I advise a 'create schema "public"' just to be sure.
[16:10:36.798933]<thatch>can you? probably.
[16:11:47.975600]<libin_v>yes I can...I deleted it using dropdb
[16:14:01.554869]<libin_v>thatch: ok.. initenv is done... I am trying to deploy...
[16:24:56.179194]<lisppaste5>libin_v pasted "Libin Varghese" at http://paste.lisp.org/display/89336
[16:25:23.168483]<libin_v>thatch: Not sure why it is reffering to pyPgSQL
[16:25:59.140288]<libin_v>I am able to run it using tracd.. but when I deploy on apache...I get this error
[16:27:31.845942]<libin_v>thatch: should reinstall trac...
[16:30:30.889818]<thatch>libin_v: it means it couldn't locate your psycopg2, so it's trying pyPgSQL instead.
[16:31:00.544636]<thatch>how are you trying to deploy on apache? mod_python? fastcgi? mod_wsgi? cgi? carrier pigeon?
[16:31:06.521510]<libin_v>fastcgi
[16:31:26.341882]<thatch>okay, what's your fastcgi script look like?
[16:32:44.874543]<lisppaste5>libin_v pasted "FastCGI Script" at http://paste.lisp.org/display/89337
[16:33:14.516555]<libin_v>thatch: I have put the fastcgi script in pastebin
[16:39:07.611525]<thatch>hmm.
[16:39:39.339739]<thatch>try something like this: sudo -u httpd /usr/bin/python -c 'import psycgopg2'
[16:44:04.330140]<lisppaste5>libin_v pasted "http & psycopg2" at http://paste.lisp.org/display/89341
[16:44:16.512348]<libin_v>I get an error
[16:44:58.721699]<libin_v>My apache is running in _www group... I hope that is fine
[16:46:02.327230]<thatch>hmm, with 'Symbol not found' the user and group shouldn't matter. It looks like an issue compiling.
[16:47:01.070178]<thatch>various googling confirms that this is probably related to 64-bit python
[16:48:46.849119]<thatch>see http://favosdream.blogspot.com/2009/09/make-psycopg2-and-readline-work-in-snow.html (which will require some editing, it looks like it's for postgres in /opt/local, and I have no idea where yours is [my precompiled one is in /Library/PostgreSQL])
[16:51:08.683033]<thatch>I personally downgraded SL->L last week because of various things that hindered my workflow.
[17:00:34.081959]<libin_v>thatch: I will try the approach mentioned in site you gave. Thank You for the support. :)
[18:48:05.560400]<tenaglia>hi
[18:49:26.163457]<tenaglia>has anyone used http://trac-hacks.org/wiki/LdapPlugin ?
[19:13:10.744474]<thatch>tenaglia: yes, several people have. what's your specific issue?
[19:14:28.368646]<tenaglia>thatch: just looking for informations. I'd like to get groups from LDAP and would like to know if it's possible (once configured the connection) to use just the web interface for granting privileges
[19:16:51.220006]<thatch>tenaglia: as far as storing groups in ldap, yes definitely.
[19:17:35.042781]<thatch>"use just the web interface [to grant] privileges" - do you mean to assign permissions to a group? I'm not sure if that's possible, I don't personally use the webadmin
[19:18:28.463052]<thatch>looking at http://trac-hacks.org/wiki/LdapPlugin#Ldappermissionstore and following to http://trac.edgewall.org/wiki/TracPermissions it appears so.
[19:33:43.230402]<tenaglia>thatch: yes I mean this