Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-14-2008
Oscar.Acena 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: 7
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:

Quote:
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.
Reply With Quote
  #2 (permalink)  
Old 05-14-2008
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: 957
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
Reply With Quote
  #3 (permalink)  
Old 05-14-2008
Oscar.Acena 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: 7
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
Reply With Quote
  #4 (permalink)  
Old 05-14-2008
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: 957
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
Reply With Quote
  #5 (permalink)  
Old 05-16-2008
fmoya fmoya is offline
Registered User
 
Name: Francisco Moya
Organization: UCLM
Project: Debian packages
 
Join Date: Oct 2004
Posts: 42
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
pythonw, loadSlice and popup windows Edward Bishop Help Center 2 03-28-2008 11:34 PM
How can i use Flash-Client Interactive with ICE-Server wenewboy Help Center 2 12-16-2007 09:07 PM
icegridadmin interactive help ctennis Bug Reports 1 03-21-2007 09:34 AM
Interactive communication - application-level flow control luke Help Center 3 03-14-2007 02:28 PM
Python interactive mode - invalid value for element 0 JavaJack Help Center 2 11-16-2005 07:23 PM


All times are GMT -4. The time now is 07:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.