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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:13:05+00:00 2026-05-20T23:13:05+00:00

Does anyone know where i can find this python module ‘contextlib’? root@overo:~# python Python

  • 0

Does anyone know where i can find this python module ‘contextlib’?

root@overo:~# python                                                            
Python 2.6.6 (r266:84292, Mar  9 2011, 10:05:36)                                
[GCC 4.3.3] on linux2                                                           
Type "help", "copyright", "credits" or "license" for more information.          
>>> import contextlib                                                           
Traceback (most recent call last):                                              
  File "<stdin>", line 1, in <module>                                           
ImportError: No module named contextlib                                         

I did not compile python myself personally. I’m just in this mess. It’s running on an ARM based CPU so maybe some things were left out to save space.

I ran find / | grep contextlib which resulted in nothing.

Can i download this module from somewhere and just plonk it in /usr/lib/python2.6? Will that work?

  • 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-20T23:13:06+00:00Added an answer on May 20, 2026 at 11:13 pm

    As others have noted, that module should be in the standard library, but if it’s an embedded device, it may have been dropped to save space (if true, a foolish choice IMO, since leaving out contextlib.contextmanager robs the with statement of much of its power and convenience)

    If you can name the specific device or manufacturer (or ask the vendor directly), you may be able to get a better answer.

    As far as fixing it goes, grabbing http://hg.python.org/cpython/file/2.6/Lib/contextlib.py and dropping it in sys.path somewhere should do the trick (running python -m site will dump the list of directories that you can use)

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

Sidebar

Related Questions

Greetings, Does anyone know how I can get coarse GPS coordinates when I don't
I am trying to get simplejson installed on this python 2.4.3 - I cannot
I have been using Python for about a year now, coming from a mostly
I've discovered a function in the Python C API named PyEval_CallFunction which seems to
I'm having a little bit of programing and conversion trouble. I'm designing an AI
I have a quick question about programming using Vim. I sometimes make a silly
I have written a program which sends more than 15 queries to Google in
It is as simple as that. When you use the SpeakHere example it should
I remember seeing a recipe to take an expression and evaluate every Head that
I'm not exactly sure what to call the thing i am searching for. If

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.