Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SyntaxError: invalid syntax - while installing 0.8.1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
neojp  
View profile  
 More options Jun 29 2012, 9:19 pm
From: neojp <thene...@gmail.com>
Date: Fri, 29 Jun 2012 18:19:25 -0700 (PDT)
Local: Fri, Jun 29 2012 9:19 pm
Subject: SyntaxError: invalid syntax - while installing 0.8.1

Hey guys,

I'm running Node 0.6.15 on CentOS with Python 2.4.3 and for some reason,
I'm getting this weird error while trying to install 0.8.1
Does anyone have any idea on what can I do about it?

$ cd node-v0.8.1
$ ./configure
  File "./configure", line 266
    o['default_configuration'] = 'Debug' if options.debug else 'Release'
                                          ^
SyntaxError: invalid syntax

Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 29 2012, 9:23 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Sat, 30 Jun 2012 03:23:23 +0200
Local: Fri, Jun 29 2012 9:23 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Sat, Jun 30, 2012 at 3:19 AM, neojp <thene...@gmail.com> wrote:
> Hey guys,

> I'm running Node 0.6.15 on CentOS with Python 2.4.3 and for some reason, I'm
> getting this weird error while trying to install 0.8.1
> Does anyone have any idea on what can I do about it?

> $ cd node-v0.8.1
> $ ./configure
>   File "./configure", line 266
>     o['default_configuration'] = 'Debug' if options.debug else 'Release'
>                                           ^
> SyntaxError: invalid syntax

You need to use python 2.6 or 2.7.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Schmidt  
View profile  
 More options Jun 29 2012, 9:27 pm
From: Ryan Schmidt <google-2...@ryandesign.com>
Date: Fri, 29 Jun 2012 20:27:40 -0500
Local: Fri, Jun 29 2012 9:27 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Jun 29, 2012, at 20:23, Ben Noordhuis wrote:

> On Sat, Jun 30, 2012 at 3:19 AM, neojp wrote:

>> I'm running Node 0.6.15 on CentOS with Python 2.4.3 and for some reason, I'm
>> getting this weird error while trying to install 0.8.1
>> Does anyone have any idea on what can I do about it?

>> $ cd node-v0.8.1
>> $ ./configure
>>   File "./configure", line 266
>>     o['default_configuration'] = 'Debug' if options.debug else 'Release'
>>                                           ^
>> SyntaxError: invalid syntax

> You need to use python 2.6 or 2.7.

Shouldn't the configure script print a friendlier message if a wrong version of python is used?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 29 2012, 9:43 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Sat, 30 Jun 2012 03:43:50 +0200
Local: Fri, Jun 29 2012 9:43 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1
On Sat, Jun 30, 2012 at 3:27 AM, Ryan Schmidt

Chicken/egg problem. configure is a python script, it's the python
interpreter that raises the error.

I guess we could wrap it in a shell script that checks the python
version but I don't find that very appealing. The build requirements
are clearly documented in the README but that's not the main reason: I
don't like layers upon layers, it makes debugging harder.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt  
View profile  
 More options Jun 29 2012, 10:26 pm
From: Matt <hel...@gmail.com>
Date: Fri, 29 Jun 2012 22:26:23 -0400
Local: Fri, Jun 29 2012 10:26 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Fri, Jun 29, 2012 at 9:43 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
> > Shouldn't the configure script print a friendlier message if a wrong
> version of python is used?

> Chicken/egg problem. configure is a python script, it's the python
> interpreter that raises the error.

> I guess we could wrap it in a shell script that checks the python
> version but I don't find that very appealing. The build requirements
> are clearly documented in the README but that's not the main reason: I
> don't like layers upon layers, it makes debugging harder.

There are some decent answers here to this problem:
http://stackoverflow.com/questions/446052/python-best-way-to-check-fo...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Isaac Schlueter  
View profile  
 More options Jun 29 2012, 11:54 pm
From: Isaac Schlueter <i...@izs.me>
Date: Fri, 29 Jun 2012 20:54:05 -0700
Local: Fri, Jun 29 2012 11:54 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1
Yeah, we could wrap it in a very simple Python script that checks the
version, and then pulls in the "real" configure script.

It's not great, but it'd be better than relying on bash or something.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
r...@tinyclouds.org  
View profile  
 More options Jun 30 2012, 8:34 pm
From: r...@tinyclouds.org
Date: Sat, 30 Jun 2012 17:34:35 -0700
Local: Sat, Jun 30 2012 8:34 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Fri, Jun 29, 2012 at 6:23 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
> You need to use python 2.6 or 2.7.

It would be preferable to support Python 2.5 in our build scripts if
possible. Does GYP?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jun 30 2012, 8:43 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Sun, 1 Jul 2012 02:43:10 +0200
Local: Sat, Jun 30 2012 8:43 pm
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Sun, Jul 1, 2012 at 2:34 AM,  <r...@tinyclouds.org> wrote:
> On Fri, Jun 29, 2012 at 6:23 PM, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
>> You need to use python 2.6 or 2.7.

> It would be preferable to support Python 2.5 in our build scripts if
> possible. Does GYP?

Not anymore. They made 2.6 a requirement some months ago.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
neojp  
View profile  
 More options Jul 1 2012, 12:09 am
From: neojp <thene...@gmail.com>
Date: Sat, 30 Jun 2012 21:09:22 -0700 (PDT)
Local: Sun, Jul 1 2012 12:09 am
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

Thanks Ben, I'll update Python and let you know if this fixes my problem.

It is funny though, I couldn't find any requirements information on the
site. Obviously I didn't look at the README.md<https://github.com/joyent/node>on Github, but so far, I've installed node in so many boxes and never
thought about what version of Python was required, or that Python was
required at all.

I totally agree about not wanting to have a python version check wrapper on
top of the real configure. But, having a requirements info in the download
link at the website would have saved me some time.

Thank you guys, you rock the server side Javascript world.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Jul 1 2012, 1:21 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Sun, 1 Jul 2012 19:21:00 +0200
Subject: Re: [nodejs] SyntaxError: invalid syntax - while installing 0.8.1

On Sun, Jul 1, 2012 at 6:09 AM, neojp <thene...@gmail.com> wrote:
> Thanks Ben, I'll update Python and let you know if this fixes my problem.

> It is funny though, I couldn't find any requirements information on the
> site. Obviously I didn't look at the README.md on Github, but so far, I've
> installed node in so many boxes and never thought about what version of
> Python was required, or that Python was required at all.

> I totally agree about not wanting to have a python version check wrapper on
> top of the real configure. But, having a requirements info in the download
> link at the website would have saved me some time.

That's a good idea. I've opened an issue for it[1].

[1] https://github.com/joyent/node/issues/3604


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Oct 8 2012, 7:26 pm
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Tue, 9 Oct 2012 01:26:35 +0200
Local: Mon, Oct 8 2012 7:26 pm
Subject: Re: [nodejs] Re: SyntaxError: invalid syntax - while installing 0.8.1

On Tue, Oct 9, 2012 at 1:07 AM, Dean Flory <deanfloryt...@gmail.com> wrote:
> I just received this after installing Python 2.7.3:

>> # ./configure
>>   File "./configure", line 347
>>     o['default_configuration'] = 'Debug' if options.debug else 'Release'
>>                                           ^
>> SyntaxError: invalid syntax

> And I'm guessing it's playing a part in why I can't install the newest
> version of Node.js since I can't get past ./configure (where other
> packages/installs succeeded when ./configure was entered).

You may have installed python 2.7 but you're not using it, otherwise
you wouldn't be getting that error. :-)

Try this:

  $ python2.7 configure
  $ make PYTHON=python2.7

Replace python2.7 with whatever the binary is really called.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »