Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

"No module named yaml" error #66

Open
owendall opened this issue Jul 30, 2016 · 1 comment
Open

"No module named yaml" error #66

owendall opened this issue Jul 30, 2016 · 1 comment

Comments

@owendall
Copy link

raceback (most recent call last):
File "exitwp.py", line 13, in
import yaml
ImportError: No module named yaml

This is on Mac OS X El Capitan. I removed and reinstalled Python using Brew. Then followed the diirections again. I am not a Python programmer, but wondering why line 13 is "import yaml" and not "import pyYAML" However, I tried that and had the same issue. Must be something in my configuration.

Here is what I have installed via pip:

awscli (1.9.6)
beautifulsoup4 (4.2.0)
botocore (1.3.6)
colorama (0.3.3)
docutils (0.12)
html2text (3.200.3)
html5lib (1.0b1)
jmespath (0.9.0)
pip (8.1.2)
pyaml (15.8.2)
pyasn1 (0.1.9)
python-dateutil (2.4.2)
PyYAML (3.10)
rsa (3.2.3)
setuptools (19.4)
six (1.10.0)
vboxapi (1.0)
wheel (0.26.0)

Here are details about PyYAML:


Metadata-Version: 2.0
Name: PyYAML
Version: 3.10
Summary: YAML parser and emitter for Python
Home-page: http://pyyaml.org/wiki/PyYAML
Author: Kirill Simonov
Author-email: xi@resolvent.net
Installer: pip
License: MIT
Location: /usr/local/lib/python2.7/site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.3
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.0
Programming Language :: Python :: 3.1
Programming Language :: Python :: 3.2
Topic :: Software Development :: Libraries :: Python Modules
Topic :: Text Processing :: Markup

@owendall
Copy link
Author

Turns out I have several versions of Python installed. I removed all but the v 2.7 that cannot be removed from Mac OS X. Then within the root of the "exitwp" folder:

sudo pip install --upgrade -r pip_requirements.txt

Now all is good.

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

No branches or pull requests

1 participant