Results 1 to 5 of 5

Thread: Interactive python fail to loadSlice

  1. #1
    Oscar.Acena's Avatar
    Oscar.Acena is offline Registered User
    Name: Oscar Aceņa
    Organization: Universidad Castilla-La Mancha
    Project: Wireless sensor networks
    Join Date
    May 2007
    Location
    Ciudad Real, Spain
    Posts
    21

    Interactive python fail to loadSlice

    There is a problem with python in interactive mode. The Ice.loadSlice function fails and terminates abnormally the python session.

    I've made my tests with python 2.5 and Ice 3.3b, on a Debian SID i686. Here's an output of a failure example:

    test$ ls
    test.ice
    test$ cat test.ice
    module Test {
    interface Something {};
    };
    test$ slice2cpp test.ice
    test$ python
    Python 2.5.2 (r252:60911, Apr 27 2008, 11:46:35)
    [GCC 4.2.3 (Debian 4.2.3-3)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import Ice
    >>> Ice.loadSlice("test.ice")
    >>>
    test$
    Exits whitout asking anything. And using python as a normal interpreter (non-interactive) it is ok. It's odd, isn't it?

    Cheers.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi Oscar,

    The most likely reason for this failure is mcpp. Ice 3.3b requires a patched version of mcpp in order to operate correctly. Did you build mcpp with the patches that we supplied, or are you using an unmodified mcpp?

    Take care,
    Mark

  3. #3
    Oscar.Acena's Avatar
    Oscar.Acena is offline Registered User
    Name: Oscar Aceņa
    Organization: Universidad Castilla-La Mancha
    Project: Wireless sensor networks
    Join Date
    May 2007
    Location
    Ciudad Real, Spain
    Posts
    21

    Interesting...

    I'm actually using the binaries from debian packages, so i don't know. Nevertheless, which patch should be applicated? I presume that the Debian Developer which made the package will read this...

    Thanks a lot!
    Oscar.

    PS: By the way, the cpp translator has a very minor bug (very, very). When the system username has a 'dot' on it (like oscar.acena), the header has a wrong comment, i.e. if file test.ice is /home/oscar.acena/test/test.ice, this happens:

    // Generated from file `/home/oscar.acena/test/test.ice' -> what should say
    // Generated from file `/home/oscar.ice' -> what really says

    It's a minor thing, but here it is ;-)
    Last edited by Oscar.Acena; 05-14-2008 at 06:01 PM. Reason: Add a litle detail, that is no worth of a new thread

  4. #4
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,441
    Hi,

    We provide a patch for mcpp 2.6.4 in our third-party source archive. Note that we expect all of our patches to be included in the upcoming 2.7.1 release of mcpp, which will hopefully be available before we release Ice 3.3.

    Take care,
    Mark

  5. #5
    fmoya is offline Registered User
    Name: Francisco Moya
    Organization: UCLM
    Project: Debian packages
    Join Date
    Oct 2004
    Posts
    51
    Quote Originally Posted by Oscar.Acena View Post
    I'm actually using the binaries from debian packages, so i don't know. Nevertheless, which patch should be applicated? I presume that the Debian Developer which made the package will read this...
    Actually you weren't using Debian packages. I was not able to release 3.3b packages. They depend on a fixed proguard which has just arrived to Debian and I would also like to build it against the stock mcpp 2.7.1. Besides I need to update the manpages.

    FYI I already fixed the pre-release packages available at
    Code:
    deb http://arco.inf-cr.uclm.es/~francisco.moya/debian ./
    Francisco Moya Fernandez
    Computer Architecture and Tecnology Group
    University of Castilla-La Mancha

    Debian Maintainer of ZeroC Ice packages.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. loadSlice() spurious crash
    By jharris in forum Patches
    Replies: 2
    Last Post: 11-19-2010, 07:02 PM
  2. Python loadSlice import module issue
    By spsoni in forum Help Center
    Replies: 3
    Last Post: 09-02-2009, 12:56 PM
  3. pythonw, loadSlice and popup windows
    By Edward Bishop in forum Help Center
    Replies: 2
    Last Post: 03-28-2008, 11:34 PM
  4. icegridadmin interactive help
    By ctennis in forum Bug Reports
    Replies: 1
    Last Post: 03-21-2007, 09:34 AM
  5. Replies: 2
    Last Post: 11-16-2005, 07:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •