<type'exception.importerror'=“”> DLL加载失败:

时间:2017-03-10 13:08:22

标签: python

我有一个以前工作但现在没有的python脚本。尽管以前从未使用python,但我必须运行它。

import sys
import packetlogic2
from xml.etree.ElementTree import Element, SubElement, Comment, tostring, ElementTree
#from ElementTree_pretty import prettify

host = "85.21.223.68"
user = "user"
password = "password"
startdate = "2017-02-27"
enddate = "2017-02-27"
path = "/http-domain-distribution?Statistics Object"
#vers = ["v15_1"]


try:
    pl = packetlogic2.connect(host, user, password, 42000)
    # pl.connect(host, user, password)
    s = pl.Statistics()
except:
    t, v, tb = sys.exc_info()
    print "Couldn't connect to PacketLogic: t = %s, v = %s, tb = %s" % (t, v, tb)
    sys.exit(1)

运行它的结果

Couldn't connect to PacketLogic: t = <type 'exceptions.ImportError'>, v = DLL lo
ad failed: ═ÕÔÕ­ÝÓ  ´¯´¹‗ÛÓ õ¯±‗¾´Ó Û Óõ­Õ±¾ ´Óý ‗Þ., tb = <traceback object at
0x000000000261E6C8>

我在Windows上使用python 2.7.13,如果这很重要的话。这是什么错误,如何运行它?

编辑13.03.2017

我将python版本更改为32位,将packetlogic2更改为32位。开始获取error 10060,但至少它不是DLL load failed似乎有版本问题。

0 个答案:

没有答案