Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8189933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:26:59+00:00 2026-06-07T03:26:59+00:00

I’m a green hand in python and now facing a problem when importing dll

  • 0

I’m a green hand in python and now facing a problem when importing dll in python. By refering some hints found online, i tried using ctypes as below with error prompt.

>>> import ctypes
>>> dl=ctypes.WinDll('C:\\Python27\\Lib\\site-packages\\UdfManagerPython.dll')

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    dl=ctypes.WinDll('C:\\Python27\\Lib\\site-packages\\UdfManagerPython.dll')
AttributeError: 'module' object has no attribute 'WinDll'

>>> dl=ctypes.cdll.LoadLibrary('C:\\Python27\\Lib\\site-packages\\UdfManagerPython.dll')

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    dl=ctypes.cdll.LoadLibrary('C:\\Python27\\Lib\\site-packages\\UdfManagerPython.dll')
  File "C:\Python27\lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] 

Am I doing something wrong or this dll was not scripted complied with python standard? I have uploaded to MediaFire for your analysis. Any help is highly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:27:01+00:00Added an answer on June 7, 2026 at 3:27 am

    I loaded the DLL UdfManagerPython.dll into Dependency Walker, and it pointed out that this DLL has a dependency on python22.dll. When I tried to load this DLL in the Python (2.7) interpreter, I got a message box which more-or-less told me the same thing:

    The program can’t start because python22.dll is missing from your computer. Try reinstalling the program to fix this problem.

    So it seems this DLL was intended to be used with Python 2.2, not Python 2.7 as you’re using.

    I don’t have Python 2.2 installed. If you do, perhaps you get different error messages to me.

    It’s also worth pointing out that you can’t use ctypes with Python 2.2, because ctypes is only supported for Python 2.3 onwards.

    I have no idea where this DLL comes from. I Googled its name and got all of four results, one of which was this question.

    Incidentally, I’ve seen an error of the form ‘The specified module cannot be found’ if the DLL itself can be found but a dependency of the DLL is missing. So if you get a message like this, and you’re sure the DLL itself is present, check its dependencies.

    EDIT: I tried installing Python 2.2 to see whether I could load this DLL. With Python 2.2 installed you can at least load this DLL, but Python crashes if you try to call either of the init... methods. (I don’t know what parameters to pass them, so I passed them none.)

    Here’s what happened when I tried calling one of these methods:

    Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from ctypes import *
    >>> l = CDLL("UdfManagerPython.dll")
    >>> l.initPyUdfNumber()
    Fatal Python error: Interpreter not initialized (version mismatch?)
    
    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.

    I Googled the first line of this error message, and the recurring theme I got from most of the results was that this error indicates you’re attempting to load an extension module linked against one version of Python with a different version of Python.

    So in answer to your question in the comments, no, I don’t believe there is a way to load this DLL in Python 2.7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am currently running into a problem where an element is coming back from
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.