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

v25.1.0 breaks run_command // cannot import name 'run_command' from 'molecule.util' #4374

Closed
7 tasks done
g3n35i5 opened this issue Jan 22, 2025 · 2 comments
Closed
7 tasks done
Labels

Comments

@g3n35i5
Copy link

g3n35i5 commented Jan 22, 2025

Prerequisites

  • This was not already reported in the past (duplicate check)
  • It does reproduce it with code from main branch (latest unreleased version)
  • I include a minimal example for reproducing the bug
  • The bug is not trivial, as for those a direct pull-request is preferred
  • Running pip check does not report any conflicts
  • I was able to reproduce the issue on a different machine
  • The issue is not specific to any driver other than 'default' one

Environment

Output of molecule --version

Failed to load driver entry point Traceback (most recent call last):
  File "/home/XXXXXXXXXXX/venv/lib/python3.13/site-packages/molecule/api.py", line 47, in drivers
    pm.load_setuptools_entrypoints("molecule.driver")
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/home/XXXXXXXXXXX/venv/lib/python3.13/site-packages/pluggy/_manager.py", line 421, in load_setuptools_entrypoints
    plugin = ep.load()
  File "/usr/lib/python3.13/importlib/metadata/__init__.py", line 179, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/XXXXXXXXXXX/venv/lib/python3.13/site-packages/molecule_plugins/podman/driver.py", line 33, in <module>
    from molecule.util import run_command, sysexit_with_message
ImportError: cannot import name 'run_command' from 'molecule.util' (/home/XXXXXXXXXXX/venv/lib/python3.13/site-packages/molecule/util.py)

molecule 25.1.0 using python 3.13 
    ansible:2.18.1
    containers:23.6.0 from molecule_plugins requiring collections: ansible.posix>=1.3.0 community.docker>=1.9.1 containers.podman>=1.8.1
    azure:23.6.0 from molecule_plugins
    gce:23.6.0 from molecule_plugins requiring collections: google.cloud>=1.0.2 community.crypto>=1.8.0
    docker:23.6.0 from molecule_plugins requiring collections: community.docker>=3.4.11 ansible.posix>=1.4.0
    openstack:23.6.0 from molecule_plugins requiring collections: openstack.cloud>=2.1.0
    ec2:23.6.0 from molecule_plugins

What happened

v25.1.0 breaks integration with molecule-plugins[vagrant] (and probably more...)

Reproducing example

Just install molecule==25.1.0 and molecule-plugins==23.6.0 and type molecule --version

@apatard
Copy link
Contributor

apatard commented Jan 22, 2025

imho, duplicate of #4372

@g3n35i5
Copy link
Author

g3n35i5 commented Jan 22, 2025

imho, duplicate of #4372

Sorry, totally agree. This is just another driver but still the same issue.

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

No branches or pull requests

2 participants