Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error ModuleNotFoundError: No module named 'yaml' during installation #127

Open
boochamoocha opened this issue Jan 22, 2024 · 3 comments
Open

Comments

@boochamoocha
Copy link

On mac os I get an error ModuleNotFoundError: No module named 'yaml' during installation using pip3 install tg-archive

I've tried Python 3.8.6, 3.9.6, 3.11.5, tried devbox, tried system level venv - same result

I've tried to install pyyaml - no result

Full installation log

Collecting tg-archive
  Using cached tg-archive-1.1.3.tar.gz (28 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      Traceback (most recent call last):
        File "/Users/user1/Dev/python/tg/backup/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/user1/Dev/python/tg/backup/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Users/user1/Dev/python/tg/backup/.venv/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/private/var/folders/p0/7_qj4j611dlcdp7ztwrqnfjw0000gn/T/pip-build-env-26_6nabk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/private/var/folders/p0/7_qj4j611dlcdp7ztwrqnfjw0000gn/T/pip-build-env-26_6nabk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/private/var/folders/p0/7_qj4j611dlcdp7ztwrqnfjw0000gn/T/pip-build-env-26_6nabk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/private/var/folders/p0/7_qj4j611dlcdp7ztwrqnfjw0000gn/T/pip-build-env-26_6nabk/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 5, in <module>
        File "/private/var/folders/p0/7_qj4j611dlcdp7ztwrqnfjw0000gn/T/pip-install-j19exdez/tg-archive_e75c8145703a4eb39650f52194eb17b8/tgarchive/__init__.py", line 6, in <module>
          import yaml
      ModuleNotFoundError: No module named 'yaml'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@sphynxnymph
Copy link

I have the same issue on Windows 11. "ModuleNotFoundError: No module named 'yaml'" followed by "Requirement already satisfied: pyyaml"

@mr-technofreak
Copy link

same issue as described by OP
macOS Sonoma 14.1.2

@simicvm
Copy link

simicvm commented Apr 19, 2024

same issue 🙃
Python 3.11 venv with Poetry
macOS Sonoma 14.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants