You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Matthew Shaver (Created) (JIRA)" <ji...@apache.org> on 2011/12/07 19:56:41 UTC

[jira] [Created] (THRIFT-1450) Problems building thrift 0.8.0 for Python and Ruby

Problems building thrift 0.8.0 for Python and Ruby
--------------------------------------------------

                 Key: THRIFT-1450
                 URL: https://issues.apache.org/jira/browse/THRIFT-1450
             Project: Thrift
          Issue Type: Bug
          Components: Build Process
    Affects Versions: 0.8
         Environment: CentOS 5.5
Python 3.2
Ruby 1.9.3
            Reporter: Matthew Shaver


Building thrift 0.8.0 I get the following error:

Making all in py
make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
/home/mshaver/bin/python setup.py build
  File "setup.py", line 45
    except DistutilsPlatformError, x:
                                 ^
SyntaxError: invalid syntax
make[3]: *** [all-local] Error 1
make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
make: *** [all] Error 2

If I configure without Python I get the following error during the build:

Making all in rb
make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
/usr/local/bin/rake 
rake aborted!
cannot load such file -- spec/rake/spectask

(See full trace by running task with --trace)
make[3]: *** [all-local] Error 1
make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
make: *** [all] Error 2

Here are the gems that are installed:
$ gem list

*** LOCAL GEMS ***

bigdecimal (1.1.0)
bundler (1.0.21)
diff-lcs (1.1.3)
io-console (0.3)
json (1.5.4)
minitest (2.5.1)
rake (0.9.2.2)
rdoc (3.9.4)
rspec (2.7.0)
rspec-core (2.7.1)
rspec-expectations (2.7.0)
rspec-mocks (2.7.0)
rubygems-update (1.8.12)



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (THRIFT-1450) Problems building thrift 0.8.0 for Python and Ruby

Posted by "Jake Farrell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jake Farrell closed THRIFT-1450.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

Ruby build issue documented above, THRIFT-1604 created for Python Exception problem
                
> Problems building thrift 0.8.0 for Python and Ruby
> --------------------------------------------------
>
>                 Key: THRIFT-1450
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1450
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>    Affects Versions: 0.8
>         Environment: CentOS 5.5
> Python 3.2
> Ruby 1.9.3
>            Reporter: Matthew Shaver
>            Assignee: Jake Farrell
>             Fix For: 0.9
>
>
> Building thrift 0.8.0 I get the following error:
> Making all in py
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> /home/mshaver/bin/python setup.py build
>   File "setup.py", line 45
>     except DistutilsPlatformError, x:
>                                  ^
> SyntaxError: invalid syntax
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> If I configure without Python I get the following error during the build:
> Making all in rb
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> /usr/local/bin/rake 
> rake aborted!
> cannot load such file -- spec/rake/spectask
> (See full trace by running task with --trace)
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> Here are the gems that are installed:
> $ gem list
> *** LOCAL GEMS ***
> bigdecimal (1.1.0)
> bundler (1.0.21)
> diff-lcs (1.1.3)
> io-console (0.3)
> json (1.5.4)
> minitest (2.5.1)
> rake (0.9.2.2)
> rdoc (3.9.4)
> rspec (2.7.0)
> rspec-core (2.7.1)
> rspec-expectations (2.7.0)
> rspec-mocks (2.7.0)
> rubygems-update (1.8.12)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (THRIFT-1450) Problems building thrift 0.8.0 for Python and Ruby

Posted by "Jake Farrell (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jake Farrell reassigned THRIFT-1450:
------------------------------------

    Assignee: Jake Farrell
    
> Problems building thrift 0.8.0 for Python and Ruby
> --------------------------------------------------
>
>                 Key: THRIFT-1450
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1450
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>    Affects Versions: 0.8
>         Environment: CentOS 5.5
> Python 3.2
> Ruby 1.9.3
>            Reporter: Matthew Shaver
>            Assignee: Jake Farrell
>
> Building thrift 0.8.0 I get the following error:
> Making all in py
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> /home/mshaver/bin/python setup.py build
>   File "setup.py", line 45
>     except DistutilsPlatformError, x:
>                                  ^
> SyntaxError: invalid syntax
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> If I configure without Python I get the following error during the build:
> Making all in rb
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> /usr/local/bin/rake 
> rake aborted!
> cannot load such file -- spec/rake/spectask
> (See full trace by running task with --trace)
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> Here are the gems that are installed:
> $ gem list
> *** LOCAL GEMS ***
> bigdecimal (1.1.0)
> bundler (1.0.21)
> diff-lcs (1.1.3)
> io-console (0.3)
> json (1.5.4)
> minitest (2.5.1)
> rake (0.9.2.2)
> rdoc (3.9.4)
> rspec (2.7.0)
> rspec-core (2.7.1)
> rspec-expectations (2.7.0)
> rspec-mocks (2.7.0)
> rubygems-update (1.8.12)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (THRIFT-1450) Problems building thrift 0.8.0 for Python and Ruby

Posted by "Jake Farrell (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13164628#comment-13164628 ] 

Jake Farrell commented on THRIFT-1450:
--------------------------------------

Ruby lib requires rpsec version 1.3.2, rspec2 is not supported. Running 'Bundle install' will install the right versions of the dependencies for you. In order to use ruby 1.9.x you have to install mongrel --pre due to a mongrel gem issue. The --pre is not forced as a dependency since it is only necessary for ruby 1.9.x. 

Python PEP 3110 changed exception handling by replacing the ',' with 'as'. This was initially introduced in python 2.6 and in 3.0 the ',' usage is no longer suppported. Since exception handling through out the py lib uses the ',' it will need to be converted over to using the 'as' syntax for exceptions.
                
> Problems building thrift 0.8.0 for Python and Ruby
> --------------------------------------------------
>
>                 Key: THRIFT-1450
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1450
>             Project: Thrift
>          Issue Type: Bug
>          Components: Build Process
>    Affects Versions: 0.8
>         Environment: CentOS 5.5
> Python 3.2
> Ruby 1.9.3
>            Reporter: Matthew Shaver
>            Assignee: Jake Farrell
>
> Building thrift 0.8.0 I get the following error:
> Making all in py
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> /home/mshaver/bin/python setup.py build
>   File "setup.py", line 45
>     except DistutilsPlatformError, x:
>                                  ^
> SyntaxError: invalid syntax
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/py'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> If I configure without Python I get the following error during the build:
> Making all in rb
> make[3]: Entering directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> /usr/local/bin/rake 
> rake aborted!
> cannot load such file -- spec/rake/spectask
> (See full trace by running task with --trace)
> make[3]: *** [all-local] Error 1
> make[3]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib/rb'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mshaver/dl/thrift-0.8.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mshaver/dl/thrift-0.8.0'
> make: *** [all] Error 2
> Here are the gems that are installed:
> $ gem list
> *** LOCAL GEMS ***
> bigdecimal (1.1.0)
> bundler (1.0.21)
> diff-lcs (1.1.3)
> io-console (0.3)
> json (1.5.4)
> minitest (2.5.1)
> rake (0.9.2.2)
> rdoc (3.9.4)
> rspec (2.7.0)
> rspec-core (2.7.1)
> rspec-expectations (2.7.0)
> rspec-mocks (2.7.0)
> rubygems-update (1.8.12)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira