[Trac] Re: Trac on Leopard--not working properly

2008-06-25 Thread Max

Emmanuel wrote:
> You've change the files' owner to _www, so only _www can R/W the files.
> Which means that from the command line, you need to start tracd as the
> _www user.
>
> It should also work with Apache shipped w/ Leopard.

The thing is that it doesn't.

> What do you want to exactly achieve (I'm not sure about your goals) ?

I want to do that, I would like to run Trac using Apache (the Leopard
bundled one) and FastCGI (as far as I understand FastCGI is used by
Trac).

I will recollect here what I have done (which is what it has been done
in the tutorial I mentioned before -- 
http://www.sonzea.com/articles/subversion-trac.html
-- so, pretty much I'm just "copy-pasting" that section).

--Configure Apache to run TRAC using FastCGI--

I created a file at /private/etc/apache2/extra called httpd-
fastcgi.conf and added the following contents:

###Starts File###
# Enable fastcgi for .fcgi files

   AddHandler fastcgi-script .fcgi
   FastCgiIpcDir /private/var/run/fastcgi


LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so
###Ends File###
*Note: I've noticed that I don't have the /private/var/run/fastcgi
directory, is this a problem?

Created a file at /private/etc/apache2/extra called httpd-trac.conf
and added the following contents:

###Starts File###
ScriptAlias /trac /usr/local/share/trac/cgi-bin/trac.fcgi
FastCgiConfig -initial-env TRAC_ENV=/usr/local/trac


  SetEnv TRAC_ENV "/usr/local/trac"



AllowOverride None
Options None
Order allow,deny
Allow from all

###Ends File###
*Note: I've also noticed that I don't have the file: /usr/local/share/
trac/cgi-bin/trac.fcgi nor directory /usr/local/share/trac/cgi-bin, is
this a problem?

At the end of the file /etc/apache2/httpd.conf included directives to
these new files:

###At the very end of httpd.conf I added this lines###
# FastCGI
Include /private/etc/apache2/extra/httpd-fastcgi.conf

# TRAC
Include /private/etc/apache2/extra/httpd-trac.conf
###Ends httpd.conf###

Then I restarted the server and tried the URLS http://localhost/trac
and https://localhost/trac and neither of them worked. I get a:

Forbidden
You don't have permission to access /trac on this server.

With both of them. In the apache2 error_log I get:

[Thu Jun 26 00:43:51 2008] [error] [client ::1] client denied by
server configuration: /usr/local/share/trac

Sorry for the long post, but I'm trying to give as much information as
I can think of in order to get some advice on what to try.

Cheers,
Max.
--~--~-~--~~~---~--~~
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: Upgrade from 0.10.3 to 0.11 SuSE 10.2 RuntimeError: maximum recursion depth exceeded in cmp

2008-06-25 Thread Volker Kuhlmann

Lantzvillian wrote:

> My task for this week was to do what I thought would be a comparably
> simple upgrade for Trac since noone had been doing it previously.
> First problem might be that this is SuSE, but more importantly
> something broke terribly and I'd be glad for any help or suggestions.

I can't help with the upgrade since I only just started using trac, but
I made rpms for trac, genshi, and sqlitebrowser:

http://volker.top.geek.nz/soft/rpm/suse10.3/

As you are on openSUSE 10.2 you'll want to grab the source rpms and
remake the binary packages.

You'll also need the python-pygments rpm from the SUSE build service. I
made new rpms because there are only good rpms for old trac versions
there. There isn't anything uptodate, and the rpms for the newer trac
versions in the build service are shoddily made.

I would be careful with copying the sqlite db file across different
sqlite versions. If there is any trouble, the approach of

echo .dump | sqlite

and reloading that into an empty db should work.

I am feeling certain that there is nothing specific to openSUSE with
regards to trac. Make sure you remove all your old trac's crud, and that
you install the new one correctly. If your problem is caused by the new
trac choking on the old one's data, someone else will need to help.

Have fun :)

Volker

-- 
Volker Kuhlmann <[EMAIL PROTECTED]>
Chiptech Ltd, PO Box 41088, Ferrymead 8247, New Zealand
11a Settlers Crescent, Christchurch 8023
ph +64 3 384 7788, fax +64 3 384 7789


--~--~-~--~~~---~--~~
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: trac-admin upgrade stack trace error with 0.11b1

2008-06-25 Thread Jani Tiainen

Jesper Rønn-Jensen kirjoitti:
> Suddently one of the Trac databases on a machine had a blank screen
> and asked me to run:
> Trac Error
> TracError: The Trac Environment needs to be upgraded.
> Run "trac-admin /path_to_project/trac upgrade"
> 
> 
> This resulted in the following stack trace error:
> 
> sudo trac-admin /path_to_project/trac upgrade
> Traceback (most recent call last):
>   File "/usr/bin/trac-admin", line 8, in 
> load_entry_point('Trac==0.11b1', 'console_scripts', 'trac-admin')
> ()
>   File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
> admin/console.py", line 1194, in run
> return admin.onecmd(command)
>   File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
> admin/console.py", line 102, in onecmd
> rv = cmd.Cmd.onecmd(self, line) or 0
>   File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
> return func(arg)
>   File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
> admin/console.py", line 1105, in do_upgrade
> self.__env.upgrade(backup=do_backup)
>   File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
> env.py", line 433, in upgrade
> self.backup(backup_dest)
>   File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
> env.py", line 400, in backup
> dest = '%s.%i.bak' % (db_name, self.get_version())
> TypeError: an integer is required
> 
> 
> I'm quite blank and a quick google search did not help me. Any ideas
> of what to try next?
> The error occured after an ubuntu "apt-get dist-upgrade" to most
> recent distribution. The strange thing is that there are other trac
> databases also on the machine (sharing the trac install). And these
> run fine. Even with the exact same trac.ini configuration file.
> 
> Any ideas on where I should look or what to do?

Try first to install Trac-0.11-stable since it's released.


--~--~-~--~~~---~--~~
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: Trac on Leopard--not working properly

2008-06-25 Thread Emmanuel Blot

> This works:
> $ sudo -u _www tracd --port 8000 /usr/local/trac
>
> This is what doesn't work:
> $ tracd --port 8000 /usr/local/trac
>
> Not even if I have given permissions in the following way:
> $ sudo chown -R _www /usr/local/trac

So everything is normal here:
You've change the files' owner to _www, so only _www can R/W the files.
Which means that from the command line, you need to start tracd as the
_www user.

It should also work with Apache shipped w/ Leopard.

What do you want to exactly achieve (I'm not sure about your goals) ?

Cheers,
Manu

--~--~-~--~~~---~--~~
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] Switched from mod_python to CGI mode, but links not working

2008-06-25 Thread Eno

For various reasons, Ive had to switch our Trac installs from using
mod_python to using CGI.

In my Apache vhost I have:

ScriptAlias / /usr/local/trac/cgi-bin/trac.cgi


Bringing up the site in a web browser, I see the usual wiki home page,
however clicking on any of the links in the top nav bar doesn't work.
For /timeline I get:

Not Found

The requested URL /timeline was not found on this server.



Obviously, something is not mapping to the right place but Im not sure
where to fix this?

Do I need to add mappings for those URLs or is something missing from
my install?


--~--~-~--~~~---~--~~
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: Serious issues upgrading to 0.11

2008-06-25 Thread David Carter

Well, technically I didn't miss it, since it isn't documented anywhere  
- including in either the install or upgrade instructions. After a  
quick look, it's still unclear to me how I'm supposed to use this. Any  
pointers?

- Dave

On Jun 24, 2008, at 11:39 AM, Jeroen Ruigrok van der Werven wrote:

>
> -On [20080624 16:06], David Carter ([EMAIL PROTECTED]) wrote:
>> Well, it can be summarized as this: /usr/share/trac is never  
>> installed
>> or updated.
>
> I think you missed the deploy command to trac-admin.
>
> -- 
> Jeroen Ruigrok van der Werven  / asmodai
> イェルーン ラウフロック ヴァン デル ウェルヴェン
> http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
> Pleasure's a sin, and sometimes sin's a pleasure...
>
> >
>


--~--~-~--~~~---~--~~
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: subversion 1.5.x when to upgrade?

2008-06-25 Thread yoheeb

On Jun 21, 12:25 pm, Filipe Correia <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Check out this 
> thread:http://groups.google.com/group/trac-dev/browse_frm/thread/27eaa03eb87...
>
> Cheers,
> Filipe
>
> On Jun 20, 7:18 pm, [EMAIL PROTECTED] wrote:
>
> > Hi all.
>
> > I have been hotly waiting for1.5.xfor the merge tracking feathers.
>
> > I also use apache 2.2, on windows(as mentioned in my other posts) with
> > mod_python et al.
>
> > therefore, while going to1.5.xwould be nice, there are a lot of
> > subversion-Apache-python-trac dependencies that all need to line up
> > right as I do the super secret dance in the moonlight for it to all
> > work.
>
> > So,  the question is, how/when do I upgrade, what is the "sign" from
> > the creatures in the fly saucers I am looking for to make this leap?
> > (in reality, I think I am going to wait for 1.5.2, since I am of the
> > ilk to buy the 2nd production year model to reduce gremlins)
>
> > Thanks.

Has anyone made windows binaries of all these things?

Jay
--~--~-~--~~~---~--~~
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] trac-admin upgrade stack trace error with 0.11b1

