试图让FreeImagePy工作。 [英] Trying to get FreeImagePy to work.

查看:65
本文介绍了试图让FreeImagePy工作。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了ctypes和FreeImagePy。当我这样做:

I''ve installed ctypes and FreeImagePy. When I do this:

import FreeImagePy
f = FreeImagePy.Image()
import FreeImagePy
f = FreeImagePy.Image()




我得到:

找到

回溯(最近一次调用最后一次):

文件"< stdin>",第1行,在?

文件" C:\Python \Lib \site-packages \ FreeFreeImagePy \ FreeImagePy.py",line

1952,in _

_init__

super(Image,self).__ init __(libraryName)

文件" C:\Python \Lib \site-packages \FreeImagePy \ FreeImagePy.py",行

376,in __

init__

self .__ lib = self .__ internlLibrary(libraryName)

File" C:\Python \Lib\site-packages \ FreeFreeImagePy \ FreeImagePy .py",line

313,in __

init__

self.lib = C.windll.find(libraryName)

文件ctype s\__init __。py",370,in __getattr__

dll = self._dlltype(name)

File" ctypes\__init __。py",line 296 ,在__init__

self._handle = _dlopen(self._name,mode)

WindowsError:[Errno 126]无法找到指定的模块


我在ctypes __init__文件中放了一个''print self._name'',就在

第296行之前 - 它正在打印出''find''之前错误。

那么,我以什么具体的方式搞砸了安装?


Iain



I get:
find
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
1952, in _
_init__
super(Image, self).__init__(libraryName)
File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
376, in __
init__
self.__lib = self.__internlLibrary(libraryName)
File "C:\Python\Lib\site-packages\FreeImagePy\FreeImagePy.py", line
313, in __
init__
self.lib = C.windll.find(libraryName)
File "ctypes\__init__.py", line 370, in __getattr__
dll = self._dlltype(name)
File "ctypes\__init__.py", line 296, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Errno 126] The specified module could not be found

I put a ''print self._name'' in the ctypes __init__ file, just before
line 296 - it''s printing out the ''find'' just before the error.
So, in what specific way have I screwed up the install?

Iain

推荐答案

Iain King写道:
Iain King wrote:
我已经安装了ctypes和FreeImagePy。当我这样做时:
I''ve installed ctypes and FreeImagePy. When I do this:
import FreeImagePy f = FreeImagePy.Image()
import FreeImagePy f = FreeImagePy.Image()


我放了一个''print self。在ctypes __init__文件中的_name'',就在第296行之前 - 它正在错误之前打印出''find''。那么,以什么具体的方式搞砸了安装?


I put a ''print self._name'' in the ctypes __init__ file, just before
line 296 - it''s printing out the ''find'' just before the error. So, in
what specific way have I screwed up the install?




什么是你的ctypes版本?是0.9.9.6?如果是的话,你能下载

最后一个svn版本,解决这个问题(我希望)并添加一些

函数吗?如果你不能发布新版本(1.2.5)

Iain



What''s your ctypes version? Is 0.9.9.6? If yes, can you download the
last svn version, that solve that problem (I hope) and add some
functions? If you can''t I''ll release a new version (1.2.5)

Iain




再见,

Michele



Bye,
Michele




Michele Petrazzo写道:

Michele Petrazzo wrote:
Iain King写道:
Iain King wrote:
我已经安装了ctypes和FreeImagePy。当我这样做时:
I''ve installed ctypes and FreeImagePy. When I do this:
> import FreeImagePy f = FreeImagePy.Image()
> import FreeImagePy f = FreeImagePy.Image()



我在ctypes __init__文件中放了一个''print self._name'',就在第296行之前 - 它'''在错误发生之前打印出''find''。那么,以什么具体方式搞砸了安装?



I put a ''print self._name'' in the ctypes __init__ file, just before
line 296 - it''s printing out the ''find'' just before the error. So, in
what specific way have I screwed up the install?



你的ctypes版本是什么?是0.9.9.6?如果是的话,你能下载最后的svn版本,解决这个问题(我希望)并添加一些
功能吗?如果你不能发布新版本(1.2.5)



What''s your ctypes version? Is 0.9.9.6? If yes, can you download the
last svn version, that solve that problem (I hope) and add some
functions? If you can''t I''ll release a new version (1.2.5)




我下载并安装了0.9.9.3,它现在可以使用了。谢谢!


Iain



I downloaded and installed 0.9.9.3, and it now works. Thanks!

Iain


Iain King写道:
Iain King wrote:
Michele Petrazzo写道:

我下载并安装了0.9.9.3,现在可以了。谢谢!


我建议你不要使用那个ctypes版本...更好的是使用

最新版本并更新freeimagepy!

Iain
Michele Petrazzo wrote:

I downloaded and installed 0.9.9.3, and it now works. Thanks!

I advice you to don''t use that ctypes version... Better is to use the
newest one and update freeimagepy!
Iain




Michele



Michele


这篇关于试图让FreeImagePy工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