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

Bug Report: make tests-py3 is broken in devel #13553

Closed
Yannig opened this issue Dec 15, 2015 · 0 comments
Closed

Bug Report: make tests-py3 is broken in devel #13553

Yannig opened this issue Dec 15, 2015 · 0 comments

Comments

@Yannig
Copy link
Contributor

Yannig commented Dec 15, 2015

Ansible Version:

last devel

Ansible Configuration:

Nothing special

Environment:

Nothing special

Summary:

module_utils/known_hosts.py use import urlparse but this module as moved to urllib.parse in python3. Using make tests-py3 result in an error.

Steps To Reproduce:

make tests-py3

Expected Results:
Ran 333 tests in 5.335s

OK (SKIP=3)
Actual Results:
======================================================================
ERROR: Failure: ImportError (No module named 'urlparse')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
    raise self.exc_val.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/nose/loader.py", line 420, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/usr/lib/python3.4/imp.py", line 235, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.4/imp.py", line 171, in load_source
    module = methods.load()
  File "<frozen importlib._bootstrap>", line 1220, in load
  File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 1129, in _exec
  File "<frozen importlib._bootstrap>", line 1471, in exec_module
  File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
  File "/home/yannig/dev/yannig/ansible/test/units/module_utils/basic/test_known_hosts.py", line 20, in <module>
    from ansible.module_utils import known_hosts
  File "/home/yannig/dev/yannig/ansible/lib/ansible/module_utils/known_hosts.py", line 31, in <module>
    import urlparse
ImportError: No module named 'urlparse'
Yannig added a commit to Yannig/ansible that referenced this issue Dec 15, 2015
@Yannig Yannig closed this as completed Dec 16, 2015
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
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