2008-06-25 Thread Jesper Rønn-Jensen

Suddently one of the Trac databases on a machine had a blank screen
and asked me to run:
Trac Error
TracError: The Trac Environment needs to be upgraded.
Run "trac-admin /path_to_project/trac upgrade"


This resulted in the following stack trace error:

sudo trac-admin /path_to_project/trac upgrade
Traceback (most recent call last):
  File "/usr/bin/trac-admin", line 8, in 
load_entry_point('Trac==0.11b1', 'console_scripts', 'trac-admin')
()
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py", line 1194, in run
return admin.onecmd(command)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py", line 102, in onecmd
rv = cmd.Cmd.onecmd(self, line) or 0
  File "/usr/lib/python2.5/cmd.py", line 219, in onecmd
return func(arg)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
admin/console.py", line 1105, in do_upgrade
self.__env.upgrade(backup=do_backup)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
env.py", line 433, in upgrade
self.backup(backup_dest)
  File "/usr/lib/python2.5/site-packages/Trac-0.11b1-py2.5.egg/trac/
env.py", line 400, in backup
dest = '%s.%i.bak' % (db_name, self.get_version())
TypeError: an integer is required


I'm quite blank and a quick google search did not help me. Any ideas
of what to try next?
The error occured after an ubuntu "apt-get dist-upgrade" to most
recent distribution. The strange thing is that there are other trac
databases also on the machine (sharing the trac install). And these
run fine. Even with the exact same trac.ini configuration file.

