473,385 Members | 1,730 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,385 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 1210

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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.