473,782 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:\SIL Sign\librsvg-2-2.dll')
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\PYTHON25\LI B\ctypes\__init __.py", line 349, in __init__
self._handle = _dlopen(self._n ame, 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_re location_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\b in
C:\>"C:\Python2 4\python.exe" -c "import ctypes; print
ctypes.CDLL('li brsvg-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 1239

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

Similar topics

5
3233
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 procedure could not be found. I am running PHP 5.0 on Apache 2 and have been for some time. I got this error when I first installed PHP5/Apache2 on this machine (a
5
1796
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 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 developer writes, find a method that matches a
4
1431
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 developer writes, find a method that matches a particular interface, and call it. I know, in general, I should be looking at the reflection classes. Does anyone have any design advice for me, or good working examples that would serve as a...
0
1015
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 visible via a __declspec(dllexport) declaration.... so the separate DLL is implicitly loaded. If I write a C# test program to invoke PWSNetBridge.dll everything works fine. I place both PWSNetBridge.dll and PWSWinBridge.dll within the same...
5
2154
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 "applic.exe" or "dyna.dll" Do I need to use linker here? or is there some way of rewriting binaries to load "test.dll"
5
5126
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 started, but it won't load. There is also the option of dynamically loading the module at run time of the script. LD() i believe is the call.
1
3064
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
11274
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 help would be appreciated: dmccarthy: file /opt/questasim_6.4/questasim/linux/libucdb.a /opt/
0
1226
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!!! http://ftp.gnome.org/pub/gnome/binaries/win32/librsvg/2.22/) The other dlls from the GTK libraries seem to load okay, so I'm more than puzzled!! I get the following results (whichever class I use): l=CDLL(r'D:\SILSign\librsvg-2-2.dll') Traceback (most recent call last): File "<input>",...
0
203
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 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."
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9479
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10146
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10080
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9942
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.