Skip to content

class 'AttributeError: 'ConfigParser' object has no attribute 'readfp' #1428

@janpfeifer

Description

@janpfeifer

Ubuntu 25.04 here, up-to-date. I just installed s3cmd v2.4.0 using pip.

I'm using it for the very first time.

Anything I do it always fails with the same error, even if I don't pass any parameters:

$ s3cmd

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    An unexpected error has occurred.
  Please try reproducing the error using
  the latest s3cmd code from the git master
  branch found at:
    https://github.com/s3tools/s3cmd
  and have a look at the known issues list:
    https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions-(FAQ)
  If the error persists, please report the
  following lines (removing any private
  info as necessary) to:
   [email protected]


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /home/janpf/.venv/jupyter/bin/s3cmd
Problem: <class 'AttributeError: 'ConfigParser' object has no attribute 'readfp'
S3cmd:   2.4.0
python:   3.13.3 (main, Jun 16 2025, 18:15:32) [GCC 14.2.0]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
  File "/home/janpf/.venv/jupyter/lib/python3.13/site-packages/S3/Config.py", line 269, in __init__
    self.read_config_file(configfile)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/home/janpf/.venv/jupyter/lib/python3.13/site-packages/S3/Config.py", line 551, in read_config_file
    cp = ConfigParser(configfile)
  File "/home/janpf/.venv/jupyter/lib/python3.13/site-packages/S3/Config.py", line 640, in __init__
    self.parse_file(file, sections)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
...

Any ideas ?

Apologies if I'm doing something wrong, but nothing was pointing me out to what to do !?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions