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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:44:41+00:00 2026-06-04T16:44:41+00:00

I am a python Noob and I am stuck with this particular error. I

  • 0

I am a python Noob and I am stuck with this particular error. I am trying to run a python script within my bash script. The error log looks like this

File "Alpha_Beta.py", line 6, in <module>
    import pdb
  File "C:\softs\Python\Lib\pdb.py", line 14, in <module>
  File "C:\softs\Python\Lib\pprint.py", line 39, in <module>
ImportError: No module named cStringIO

This is on my ubuntu machine.

Can anyone please help me fix this bug?

By looking at the replies and the traceback I do figure out, it is probably something to do with the fact that the file was initially being used in Windows environment. Currently I am trying to compile this file on ubuntu. I hope this makes it more clear.

Also this file compiles without any problems when I run on the windows machine. Not the same with ubuntu. So I need help to figure out , how to debug this. Should I change something within the pdb module or should I look elsewhere.

  • 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-04T16:44:42+00:00Added an answer on June 4, 2026 at 4:44 pm

    You are running this on a Windows machine, but if this from a shared Ubuntu drive then the cStringIO extension will not import; it’ll be compiled for running on Linux, not Windows.

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

Sidebar

Related Questions

I keep getting an error whenever I enter this code (I'm a python noob
this may sound like a strange question from a Python noob, but here's the
Apologies for the noob Python question but I've been stuck on this for far
Python noob here, Currently I'm working with SQLAlchemy, and I have this: from __init__
Python noob trying to learn Pylons. I'm using the QuickWiki tutorial ( http://pylonshq.com/docs/en/1.0/tutorials/quickwiki_tutorial/ )
Python noob; please explain why this loop doesn't exit. for i in range(0,10): print
I am a noob to Python and have not had any luck figuring this
I'm somewhat of a noob to python but I'm trying to create a recursive
I know this is a noob question, but I've worked with Python before and
Python noob so I might be going about this the wrong way I want

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.