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 7601605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:12:17+00:00 2026-05-30T23:12:17+00:00

Running python version 2.4.3 . I am using python-amazon-product-api . However in api.py the

  • 0

Running python version 2.4.3. I am using python-amazon-product-api. However in api.py the following lines of code is causing problem:

if sys.version_info[:2] > (2, 4): # pragma: no cover
    from urllib2 import quote
    from hashlib import sha256 # pylint: disable-msg=E0611
else:
    from urllib import quote
    from Crypto.Hash import SHA256 as sha256

As my version is 2.4.3 it go in to else and try to import Crypto. So i downloaded that but i got import error in SHA256.py cannot import _SHA256. There is no _SHA256.py in library. After all my unsuccessful efforts i quit to use pyCrypto and i try to use standalone hashlib library. So i modified else part in api.py:

else:
    from hashlib import hashlib
    sha256 = hashlib.sha256()

Then again while importing hashlib i got this import error.

File "C:\Python24\lib\site-packages\hashlib.py", line 63, in __get_builtin_constructor
    import _md5
ImportError: DLL load failed: The specified module could not be found.

I posted similar question yesterday but not able to find the exact solution that is why i am posting this again. I desperately need a solution 🙁

  • 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-05-30T23:12:19+00:00Added an answer on May 30, 2026 at 11:12 pm

    Several questions based on what you’ve said above.

    1) Why are you using an ancient version of Python? Install Python 2.7 and be happier!

    2) assuming you’re unfortunately stuck with 2.4 for some unknown reason… it appears that Python is unable to find any of the binary extension module (.pyd) files that came with the hashlib package you installed. Did you compile your own hashlib or install a binary version?
    If so, make sure the _hashlib.pyd file is put somewhere in the PYTHONPATH or sys.path.

    I haven’t had a windows installer with precompiled binaries for hashlib up on http://code.krypto.org/python/hashlib in years as I lack the ability to build and test it… and Python 2.4 is so old that I assume anyone with the ability to install a binary on their system can just install a modern version of Python itself.

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

Sidebar

Related Questions

I am running Cygwin Python version 2.5.2. I have a three-line source file, called
How do I check which version of the Python interpreter is running my script?
When running a Python program that reads from stdin, I get the following error:
I'm trying to call the text to speech API from Python using win32com.client. The
I'm using Python 2.7 and django-nonrel for running Django projects on Google app engine.
I'm getting a python syntax error for the following line of code: orientations =
Is there any way to use OpenOffice's PyUNO without using the version of Python
Using the Python templates for Xcode, I have a simple project running on one
I am having trouble building a working version of Python with ctypes using the
So, I have been facing a problem with using subprocess for a python app

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.