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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:24:10+00:00 2026-06-11T22:24:10+00:00

I have a freshly compiled python 3.2.3 on CentOS 6, and I’m having trouble

  • 0

I have a freshly compiled python 3.2.3 on CentOS 6, and I’m having trouble getting the tarfile module working with the gzipped file.

Python 3.2.3 (default, Sep 17 2012, 16:49:57) 
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import tarfile
>>> t = tarfile.open("test.tar.gz")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/python3/lib/python3.2/tarfile.py", line 1746, in open
    raise ReadError("file could not be opened successfully")
tarfile.ReadError: file could not be opened successfully

The tar file extracts normally using the normal tar utility. Is there some dependency I’m missing?

  • 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-11T22:24:11+00:00Added an answer on June 11, 2026 at 10:24 pm

    Turns out I needed to compile python3 with zlib-devel installed on the box. There’s no extra configure options to include, the configure script will automatically include zlib when it sees the dev libraries.

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

Sidebar

Related Questions

I'm having issues getting UpdatePanel working in a large, existing solution. I have a
I posted this question and have a freshly minted code signing cert from Thawte.
I'm having the following issue: I have a trigger on a table A, whose
I have freshly installed Ubuntu OS , installed Eclipse and then added Android sdk
I have an RCP product which doesn't run. Then I installed Eclipse freshly, and
I have an application that uses wxWidgets as a the UI framework and compiled
I have freshly installed VS2010 with SP1, and when I try to connect to
I have Eclipse 4.2 (Juno) + PDT 3.1.1 freshly installed and i've selected PHP
I have read the other posts about the notorious _imaging C module error when
does anyone know what i might have to change (permissions on a particular file;

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.