无法在Ubuntu 14.04中安装GTS包

时间:2016-11-22 02:16:39

标签: python ubuntu makefile ubuntu-14.04

我正在尝试在python中导入gts包

当我在python中键入import gts时,我收到错误

    List<Handler> chain = bindingProvider.getBinding().getHandlerChain();
    chain.add(new SOAPHandler<SOAPMessageContext>() {
      @Override
      public boolean handleMessage(SOAPMessageContext context) {
        LOG.info("BaseService.handleMessage" + context);
        Boolean outbound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
        if (outbound.booleanValue()) {
          try {
            context.getMessage().setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "ISO-8859-1");
          } catch (Exception e) {
            throw new RuntimeException(e);
          }
        }
        return true;        
      }

      @Override
      public boolean handleFault(SOAPMessageContext context) {
        return true;
      }

      @Override
      public void close(MessageContext context) {
      }

      @Override
      public Set<QName> getHeaders() {
        return null;
      }      
    });
    bindingProvider.getBinding().setHandlerChain(chain);

我已尝试在downloading folder之后安装commands

No module named gts.

但我收到的错误是:

  

make:***未指定目标且未找到makefile。停止。

如何安装GTS包

我的系统:Ubuntu 14.04

1 个答案:

答案 0 :(得分:0)

您试图安装GTS C库。你要安装的是 GTS C库的Python包装器。通过键入:

来做到这一点
sudo apt-get install python-gts

在控制台中。

相关问题