Project

Profile

Help

Issue #4047

closed

pulp_ansible RC1 is missing code

Added by bmbouter over 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
3. High
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

I pip install pulp_ansible and I receive 0.1.0rc1 with:

(pulp) [vagrant@pulp3 pulp]$ pip freeze | grep ansible
pulp-ansible==0.1.0rc1

When starting any Pulp process I receive a traceback:

Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x7fa4b561f9d8>
Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/management/commands/runserver.py", line 109, in inner_run
    autoreload.raise_last_exception()
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/utils/autoreload.py", line 248, in raise_last_exception
    raise _exception[1]
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/core/management/__init__.py", line 337, in execute
    autoreload.check_errors(django.setup)()
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/utils/autoreload.py", line 225, in wrapper
    fn(*args, **kwargs)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/__init__.py", line 24, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/django/apps/registry.py", line 120, in populate
    app_config.ready()
  File "/home/vagrant/devel/pulp/pulpcore/pulpcore/app/apps.py", line 74, in ready
    self.import_viewsets()
  File "/home/vagrant/devel/pulp/pulpcore/pulpcore/app/apps.py", line 108, in import_viewsets
    self.viewsets_module = import_module(viewsets_module_name)
  File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/vagrant/.virtualenvs/pulp/lib64/python3.6/site-packages/pulp_ansible/app/viewsets.py", line 22, in <module>
    from . import tasks
ImportError: cannot import name 'tasks'

In the 0.1.0rc1 tagged code you can see this import here which is importing from the tasks module here

Strangely though, on the system I pip intalled 0.1.0rc1 onto I get this as my code, which is missing the 'tasks' module.

(pulp) [vagrant@pulp3 app]$ cd  ~/.virtualenvs/pulp/lib64/python3.6/site-packages/pulp_ansible/
(pulp) [vagrant@pulp3 pulp_ansible]$ tree
.
├── app
│   ├── __init__.py
│   ├── models.py
│   ├── __pycache__
│   │   ├── __init__.cpython-36.pyc
│   │   ├── models.cpython-36.pyc
│   │   ├── serializers.cpython-36.pyc
│   │   ├── urls.cpython-36.pyc
│   │   └── viewsets.cpython-36.pyc
│   ├── serializers.py
│   ├── urls.py
│   └── viewsets.py
├── __init__.py
└── __pycache__
    └── __init__.cpython-36.pyc

Also available in: Atom PDF