Any ideas on where I should look or what to do?

Thanks a lot for your input :)

--~--~-~--~~~---~--~~
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: TracNav plugin on 0.10.4 on linux not working

2008-06-25 Thread Philip



On Jun 24, 5:07 pm, "Thomas Moschny" <[EMAIL PROTECTED]> wrote:
> 2008/6/24 Philip <[EMAIL PROTECTED]>:
>
> > I tried that, and I still get the same thing.  Plus, I still don't see
> > the "Loading..." message in the log, even after I attempt to access a
> > wiki page containing [[TracNav]].  If I google "No macro or processor
> > named 'TracNav' found", I get several other pages that seem to have
> > similar problem.  So, maybe it's a fairly common problem.  Still
> > looking for a solution.
>
> Not sure this is specific to the TracNav plugin though (but if it was,
> I'd be glad to fix it!), merely an installation issue. Do you have any
> other plugins working? Did you check permissions of the egg? The web
> server (running e.g. as wwwrun) must be allowed to access it.
>
> Regards,
> Thomas

I followed the instructions from this link
http://trac-hacks.org/wiki/EggCookingTutorial/BasicEggCooking to
create and install a helloworld plugin into the same project.  After
copying the TracHelloworld-0.1-py2.4.egg to the project plugins
directory, setting permissions to 777, and restarting web server, I
see no difference in wiki pages and no "loading" messages in log
file.  I'm guessing I need to concentrate on getting the "loading"
message again, but not sure what I need to do.  Seemed random at best
when I was seeing it before.

Thanks,
Philip
--~--~-~--~~~---~--~~
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: Error while creating a new project on WinXP

2008-06-25 Thread Scott Bussinger

> - Python 2.5 (python-2.5.2.msi) (installed to c:\dev\Python25)

I'm hosting Trac on a WinXP box.

I don't know why, but I've had issues if I installed Python into a
directory other than the default directory (which is "c:\python25").
Not knowing Python, I just gave up and installed it there instead of
"C:\Program Files\Python25" where I'd originally wanted to put it.
Also be sure to add the Python directory to your system path.

As for the pathnames you entered, backslashes work fine for me (i.e.
don't bother switching them to forward slashes).

For what it's worth, here's what I installed (I didn't install the
pywin32 extensions):
  python-2.5.1.msi
  ez_setup.py
  svn-python-1.4.6.win32.py2.5.exe
  easy_install pysqlite (was version 2.4.1 at the time)
  easy_install genshi (was version 0.4.4 at the time)
  easy_install pygments (was version 0.9 at the time)
  easy_install http://tracsvn.edgewall.com/repos/trac/tags/trac-0.11b1

Now you'd just use "easy_install trac" and you'd be fine. ("YAY" for
the release of 0.11!)
--~--~-~--~~~---~--~~
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: Trac on Leopard--not working properly

2008-06-25 Thread Max

Emmanuel wrote:

> This is weird: I'm using a similar config (Apache on Leopard, _www
> user) and it works fine.

This works:
$ sudo -u _www tracd --port 8000 /usr/local/trac

This is what doesn't work:
$ tracd --port 8000 /usr/local/trac

Not even if I have given permissions in the following way:
$ sudo chown -R _www /usr/local/trac

Or:
$ sudo chown -R _www:_www /usr/local/trac

It gives the permission errors that I have mentioned in this thread.


Is it possible that my Trac installation is flawed in someway?

First I installed 0.10.5 and then 0.11 to see if the latter solved the
problem, but didn't.

The way I installed 0.11 was:
$ sudo easy_install http://svn.edgewall.org/repos/trac/branches/0.11-stable

and I get:
$ trac-admin --version
trac-admin 0.11dev-r7219

$ which trac-admin
/usr/local/bin/trac-admin

$ which tracd
/usr/local/bin/tracd

Could I been missing some files from installation?

Many thanks,
Max.
--~--~-~--~~~---~--~~
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: Error while creating a new project on WinXP

2008-06-25 Thread kevin . mayfield

Agree with that, main problem I had upgrading was genshi. I might be
mistaken but I had to move to genshi 0.5dev in 11rc2 and 0.5 on 11
final

> As Trac 0.11 final and Genshi 0.5 are released since last Sunday(?)
> you should try again with these two new installers.
>
> HTH
> Simon
--~--~-~--~~~---~--~~
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: Trac 0.11 tries to diff PDF

2008-06-25 Thread HOWELL G.S.J.
> -Original Message-

> From: trac-users@googlegroups.com [mailto:[EMAIL PROTECTED]
On

> Behalf Of Jason Winnebeck

> Sent: 19 May 2008 19:43

> 

> I'm pretty sure that Trac 0.10 didn't do this,

 

I'm running Trac 0.10.4, I can confirm that this version also diff
PDF's.

 

> but after upgrading to

> branches/0.11-stable Trac 0.11dev-r7086, Trac is trying to diff PDFs,

> resulting in 100% server CPU use for about half a minute and
generating

> a massive page. While I realize that PDFs are mostly text, I'm not
sure

> why Trac is trying to interpret it, given its MIME type.

> 

> SVN properties on the file, as shown in Trac browser:

> 

> * Property svn:mime-type set to application/pdf

> * Property svn:needs-lock set to needs lock

> 

> My impression is that any mime-type in SVN that doesn't start with

> "text/" is a "binary" file.

 

That sounds sensible.

 

[...]

 

> changeset   max_diff_bytes1000

> max_diff_files 0

> 

> The max_diff_bytes is the default value. Maybe I could make it smaller

> but Trac shouldn't try to diff a PDF at all, should it?

 

I tried setting max_diff_bytes to 10.  At first I thought it had
worked.  I clicked on a changeset that included a modification to a PDF,
and no diff was shown.  I just tried it again, though, and my servers
CPU went 99.9% busy for about a minute, and then my workstation ground
to a halt as it attempted to render an enormous web page.

 

I did bring this up once before:

 

http://groups.google.com/group/trac-users/browse_frm/thread/f5925c2be7ec
fcaf/abd65c197ecd1a6a

 

There is a solution mentioned there, but it involves some hacking.  I
don't know Python at all, so it's not viable for me.

 

It would be nice if there was a simple solution (a diff_exclude_files
option or similar in trac.ini, perhaps) to this problem in the standard
distribution.

 

Regards

 

G.

 

 


--~--~-~--~~~---~--~~
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: Translating Trac and empty strings

2008-06-25 Thread Shun-ichi GOTO

2008/6/25 Jani Tiainen <[EMAIL PROTECTED]>:
>
> I'm now in process of translating Trac to Finnish.
>
> I encountered problem that I couldn't find any solution right away:
>
> There is at least few 'of', 'by' words that should be left empty since
> there is no such words in Finnish. So how to define empty (zero length)
> string in translation file?

In Japanese translation, I use single space string for that.

-- 
Shun-ichi GOTO

--~--~-~--~~~---~--~~
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: Error while creating a new project on WinXP

2008-06-25 Thread Simon Martin

Hi,

On Jun 20, 3:39 pm, rledyard <[EMAIL PROTECTED]> wrote:

>     raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: Trac==0.11rc2

This may be the error.

As Trac 0.11 final and Genshi 0.5 are released since last Sunday(?)
you should try again with these two new installers.


HTH
Simon
--~--~-~--~~~---~--~~
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: CSS styling to adjust appearance of lists in wiki?

2008-06-25 Thread Gary Oberbrunner

Scott Bussinger wrote:
> I came up with a way to accomplish the same effect a different way and
> it works the same in both Firefox and IE7:
> 
>  .wikipage p { margin-bottom:0px; }
>  .wikipage ul, ol { margin-top:0px; }
> 
> This removes the margin below paragraphs and above lists.

+1.  This is very nice, and doesn't seem to mess up other formatting.

-- Gary

--~--~-~--~~~---~--~~
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] Upgrade from 0.10.3 to 0.11 SuSE 10.2 RuntimeError: maximum recursion depth exceeded in cmp

2008-06-25 Thread Lantzvillian

Hello everyone,

My task for this week was to do what I thought would be a comparably
simple upgrade for Trac since noone had been doing it previously.
First problem might be that this is SuSE, but more importantly
something broke terribly and I'd be glad for any help or suggestions.

What I did:

Our ticket system is probably well over 2000 tickets, uses SQLite and
running as a VM.  So I grabbed a duplicate clone of it and tried to do
an upgrade.

First read the documentation on the old Trac for upgrading, then read
the new information on edgewall.org for upgrading.

Removed /usr/lib64/python2.5/sites-packages/trac like the document
recommended.  Left the others for the sake of simplicity since it only
recommends.

In / I used wget to get the 0.11 version tar.gz off of the their
website.  Untared it, installed easy_setup and installed setup.py then
restarted apache.

As far as their documentation says all of the requirements are better
than asked for.  Not bleeding edge, however.

I also  used trac-admin to upgrade the enviroment and the wiki as well
before I restarted apache.

When I navigate to myIP/trac/projects/ I get my enviroment listing.
Sweet my project is there.  Click the link to my project and I am
bombarded with a trace.

the last of it looks like this:

  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/chrome.py", line 119, in add_javascript
add_script(req, filename, mimetype='text/javascript')
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/chrome.py", line 100, in add_script
scriptset = req.chrome.setdefault('scriptset', set())
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/api.py", line 169, in __getattr__
value = self.callbacks[name](self)
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/chrome.py", line 437, in prepare_request
htdocs_location = self.htdocs_location or
req.href.chrome('common')
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/href.py", line 163, in 
self._derived[name] = lambda *args, **kw: self(name, *args, **kw)
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/web/href.py", line 148, in __call__
if arg != None])
  File "/usr/lib64/python2.5/site-packages/Trac-0.12dev_r7240-
