473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re: [ctypes-users] ctypes - loading 'librsvg-2-2.dll'

Thanks Martin (and others) for your advice. No, this solution didn't
quite work either. Well, the extremely annoying thing is that it DOES
work on another home pc, but on my laptop which I use for work, it
doesn't want to know!!! Both are running WinXP Pro. All the dependencies
and paths "seem" to be okay, but there must still be something that I'm
missing.

Tim
Martin (gzlist) wrote:
On 26/08/2008, Tim Grove <ti*******@sil.orgwrote:
>Any ideas why a particular dll won't load on Windows XP Pro using
ctypes?

I'm going to take a stab in the dark here and suggest it's because you
have multiple (different) copies of iconv.dll on your PATH.

> l=CDLL(r'D:\SILSign\librsvg-2-2.dll')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\PYTHON25\LIB\ctypes\__init__.py", line 349, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 127] The specified procedure could not be found

I get this on my current setup, where I've been messing around trying
to recompile lynx against iconv. I also get a popup saying "The
procedure entry point libiconv_set_relocation_prefix could not be
located in the dynamic link library iconv.dll."

Doing this worked for me:

C:\>set PATH=C:\Program Files\Common Files\GTK\2.0\bin
C:\>"C:\Python24\python.exe" -c "import ctypes; print
ctypes.CDLL('librsvg-2-2')"
<CDLL 'librsvg-2-2', handle 68e40000 at bd9b50>

Change the paths to your equivalents and try it, see if you have the
same or a similar dependency problem.

Martin

Sep 2 '08 #1
0 1213

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harry | last post by:
Since yesterday, when I try and start apache, I get the following message: Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_mysql.dll' - the specified...
5
by: Nick Malik | last post by:
reposting to a wider audience "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message news:WYONc.203854$XM6.119642@attbi_s53... > My turn to ask a question > > I am working on a plug-in...
4
by: Nick Malik | last post by:
My turn to ask a question I am working on a plug-in for Sharepoint that will allow a developer to add workflow rules. One of the rules will inform the adapter that it should load a DLL that the...
0
by: Philip | last post by:
I have developed a MC++ business component (named PWSNetBridge.dll) which utilizes an exported class resident within a separate native DLL (named PWSWinBridge.dll). This exported class is made...
5
by: Aks | last post by:
Hi, I have C# application "applic.exe" and a dll "dyna.dll" whenever "applic.exe" or "dyna.dll" is loaded, I need them to also load "test.dll" (unmanaged c++ dll). I do not have sources of...
5
by: Pete Marsh | last post by:
Wondering if anyone can recomend some sample code for dynamically loading the GD module. I have tried setting the extension dir in php.ini, and loading the GD module from there when apache is...
1
by: luis | last post by:
Hi! I'm using ctypes with python 2.4 on windows xp the code if exists(join(getcwd(),'statistics.dll')): ....ap=windll.LoadLibrary(join(getcwd(),'statistics.dll')) works fine
3
by: Paddy | last post by:
Hi, I am am falling at the first hurdle when trying to access a library using ctypes. I have a file libucdb.so which the file command says is shared object, but I cannot get it to load: Any...
0
by: Tim Grove | last post by:
Any ideas why a particular dll won't load on Windows XP Pro using ctypes? The dll in question is 'librsvg-2-2.dll' (a link if anyone cares to try!!!...
0
by: Martin (gzlist) | last post by:
On 26/08/2008, Tim Grove <tim_grove@sil.orgwrote: I'm going to take a stab in the dark here and suggest it's because you have multiple (different) copies of iconv.dll on your PATH. I get...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.