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

Nightly downstream job failing with LinchpinAPI import errors #1549

Closed
Dannyb48 opened this issue Dec 19, 2019 · 1 comment · Fixed by #1551
Closed

Nightly downstream job failing with LinchpinAPI import errors #1549

Dannyb48 opened this issue Dec 19, 2019 · 1 comment · Fixed by #1551

Comments

@Dannyb48
Copy link
Contributor

Describe the bug
Our jobs are failing with the failing with the following error

 File "/home/jenkins/workspace/Carbon-Linchpin-Nightly/cbn/lib/python2.7/site-packages/carbon/provisioners/ext/linchpin_wrapper_plugin.py", line 83, in __init__
    self.linchpin_api = LinchpinAPI(self._init_context())
NameError: global name 'LinchpinAPI' is not defined

This is using latest development branch and python 2.7.

If open up a python console and try to perform the same import, I get the following error messages about the mock library, which I think is causing the import of the API to not work.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dbaez/.virtualenvs/linchpin-nightly/lib/python2.7/site-packages/linchpin/__init__.py", line 20, in <module>
    from mock import MagicMock
ImportError: No module named mock

To Reproduce
Steps to reproduce the behavior:

  1. Install latest develop branch pip install git+https://github.com/CentOS-PaaS-SIG/linchpin.git@develop
  2. open python console python
  3. import the LinchpinAPI from linchpin import LinchpinAPI
  4. See error
@samvarankashyap
Copy link
Contributor

@Dannyb48 #1551 should fix this import error.

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

Successfully merging a pull request may close this issue.

2 participants