我正在尝试在Oracle站点上运行JavaServer Faces教程:
http://docs.oracle.com/javaee/6/tutorial/gexaj.html
然而,当我在Ubuntu Linux 12.04.2 LTS上运行时,我得到以下结果:
$ updatetool
WX import error. Verify the WX widgets are in the PYTHONPATH.
The following can be reported to GlassFish Update Tool 2.3.5 Development Team <dev@updatecenter.java.net>.
Traceback (innermost last):
File "/home/johndoe/glassfish3/updatetool/vendor-packages/updatetool/common/boot.py", line 283, in init_app_locale
import wx
File "wx/__init__.py", line 45, in ?
File "wx/_core.py", line 4, in ?
ImportError: libjpeg.so.62: cannot open shared object file: No such file or directory
boot.py的第283行包含以下“import wx”语句:
try:
# XXX : This still fails badly with segfault on bad locales
import wx
except:
typ, val, tback = sys.exc_info()
if str(typ) == "locale.Error":
if sys.platform not in ['win32'] and os.environ['LANG'] != 'C':
UPDATETOOL_LOCALE = _set_unix_locale_vars('C')
try:
import wx
except:
# NOL10N
uc_error("The current locale is not supported and we could not fallback to english locale.", 1)
else:
# NOL10N
uc_error("The current locale is not supported and we could not fallback to english locale.", 1)
else:
import traceback
lst = traceback.format_tb(tback) + traceback.format_exception_only(typ, val)
msgx = _("WX import error. Verify the WX widgets are in the PYTHONPATH.\nThe following can be reported "\
"to %(email)s.\n\nTraceback " \
"(innermost last):\n%(tracefirst)-20s %(tracerest)s") % {'email':INFO.REPORT_TO, 'tracefirst': "".join(lst[:-1]), 'tracerest': lst[-1]}
uc_error(msgx, 1)
_ = wx.GetTranslation
我正在运行python 2.7.3。任何人都知道如何解决此错误?
答案 0 :(得分:0)
sudo apt-get install libjpeg62:i386