Skip to content

[BUG] flatdict build issue during installation - No module named 'pkg_resources' #818

@raffidahmad

Description

@raffidahmad

Describe the bug
A clear and concise description of what the bug is.
pip i -> ModuleNotFoundError: No module named 'pkg_resources'

To Reproduce

  1. git clone https://github.com/raffidahmad/ecs_composex.git
  2. cd ecs_composex
  3. python3 -m venv compose-x-venv
  4. source compose-x-venv/bin/activate
  5. pip install pip -U
  6. pip install ecs-composex

Logs

Collecting flatdict<5.0.0,>=4.0.1 (from compose-x-common<2.0,>=1.4->ecs_composex==1.1.8)
  Downloading flatdict-4.0.1.tar.gz (8.3 kB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/atlassian/pipelines/agent/build/ecs_composex/compose-x-venv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-cnt28djj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 333, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-cnt28djj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 301, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-cnt28djj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 520, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-cnt28djj/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
        File "<string>", line 1, in <module>
      ModuleNotFoundError: No module named 'pkg_resources'
      [end of output]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions