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

DeprecationWarning for call to pkg_resources.declare_namespace() on import.

Open
#37 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Start by inspecting how the package defines the intuitlib namespace and how importing intuit-oauth triggers setuptools' pkg_resources.declare_namespace() warning. Determine whether intuitlib should remain a namespace package or use an empty init.py, then verify that importing the package no longer emits the deprecation warning.

Written by the indexing model from the issue text.

Description

setuptools 67.3.0 has deprecated pkg_resources.declare_namespace(): https://setuptools.pypa.io/en/latest/history.html#v67-3-0

This is being triggered by importing intuit-oauth:

DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('intuitlib')`.
  Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
    declare_namespace(pkg)

To remain a namespace package, the __init__.py may be deleted. But I'm not sure the package needs to be a namespace package, and we may be able to use an empty __init__.py instead.

Dominant language
Python
Stars
86
Forks
59
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 intuit/oauth-pythonclient

All issues in intuit/oauth-pythonclient

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.