py2.5.egg/trac/util/text.py", line 68, in unicode_quote
return quote(value.encode('utf-8'), safe)
  File "/usr/lib64/python2.5/urllib.py", line 1189, in quote
safe_map = _safemaps[cachekey]
RuntimeError: maximum recursion depth exceeded in cmp

Any help?

--~--~-~--~~~---~--~~
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: Error while creating a new project on WinXP

2008-06-25 Thread rledyard

Is there a particlular reason I'm not getting a response to this post?

Doesn't any one here run TRAC on Windows?

Randy

On Jun 20, 9:39 am, rledyard <[EMAIL PROTECTED]> wrote:
> Hello
>
> I installed TRAC on a WinXP box per this 
> page:http://trac.edgewall.org/wiki/TracOnWindows
>
> I used the following versions:
> - Python 2.5 (python-2.5.2.msi) (installed to c:\dev\Python25)
> - pywin32 extensions (pywin32-211.win32-py2.5.exe)
> - Setup Tools (setuptools-0.6c7.win32-py2.5.exe)
> - Genshi (Genshi-0.4.4.win32.exe)
> - pysqlite (pysqlite-2.4.0.win32-py2.5.exe)
> - TRAC (Trac-0.11rc2.win32.exe)
>
> I created a directory - c:\data_trac, with the intention of creating
> the first project in c:\data_trac\test-project
>
> So from a command-line, I ran:
> trac-admin.exe c:\data_trac\test-project initenv
>
> it failed with the following error:
> C:\dev\Python25\Scripts>trac-admin.exe c:/data_trac/test-project
> initenv
> Traceback (most recent call last):
>   File "C:\dev\Python25\Scripts\trac-admin-script.py", line 5, in
> 
>     from pkg_resources import load_entry_point
>   File "C:\dev\Python25\Lib\site-packages\pkg_resources.py", line
> 2565, in 
>     parse_requirements(__requires__), Environment()
>   File "C:\dev\Python25\Lib\site-packages\pkg_resources.py", line 524,
> in resolve
>     raise DistributionNotFound(req)  # XXX put more info here
> pkg_resources.DistributionNotFound: Trac==0.11rc2
>
> I also tried:
>   trac-admin.exe c:/data_trac/test-project initenv (slashed reversed)
> same error occurred
>
> I tried with the c:\data_trac\test-project directory created, and with
> the same dir not created, with both versions of slashes - same error
> as above each time.
>
> What does the error mean, and what do I need to do to fix it?.

