-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Release 3.10.1 (macos/homebrew): ModuleNotFoundError: No module named 'yaml' #887
Comments
Thank you for a wonderful project and tool! Hope this helps, and happy to contribute to triage. |
I'm gonna take a look 👀 💪🏻 |
After installing pyyaml python3 -m pip install pyyaml cz version --report
Traceback (most recent call last):
File "/opt/homebrew/bin/cz", line 5, in <module>
from commitizen.cli import main
File "/opt/homebrew/Cellar/commitizen/3.10.1/libexec/lib/python3.12/site-packages/commitizen/cli.py", line 13, in <module>
from commitizen import commands, config, out, version_schemes
File "/opt/homebrew/Cellar/commitizen/3.10.1/libexec/lib/python3.12/site-packages/commitizen/commands/__init__.py", line 1, in <module>
from .bump import Bump
File "/opt/homebrew/Cellar/commitizen/3.10.1/libexec/lib/python3.12/site-packages/commitizen/commands/bump.py", line 9, in <module>
from commitizen import bump, cmd, factory, git, hooks, out
File "/opt/homebrew/Cellar/commitizen/3.10.1/libexec/lib/python3.12/site-packages/commitizen/bump.py", line 11, in <module>
from commitizen.version_schemes import DEFAULT_SCHEME, Version, VersionScheme
File "/opt/homebrew/Cellar/commitizen/3.10.1/libexec/lib/python3.12/site-packages/commitizen/version_schemes.py", line 10, in <module>
from packaging.version import InvalidVersion # noqa: F401: Rexpose the common exception
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'packaging' |
Did you also have the same error? Did you both try to uninstall and install again? |
I've got this working by running |
Yep. But this has worked for me to reinstall the dependencies - thanks brew reinstall $(brew deps commitizen) commitizen |
I had the same problem with commitizen
Resolution
|
Description
Perhaps virtualenv dependency issue with python 3.12?
Fix
brew tap-new $USER/local-commitizen
brew tap homebrew/core
brew extract --version=3.10.0 commitizen $USER/local-commitizen
HOMEBREW_NO_AUTO_UPDATE=1 brew install $USER/local-commitizen/[email protected]
(HOMEBREW_NO_AUTO_UPDATE
is personal preference to be unset later)cz version
->3.10.0
Steps to reproduce
brew install commitizen
cz
ModuleNotFoundError: No module named 'yaml'
Current behavior
Desired behavior
Standard functionality.
Screenshots
No response
Environment
Homebrew Health
(below warning ok as
commitizen
is no longer from origin)Homebrew Details
Python
❯ python3 -c "import platform; print(platform.system())" Darwin
Mac Specifics
The text was updated successfully, but these errors were encountered: