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

AZP: add stable-2.12 to test matrix #103

Merged
merged 13 commits into from
Oct 25, 2021

Conversation

Andersson007
Copy link
Contributor

SUMMARY

stable-2.12 has been recently branched

@Andersson007
Copy link
Contributor Author

hmm. I added pip install pika and it has been installed but the module failed anyway

2021-10-13T08:01:03.3940872Z 00:47 TASK [setup_rabbitmq : Install pika] *******************************************
2021-10-13T08:01:05.0515844Z 00:49 �[0;33mchanged: [testhost] => {"changed": true, "cmd": ["/usr/bin/python3.8", "-m", "pip.__main__", "install", "pika"], "name": ["pika"], "requirements": null, "state": "present", "stderr": "", "stderr_lines": [], "stdout": "Collecting pika\n  Downloading pika-1.2.0-py2.py3-none-any.whl (154 kB)\nInstalling collected packages: pika\nSuccessfully installed pika-1.2.0\n", "stdout_lines": ["Collecting pika", "  Downloading pika-1.2.0-py2.py3-none-any.whl (154 kB)", "Installing collected packages: pika", "Successfully installed pika-1.2.0"], "version": null, "virtualenv": null}�[0m

@Andersson007
Copy link
Contributor Author

Andersson007 commented Oct 13, 2021

now it's

The full traceback is:
04:32 Traceback (most recent call last):
04:32   File "/tmp/ansible_rabbitmq_publish_payload_0zra7rlv/ansible_rabbitmq_publish_payload.zip/ansible_collections/community/rabbitmq/plugins/module_utils/rabbitmq.py", line 22, in <module>
04:32     import pika
04:32   File "/usr/local/lib/python3.8/dist-packages/pika/__init__.py", line 8, in <module>
04:32     from pika.connection import ConnectionParameters
04:32   File "/usr/local/lib/python3.8/dist-packages/pika/connection.py", line 5, in <module>
04:32     import urlparse
04:32 ModuleNotFoundError: No module named 'urlparse'
...
"msg": "Failed to import the required Python library (pika) on c454cf8a292b's Python /usr/bin/python3.8. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"

@Andersson007
Copy link
Contributor Author

pika 0.13.1 works locally

@Andersson007
Copy link
Contributor Author

there are also problems with fetching the keys, so I commented those steps and allowed unauthorized apt installations

@Andersson007
Copy link
Contributor Author

I disabled testing against devel and 2.12 on Ubuntu 1804, see #104

Copy link
Collaborator

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some questions

@Andersson007
Copy link
Contributor Author

@cognifloyd i've just checked it again - same non informative error. Without this the tests will not work. Can we merge this PR? If someone can suggest a better solution now, I'd be happy to review and close this one:)

@cognifloyd
Copy link
Collaborator

Oh sorry. I forgot about this. Rechecking now...

@Andersson007
Copy link
Contributor Author

@cognifloyd fixed, PTAL

@cognifloyd cognifloyd merged commit 65b0022 into ansible-collections:main Oct 25, 2021
@Andersson007
Copy link
Contributor Author

@cognifloyd thanks for reviewing and merging!

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

Successfully merging this pull request may close these issues.

None yet

2 participants