[Trac] Re: Need Help with Trac-0.9.6
On Sunday 04 November 2007 18:31:44 Denis wrote: Hello. I have a problem: On Debian I tried to install Trac-0.9.6 at my home dir: /home/dz- apache2/ For this at the same dir were installed: 1. Apache2 $ ./configure --prefix=$/home/dz-apache2/local --enable-modules=all -- enable-mods-shared=all --enable-module=shared $ make $ make install 2. Python-2.4.4 3. Mod-Python-3.3.1 4. To make this work correctly I removed local libexpat.so.0, and made a symbolic link to system libexpat.so.0: $ cd /home/dz-apache2/local/lib $ rm libexpat.so.0 $ ln -s /usr/lib/libexpat.so.0 libexpat.so.0 5. Then I installed sqlite-3.5.1, pysqlite-2.3.5, clearsilver-0.9.14 also Trac. Then I created Project Env: $ trac-admin /home/dz-apache2/local/TracTest initenv And tested Trac with embedded server tracd. All worked correctly. Then I tested Trac with Apache2 as CGI. There was a problem with You have no permissions to see this page, but that was solved by changing 1 string in apache httpd.conf from Deny from all to Allow from all 7. Then I tested Trac to be handled by mod_python. To do this I changed httpd.conf added following strings: Location /projects/TracTest SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv /home/dz-apache2/local/TracTest PythonOption TracUriRoot /projects/TracTest /Location Than I went to http://localhost/ and saw Trac page with No formatting : ( and when I try to edit any page I get an error: Oops... Trac detected an internal error: Error binding parameter 0 - probably unsupported type. blah-blah File /home/dz-apache2/local/lib/python2.4/site-packages/trac/db.py, line 211, in _rollback_on_error return function(self, *args, **kwargs) InterfaceError: Error binding parameter 0 - probably unsupported type. When I press Search button: Oops... Trac detected an internal error: split blah-blah File /home/dz-apache2/local/lib/python2.4/site-packages/mod_python/ util.py, line 90, in __getattr__ raise AttributeError, name AttributeError: split Please, help me. With TRAC 0.11 almost on the way, 0.10.5 declared stable, I would like to know for any specific reason for choosing 0.9.6. Even 0.11 dev branch is stable and easier to install as there is no clearsilver needed. Please install 0.11 dev branch or 0.10.5 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~--- -- Purnank Harjivanbhai Ghumalia pgpZELGZio9bL.pgp Description: PGP signature
[Trac] Re: SVN commit-function in web front-end?
On Saturday 20 October 2007 01:57:03 Jordi Bunster wrote: On Oct 19, 2007, at 2:04 PM, Andreas wrote: I'm fairly new to Trac and want to use it for something unusual, I guess: I'd like to take the browse source functionality and make it also do commits. So, a web form with a save button that will commit the current contents to the SVN. Trac doesn't support that right now, but would it generally be possible to do that (or are there major technical obstacles), and roughly how hard would it be? There's the obvious problem of the fact that commit is sometimes interactive. You try to commit, but it turns out you're out of date, have to svn up again, merge, and then finally commit. On a web interface, seems somewhat difficult to do. I am not sure if my theories are correct. But possibly WebDAV access can be handy here. The document loaded through the WebDAV from the repository would always be the latest and you should be able to save it after modification. The possible probelm with this approach here is that you might end up with numerous revisions for a small editing session. Each save from the webdav front end would result into a commit. Are there any other tools out there that would be better suited for my needs? Subversion and your text editor? -- Jordi -- Purnank Harjivanbhai Ghumalia pgpM868jJY9B8.pgp Description: PGP signature
[Trac] Re: Download Zip Archives from Browser
On Thursday 18 October 2007 22:46:04 [EMAIL PROTECTED] wrote: Hello, I have just setup Trac (stable 0.10.4) under Windows XP. Everything works nicely, but for some reason the repository browser does not shows the Download in other formats links (I'm specially interested in getting Zip Archive's of any dir of my project's svn rep). I have searched and searched, but I cannot find information about how to enable this feature, other than making sure that trac.ini has correctly set the downloadable_paths option (in the [browser] section). Mine reads: downloadable_paths = trunk/*, branches/*, tags/* It should be downloadable_paths = trunk, branches/*, tags/* this would make sure that when you are in trunk, you get the donload to zip option. The same would be true when you are in branches/preBeta branches/postBeta branches/user_one branches/bugfixOne tags/Alpha_1.1 tags/Beta_1.1 I hope you notice the importance of * here. Am I missing something? Is there a special requirement for this to work under Windows (ie, command line zip tools)? Any help will be highly appreciated!. Thanks in advance. Oscar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~--- -- Purnank Harjivanbhai Ghumalia pgpDwXSn7zvbZ.pgp Description: PGP signature
[Trac] Re: Download Zip Archives from Browser
On Friday 19 October 2007 16:06:13 Purnank wrote: On Thursday 18 October 2007 22:46:04 [EMAIL PROTECTED] wrote: Hello, I have just setup Trac (stable 0.10.4) under Windows XP. Everything works nicely, but for some reason the repository browser does not shows the Download in other formats links (I'm specially interested in getting Zip Archive's of any dir of my project's svn rep). I have searched and searched, but I cannot find information about how to enable this feature, other than making sure that trac.ini has correctly set the downloadable_paths option (in the [browser] section). Mine reads: downloadable_paths = trunk/*, branches/*, tags/* It should be downloadable_paths = trunk, branches/*, tags/* Quickly correcting myself downloadable_paths = /trunk, /branches/*, /tags/* this would make sure that when you are in trunk, you get the donload to zip option. The same would be true when you are in branches/preBeta branches/postBeta branches/user_one branches/bugfixOne tags/Alpha_1.1 tags/Beta_1.1 I hope you notice the importance of * here. Am I missing something? Is there a special requirement for this to work under Windows (ie, command line zip tools)? Any help will be highly appreciated!. Thanks in advance. Oscar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~--- -- Purnank Harjivanbhai Ghumalia pgp89BIZbfZTR.pgp Description: PGP signature
[Trac] Re: Latest trac 0.11 not working for me anymore
On Saturday 06 October 2007 23:21:39 ryan wrote: Hello, over the last few weeks, I've installed a number of versions of 0.10.4 and 0.11 -- everything went fine for both installs numerous times but I took a week or so off, and now I can't get 0.11 to work. It seems to install okay but then, when I try to do trac-admin /path/to/whatever initenv, I got this error message: TRAC Admin is now a part of TRAC 0.11 (I've tried python 2.4 and python 2.5 and a bunch of other variations already) - Creating and Initializing Project Failed to create environment. invalid literal for int() with base 10: '' Traceback (most recent call last): File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/a dmin/console.py, line 533, in do_initenv options=options) File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/e nv.py, line 175, in __init__ self.create(options) File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/e nv.py, line 286, in create DatabaseManager(self).init_db() File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/d b/api.py, line 69, in init_db connector, args = self._get_connector() File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/d b/api.py, line 85, in _get_connector scheme, args = _parse_db_str(self.connection_uri) File /usr/local/lib/python2.5/site-packages/Trac-0.11dev_r6049-py2.5.egg/trac/d b/api.py, line 151, in _parse_db_str port = int(port) ValueError: invalid literal for int() with base 10: '' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~--- -- Purnank Harjivanbhai Ghumalia pgp4mMAFTYpQq.pgp Description: PGP signature
[Trac] Re: Post Subversion commit comments on Trac Tickets
On 7/30/07, Mark van SIntfiet [EMAIL PROTECTED] wrote: Here I am again, still fighting to get this working. In this email I tried to be as complete as possible so that someone can tell me what I'm doing. First I created post-commit in /var/lib/svn/project/hooks. Second I copied /usr/share/trac/contrib/trac-post-commit-hook to /var/lib/svn/project/hooks I did chown www-data.www-data to both files. And also for testing purpose I did chmod 777 to both files, to make sure it's not a permission issue. /var/lib/svn/project/hooks contains: START #!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, # etc.) named 'post-commit' (for which # this file is a template) with the following ordered arguments: # # [1] REPOS-PATH (the path to this repository) # [2] REV (the number of the revision just committed) # export LD_LIBRARY_PATH=/usr/local/lib export PYTHONPATH=/usr/local/lib/python2.4 REPOS=$1 REV=$2 /var/lib/svn/P0001/hooks/trac-post-commit-hook -p $REPOS -r $REV post-commit.log END With TortoiseSVN I made a change in subversion, in the comment I added refs #1, revision 19 is created. But nothing happens in trac. Also no log information is written. When I run the post-commit hook from the command line(sudo -u www-data /var/lib/svn/project/hooks/post-commit /var/lib/trac/project/ 19) everything goes well, and the SVN commit message is added to the specified Trac Ticket. The post-commit.log file is also created(empty,nothing goes wrong?). So the Post-commit hooks is not called when I do a commit wit TortoiseSVN, so I think I forgot something. But I read the documentation over and over but I can't find what happened. Hi Marc, You are using 1) /var/lib/svn/P0001/hooks/trac-post-commit-hook -p $REPOS -r $REV post-commit.log Inside your file, rather than using, /var/lib/svn/project/hooks/trac-post-commit-hook -p $REPOS -r $REV post-commit.log 2) Possibly post-commit.log might get created, but in some other working directory. For solution, Can you please fix the path for the hook and use absolute path for the commit log. Thanking You, Purnank. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: newbie Question
Not sure for tracd, but if apache is used: Never ever put your passwords in a file under your DocumentRoot! Apache httpd.conf should contain a rule like Files ~ ^\.ht Order allow,deny Deny from all /Files This means, no body is allowed to read/get file starting with .ht via apache. (Or HTTP requests) So you may use .httracpasswd instead of trac.htpasswd Thanking You, Purnank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Gmail for SMTP?
Remove the following line: smtp_port = 465 or use it with the regular SMTP port (25). gmail would not support port 25. (Secure connection) I still have not been able to successfully setup trac to use Gmail's SMTP. For testing purposes, you might give http://sourceforge.net/projects/ yahoopops/ a try. You will get port 25 available on your localhost. I am successful configuring Y!Pops and trac to send emails. this is a part of the trac.ini file. #mime_encoding = base64 mime_encoding = none smtp_always_bcc = smtp_always_cc = [EMAIL PROTECTED] smtp_default_domain = smtp_enabled = true smtp_from = [EMAIL PROTECTED] smtp_from_name = poornaank smtp_password = ** smtp_port = 25 smtp_replyto = smtp_server = 127.0.0.1 smtp_subject_prefix = __default__ smtp_user = [EMAIL PROTECTED] ticket_subject_template = $prefix #$ticket.id: $summary use_public_cc = true use_short_addr = false use_tls = false Trac connects to the SMTP port, then kicks off a TLS connection. Do not append the domain for smtp_user. On 6/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: More detail: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---
[Trac] Re: Gmail for SMTP?
On Jun 29, 3:09 am, Emmanuel Blot [EMAIL PROTECTED] wrote: Remove the following line: smtp_port = 465 or use it with the regular SMTP port (25). gmail would not support port 25. (Secure connection) For testing purposes, you might give http://sourceforge.net/projects/ yahoopops/ a try. You will get port 25 available on your localhost. Trac connects to the SMTP port, then kicks off a TLS connection. Do not append the domain for smtp_user. On 6/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: More detail: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Trac Users group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~--~~~~--~~--~--~---