Actions
Issue #2231
closedVagrant up is missing PyYaml package
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:
Description
On the 3.0-dev branch when I vagrant up using machinery provided by the devel/devel repo I am missing PyYaml. To reproduce:
1) Vagrant up with everything using up-to-date 3.0-dev branches
2) django-admin shell_plus
3) Observe the following traceback
[vagrant@dev ~]$ django-admin
Traceback (most recent call last):
File "/usr/bin/django-admin", line 9, in <module>
load_entry_point('Django', 'console_scripts', 'django-admin')()
File "/usr/lib/python2.7/site-packages/Django-1.8.14-py2.7.egg/django/core/management/__init__.py", line 354, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/Django-1.8.14-py2.7.egg/django/core/management/__init__.py", line 303, in execute
settings.INSTALLED_APPS
File "/usr/lib/python2.7/site-packages/Django-1.8.14-py2.7.egg/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/usr/lib/python2.7/site-packages/Django-1.8.14-py2.7.egg/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/usr/lib/python2.7/site-packages/Django-1.8.14-py2.7.egg/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/home/vagrant/devel/pulp/platform/pulp/platform/settings.py", line 17, in <module>
import yaml
ImportError: No module named yaml
If I install PyYaml with the following command the error goes away:
sudo dnf install PyYAML -y
Actions
Add PyYAML to the dependency list for platform
Pulp's platform package depends on PyYAML, so it should declare it in the setup.py.
fixes #2231