--~--~-~--~~~---~--~~
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] ImportError: No module named pyPgSQL

2008-06-25 Thread Reydet Gonzague
Hi,

I installed trac 0.11rc2 with a pgSQL database and psycopg2 as python pgsql
driver.

When I run a standalone daemon (tracd command), trac works fine.
But upon an apache web server & mod_python, I get the following error
message:

ImportError: No module named pyPgSQL

Do you have any idea for troubleshooting this issue?
>From what I understand from here:
http://trac.edgewall.org/wiki/DatabaseBackend#DatabaseBackend , psycopg2 is
an alternative to pypgsql, isn't it?

Here is the content of my apache vhost configuration file:

DocumentRoot /home/trac/
ServerName mydomain.tld
ServerAlias *.mydomain.tld

SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /home/trac/
PythonOption TracUriRoot /
PythonPath "sys.path + ['/home/trac']"
PythonDebug on



Thank you!

--~--~-~--~~~---~--~~
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] Translating Trac and empty strings

2008-06-25 Thread Jani Tiainen

I'm now in process of translating Trac to Finnish.

I encountered problem that I couldn't find any solution right away:

There is at least few 'of', 'by' words that should be left empty since 
there is no such words in Finnish. So how to define empty (zero length) 
string in translation file?

-- 
Jani Tiainen

--~--~-~--~~~---~--~~
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] Trac 0.11: Setting up authorization in .htaccess

2008-06-25 Thread Paul Cohen

Hi,

I am trying to set up authorization in Trac 0.11 (with Apache
1.3/FastCGI) in a .htaccess file but have been unsuccessful. I have
never done it before and I am not an Apache expert. Apart from
authorization, my setup of Trac seems to work fine.

I have a Trac environment here:

  /home/paul/trac/foo

And the web entry location for that Trac environment:

  /home/paul/www/sub/foo

That directory contains the trac.fcgi file. 'www' is the document root
for mydomain.com and 'www/sub/foo' is the document root for my
subdomain foo.mydomain.com which is the URL I want to use for my Trac
site.

I have put the static files here:

  /home/paul/www/sub/foo/chrome

In '/home/paul/www/sub/foo' I have this .htaccessfile:

 .htaccess #
DirectoryIndex trac.fcgi

# Make sure to prefix every URL request that isn't for a file or
# directory with trac.fcgi so that it is handled by Trac
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /trac.fcgi/$1 [L]


I know that I need to somehow force Apache to do an authorization
challenge for requests for 'foo.mydomain.com/login', but simply
haven't figured out how. I have tried a few different approaches but
with no success. So what is the recommended way to do it?

Thanks in advance for any help.

/Paul

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---