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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:00:06+00:00 2026-05-27T04:00:06+00:00

After I upgraded Ubuntu my Python was changed to 2.6.6 and my app.py stopped

  • 0

After I upgraded Ubuntu my Python was changed to 2.6.6 and my app.py stopped working
when calling

sys.stdout.write(curses.tigetstr('civis'))

it writes:

Traceback (most recent call last):
  File "app.py", line 60, in <module>
    sys.stdout.write(curses.tigetstr('civis'))
TypeError: argument 1 must be string or read-only character buffer, not None

Should I change my code for newer version of Python?

  • 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-27T04:00:07+00:00Added an answer on May 27, 2026 at 4:00 am

    Reading the documentation:

    curses.tigetstr(capname)

    Return the value of the string capability corresponding to the terminfo capability name capname. None is
    returned if capname is not a string capability, or is canceled or
    absent from the terminal description.

    I take it the problem might be with the terminal description.
    I am running python 2.7.2 on Ubuntu 11.10 and the following code does not raise any exception:

    import sys
    import curses
    curses.setupterm()
    sys.stdout.write(curses.tigetstr('civis'))
    

    Does that work for you? If yes, your problem might have to do with some terminal setup prior to the call to curses.tigestr…

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

Sidebar

Related Questions

Some strange error appeared after I upgraded my Ubuntu from (10.11, 11.04 i dont
After I upgraded to the beta, I'm having trouble with Html.RadioButtonList. Can someone show
I upgraded from SQl server 05 to 08 and had a few issues. After
I recently upgraded a 1.1 web project to a 2.0 web application. After going
I have recently upgraded to Ubuntu 10.04 and as usual installed xdebug from the
I've had geben running perfectly on previous versions of Ubuntu. After the upgrade, and
After I upgraded using a clean install from OS X 10.5 to 10.6.2 and
After I upgraded my projects to .NET 4.0 (With VS2010) I realized than they
After I upgraded to MVC2 and the newest dotnetopenauth I keep getting No OpenID
I get this FormatException after i upgraded to VS 2010. Not anything really special.

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.