Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

newbie installing trac on windows 2012 server error in setup.py

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


russh at doublejoy

Aug 8, 2013, 5:48 PM

Post #1 of 5 (28 views)
Permalink
newbie installing trac on windows 2012 server error in setup.py

I'm really excited to get trac up and running - have bumbled through to the
point that I'm actually installing trac using easy_install Trac==1.0, but
this dies after a while complaining about a syntax error in setup.py.
The exact error is:
File "c:... \setuptools-0.9.8-py3.3.egg\setuptools\sandbox.py", line 71 in
<lambda>
File "c:... \setuptools-0.9.8-py3.3.egg\setuptoools\compat.p", line 92 in
execfile
File "setup.py", line 21 print "Trac requires Python %d.%d or later" %
min_python
SyntaxError: invalid syntax

How can I get past this?
thanx
r

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


petsuter at gmail

Aug 9, 2013, 3:28 AM

Post #2 of 5 (28 views)
Permalink
Re: newbie installing trac on windows 2012 server error in setup.py [In reply to]

You seem to be using Python 3.3, but Trac 1.0 requires Python 2.5, 2.6 or
2.7.

See http://trac.edgewall.org/wiki/TracInstall#MandatoryDependencies

--
Peter


On Fri, Aug 9, 2013 at 2:48 AM, <russh [at] doublejoy> wrote:

> I'm really excited to get trac up and running - have bumbled through to
> the point that I'm actually installing trac using easy_install Trac==1.0,
> but this dies after a while complaining about a syntax error in setup.py.
> The exact error is:
> File "c:... \setuptools-0.9.8-py3.3.egg\setuptools\sandbox.py", line 71 in
> <lambda>
> File "c:... \setuptools-0.9.8-py3.3.egg\setuptoools\compat.p", line 92 in
> execfile
> File "setup.py", line 21 print "Trac requires Python %d.%d or later" %
> min_python
> SyntaxError: invalid syntax
>
> How can I get past this?
> thanx
> r
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to trac-users+unsubscribe [at] googlegroups
> To post to this group, send email to trac-users [at] googlegroups
> Visit this group at http://groups.google.com/group/trac-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


russh at doublejoy

Aug 9, 2013, 9:03 AM

Post #3 of 5 (25 views)
Permalink
Re: newbie installing trac on windows 2012 server error in setup.py [In reply to]

Thx Peter. The devil really *is* in the details eh?
r


On Friday, August 9, 2013 3:28:22 AM UTC-7, Peter Suter wrote:
>
> You seem to be using Python 3.3, but Trac 1.0 requires Python 2.5, 2.6 or
> 2.7.
>
> See http://trac.edgewall.org/wiki/TracInstall#MandatoryDependencies
>
> --
> Peter
>
>
> On Fri, Aug 9, 2013 at 2:48 AM, <ru...@doublejoy.com <javascript:>> wrote:
>
>> I'm really excited to get trac up and running - have bumbled through to
>> the point that I'm actually installing trac using easy_install Trac==1.0,
>> but this dies after a while complaining about a syntax error in setup.py.
>> The exact error is:
>> File "c:... \setuptools-0.9.8-py3.3.egg\setuptools\sandbox.py", line 71
>> in <lambda>
>> File "c:... \setuptools-0.9.8-py3.3.egg\setuptoools\compat.p", line 92 in
>> execfile
>> File "setup.py", line 21 print "Trac requires Python %d.%d or later" %
>> min_python
>> SyntaxError: invalid syntax
>>
>> How can I get past this?
>> thanx
>> r
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Trac Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to trac-users+...@googlegroups.com <javascript:>.
>> To post to this group, send email to trac-...@googlegroups.com<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/trac-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


rjollos at gmail

Aug 9, 2013, 9:15 AM

Post #4 of 5 (25 views)
Permalink
Re: newbie installing trac on windows 2012 server error in setup.py [In reply to]

On Friday, August 9, 2013 3:28:22 AM UTC-7, Peter Suter wrote:

> You seem to be using Python 3.3, but Trac 1.0 requires Python 2.5, 2.6 or
> 2.7.
>
> See http://trac.edgewall.org/wiki/TracInstall#MandatoryDependencies
>
> --
> Peter
>

Do you know of a good way that we can fix that print statement to also
print correctly in Python 3.x?

from __future__ import print_function is not available until Python 2.6.

How about?:

try:
print "Trac requires Python %d.%d or later" % min_python
except SyntaxError:
print("Trac requires Python %d.%d or later" % min_python)

Not yet tested, so Python 3.x syntax might not be exactly correct.

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.


petsuter at gmail

Aug 9, 2013, 3:06 PM

Post #5 of 5 (25 views)
Permalink
Re: newbie installing trac on windows 2012 server error in setup.py [In reply to]

On 09.08.2013 18:15, RjOllos wrote:
> Do you know of a good way that we can fix that print statement to also
> print correctly in Python 3.x?
>
> from __future__ import print_function is not available until Python 2.6.
>
> How about?:
>
> try:
> print "Trac requires Python %d.%d or later" % min_python
> except SyntaxError:
> print("Trac requires Python %d.%d or later" % min_python)
>
> Not yet tested, so Python 3.x syntax might not be exactly correct.

As long as no "advanced" features (like arguments) are used, I assume we
could simply use
print("Trac requires Python %d.%d or later" % min_python)
directly anyway, even without `from __future__ import print_function`.

All Python 2.x versions should still accept this as the old print
statement with (superfluous but harmless) parentheses around an expression.

http://python3porting.com/noconv.html#supporting-the-print-function
> The simple cases are not problematic, you can simply put parentheses
> around the text that should be printed. The following will print
> exactly the same in all versions of Python:
>
> >>> print("This works in all versions of Python!")
> This works in all versions of Python!


(For reference, I linked this thread in
http://trac.edgewall.org/ticket/9595#comment:8 by the way.)

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscribe [at] googlegroups
To post to this group, send email to trac-users [at] googlegroups
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.