Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-11-2006
ACM ACM is offline
Registered User
 
Name: Alberto Casado
Organization: QualityObjects
Project: research
 
Join Date: Oct 2005
Posts: 6
I can`t run py examples in mac-os

Hi all, I download the binary distribution (3.0.1)for mac-os, and when I try to run the hello example from the demospy for Mac-os I have the following message when running Server.py:

Traceback (most recent call last):
File "Server.py", line 11, in ?
import sys, traceback, Ice
File "/Applications/Ice-3.0.1/python/Ice.py", line 15, in ?
import IcePy
ImportError: dlopen(/Applications/Ice-3.0.1/python/IcePy.so, 2): Library not loaded: /Users/benoit/tmp/iceinstall/Ice-3.0.1/lib/libIce.30.dylib
Referenced from: /Applications/Ice-3.0.1/python/IcePy.so
Reason: image not found

Can any body help me?.

thank you in advance.

ACM.
__________________
Alberto Casado Martin
QualityObjects (http://www.qualityobjects.com)
Reply With Quote
  #2 (permalink)  
Old 02-13-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

Did you add "/Applications/Ice-3.0.1/lib" to your DYLD_LIBRARY_PATH?

If you don't want to have to set DYLD_LIBRARY_PATH, you can also modify the install names embedded in the Ice libraries (use "otool -L" to see the dependant libraries) with the Mac OS X "install_name_tool utility".

For example:

Code:
  install_name_tool -change /Users/benoit/tmp/iceinstall/Ice-3.0.1/lib/libIce.30.dylib /Applications/Ice-3.0.1/lib/libIce.30.dylib  /Applications/Ice-3.0.1/python/IcePy.so
See the man page of "install_name_tool" for more information.

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 02-13-2006
ACM ACM is offline
Registered User
 
Name: Alberto Casado
Organization: QualityObjects
Project: research
 
Join Date: Oct 2005
Posts: 6
Hi, it is my very first time on Mac-os and I was using LD_LIBRARY_PATH as the environment varible. Again you are right.

thank you.

ACM.
__________________
Alberto Casado Martin
QualityObjects (http://www.qualityobjects.com)
Reply With Quote
  #4 (permalink)  
Old 02-13-2006
ACM ACM is offline
Registered User
 
Name: Alberto Casado
Organization: QualityObjects
Project: research
 
Join Date: Oct 2005
Posts: 6
hi again benoit, this morning i run the server and works . I thought all were rigth, this afternoon i came back to the example an when i run the client i found the following error message:

interna195:~/Desktop/ICE-MAC/Ice-3.0.1-demos/demopy/Ice/hello quality$ python Client.py
Traceback (most recent call last):
File "/Users/quality/Desktop/ICE-MAC/Ice-3.0.1/python/Ice.py", line 487, in main
status = self.run(args)
File "Client.py", line 42, in run
twoway = Demo.HelloPrx.checkedCast(\
File "/Users/quality/Desktop/ICE-MAC/Ice-3.0.1/python/Ice.py", line 157, in stringToProxy
return self._impl.stringToProxy(str)
DNSException: exception ::Ice:NSException
{
error = 7
host = interna195.qualityobjects.com
}



can you help me againg?

ACM.
__________________
Alberto Casado Martin
QualityObjects (http://www.qualityobjects.com)
Reply With Quote
  #5 (permalink)  
Old 02-13-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Hi,

The "Ice.DNSException" indicates that the Ice client couldn't resolve the hostname "interna195.qualityobjects.com". More specifically, the "getaddrinfo" system call failed with the error code 7 which on Mac OS X means "no address associated with hostname". You should look into the network configuration of your machine or add this name to your DNS server.

Alternatively, you can change the configuration of the demo and define Ice.Default.Host to 127.0.0.1 to use the loopback interface (or you can set it to the IP address of your machine).

Cheers,
Benoit.
Reply With Quote
  #6 (permalink)  
Old 02-14-2006
ACM ACM is offline
Registered User
 
Name: Alberto Casado
Organization: QualityObjects
Project: research
 
Join Date: Oct 2005
Posts: 6
Hello benoit,

Thank you again.

ACM.
__________________
Alberto Casado Martin
QualityObjects (http://www.qualityobjects.com)
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
Where to get examples in more detail about IceStorm? rellik78 Help Center 1 09-25-2006 05:02 AM
Blobject subclass examples? bartley Help Center 3 02-08-2006 10:57 AM
IceBox examples ?? surfer Help Center 2 09-26-2005 09:44 AM
Ice examples jvme Help Center 1 08-04-2005 07:57 AM
Bigger Examples Ctaesis Comments 0 01-03-2004 06:20 PM


All times are GMT -4. The time now is 09:56 PM.


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.