Home Help Center

Cannot get helloworld working on my machine

I installed and compiled the Ice-2.0.0 cpp libraries and then installed and tested the IcePy 2.0.0 libraries with allTests.py. I alson installed and tested the IceJ-2.0.0

I then went though the helloworld tutorial for python and when I try to launch the server I get and error:

Traceback (most recent call last):
File "Server.py", line 1, in ?
import sys, traceback, Ice
ImportError: No module named Ice

By the way I tested the server.py that is in the demo directory and I get the same error.

I am running Debian 2.6.9 on an HP laptop and my environment vars are listed below. Any help is greatly appreciated

-Rui



KDE_MULTIHEAD=false
SSH_AGENT_PID=2305
DM_CONTROL=/var/run/xdmctl
TERM=xterm
SHELL=/bin/bash
XDM_MANAGED=/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,method=classic
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/ruister/.gtkrc-2.0:/home/ruister/.kde/share/c
onfig/gtkrc
GTK_RC_FILES=/etc/gtk/gtkrc:/home/ruister/.gtkrc:/home/ruister/.kde/share/config/gtkrc
GS_LIB=/home/ruister/.fonts
WINDOWID=39845895
OLDPWD=/home/ruister
KDE_FULL_SESSION=true
USER=ruister
LD_LIBRARY_PATH=:/opt/Ice-2.0.0/lib
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:
XCURSOR_SIZE=
SSH_AUTH_SOCK=/tmp/ssh-IiLnDc2251/agent.2251
SESSION_MANAGER=local/megaguppy:/tmp/.ICE-unix/2358
XPSERVERLIST=:64
KONSOLE_DCOP=DCOPRef(konsole-5584,konsole)
DESKTOP_SESSION=kde
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/j2re1.4-sun/bin/:/usr/share/dotnet/bin:/opt/Ice-2.0.0/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin:.
KONSOLE_DCOP_SESSION=DCOPRef(konsole-5584,session-3)
PWD=/home/ruister/cddm/icetest_py
JAVA_HOME=/usr/lib/j2re1.4-sun/
SHLVL=2
HOME=/home/ruister
XCURSOR_THEME=default
LOGNAME=ruister
CLASSPATH=:/usr/share/java/libdb4.2-java.jar:/opt/Ice-2.0.0/lib/Ice.jar
ICE_HOME=/opt/Ice-2.0.0
DISPLAY=:0.0
COLORTERM=
_=/usr/bin/env

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Welcome to the forum!

    If IcePy is installed in /opt/IcePy-2.0.0, then you need to define the following environment variable:

    PYTHONPATH=/opt/IcePy-2.0.0/python:/opt/IcePy-2.0.0/lib

    This information is also provided in the INSTALL file.

    Take care,
    - Mark
  • That fixed it!

    Thanks,
    -Rui
Sign In or Register to comment.