Skip to content

Flatdict no longer builds due to Setuptools removing the pkg-resources module #499

@killyosaur

Description

@killyosaur

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
    Before submitting a bug report, we ask that you first search existing issues and pull requests to see if someone else may have experienced the same issue or may have already submitted a fix for it.

Python Version & Okta SDK Version(s)

Python v3.12.4
okta 2.9.10 - 3.1.0

Affected Class/Method(s)

the okta module itself

Customer Information

Organization Name: WCG Clinical
Paid Customer: yes

Code Snippet

pip install -U setuptools==82.0.0 && pip install okta==3.1.0

Debug Output / Traceback

15:21:31 #9 71.21 Collecting flatdict (from okta==2.9.10->-r /tmp/requirements/base.txt (line 12))
15:21:31 #9 71.59 Downloading https://dl.cloudsmith.io/****/wcgclinical/wcg-shared-artifacts-proxy-cache/python/flatdict-4.0.1.tar.gz (8.3 kB)
15:21:31 #9 71.60 Installing build dependencies: started
15:21:33 #9 73.60 Installing build dependencies: finished with status 'done'
15:21:33 #9 73.61 Getting requirements to build wheel: started
15:21:34 #9 74.56 Getting requirements to build wheel: finished with status 'error'
15:21:34 #9 74.57 error: subprocess-exited-with-error
15:21:34 #9 74.57
15:21:34 #9 74.57 × Getting requirements to build wheel did not run successfully.
15:21:34 #9 74.57 │ exit code: 1
15:21:34 #9 74.57 ╰─> [20 lines of output]
15:21:34 #9 74.57 Traceback (most recent call last):
15:21:34 #9 74.57 File "/home/wcg-user/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
15:21:34 #9 74.57 main()
15:21:34 #9 74.57 File "/home/wcg-user/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
15:21:34 #9 74.57 json_out["return_val"] = hook(**hook_input["kwargs"])
15:21:34 #9 74.57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:21:34 #9 74.57 File "/home/wcg-user/.local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 143, in get_requires_for_build_wheel
15:21:34 #9 74.57 return hook(config_settings)
15:21:34 #9 74.57 ^^^^^^^^^^^^^^^^^^^^^
15:21:34 #9 74.57 File "/tmp/pip-build-env-sq28p6z8/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
15:21:34 #9 74.57 return self._get_build_requires(config_settings, requirements=[])
15:21:34 #9 74.57 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:21:34 #9 74.57 File "/tmp/pip-build-env-sq28p6z8/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
15:21:34 #9 74.57 self.run_setup()
15:21:34 #9 74.57 File "/tmp/pip-build-env-sq28p6z8/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 520, in run_setup
15:21:34 #9 74.57 super().run_setup(setup_script=setup_script)
15:21:34 #9 74.57 File "/tmp/pip-build-env-sq28p6z8/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
15:21:34 #9 74.57 exec(code, locals())
15:21:34 #9 74.57 File "", line 1, in
15:21:34 #9 74.57 ModuleNotFoundError: No module named 'pkg_resources'
15:21:34 #9 74.57 [end of output]
15:21:34 #9 74.57
15:21:34 #9 74.57 note: This error originates from a subprocess, and is likely not a problem with pip.
15:21:34 #9 74.84 ERROR: Failed to build 'flatdict' when getting requirements to build wheel

Expected Behavior

flatdict is not part of this package so that the requirements install just fine.

Actual Behavior

Package install fails

Steps to reproduce

  1. Run the code snippet provided above.

References

https://setuptools.pypa.io/en/stable/history.html#v82-0-0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions