Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

AttributeError: 'module' object has no attribute 'split'

Open
#1 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
build-system

Research direction

The failure is reported in setup.py line 11, while the input comes from python/makefile. Reproduce the pip3 install failure, inspect that setup path, and verify that installation completes without the AttributeError on Python 3.

Written by the indexing model from the issue text.

Description

% sudo pip3 install -U python-apt
Collecting python-apt
  Downloading python-apt-0.7.8.tar.bz2 (49kB)
    100% |████████████████████████████████| 53kB 1.2MB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-3wzlbss1/python-apt/setup.py", line 11, in <module>
        string.split(parse_makefile("python/makefile")["APT_PKG_SRC"]))
    AttributeError: 'module' object has no attribute 'split'

So, even though I'm using pip3, the deprecated string.split call is in the code.

Dominant language
C++
Stars
67
Forks
42
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from excid3/python-apt

All issues in excid3/python-apt

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.