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

dockerng : AttributeError: 'module' object has no attribute 'version_info' #32261

Closed
arthurzenika opened this issue Mar 31, 2016 · 3 comments
Closed
Labels
Bug broken, incorrect, or confusing behavior Execution-Module fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@arthurzenika
Copy link
Contributor

Description of Issue/Question

2016-03-31 08:45:04,976 [salt.loader      ][ERROR   ][9448] Exception raised when processing __virtual__ function for dockerng. Module will not be loaded 'module' object has no attribute 'version_info'
2016-03-31 08:45:04,980 [salt.loader      ][WARNING ][9448] salt.loaded.int.module.dockerng.__virtual__() is wrongly returning `None`. It should either return `True`, `False` or a new name. If you're the developer of the module 'dockerng', please fix this.

Setup

(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)

Steps to Reproduce Issue

(Include debug logs if possible and relevant.)

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

# salt-minion --versions-report
Salt Version:
           Salt: 2015.8.8.2

Dependency Versions:
         Jinja2: 2.7.3
       M2Crypto: 0.21.1
           Mako: 1.0.0
         PyYAML: 3.11
          PyZMQ: 14.4.0
         Python: 2.7.9 (default, Mar  1 2015, 12:57:24)
           RAET: Not Installed
        Tornado: 4.2.1
            ZMQ: 4.0.5
           cffi: 0.8.6
       cherrypy: 2.3.0
       dateutil: 2.2
          gitdb: 0.5.4
      gitpython: 0.3.2 RC1
          ioflo: Not Installed
        libgit2: Not Installed
        libnacl: Not Installed
   msgpack-pure: Not Installed
 msgpack-python: 0.4.2
   mysql-python: 1.2.3
      pycparser: 2.10
       pycrypto: 2.6.1
         pygit2: Not Installed
   python-gnupg: Not Installed
          smmap: 0.8.2
        timelib: Not Installed

System Versions:
           dist: debian 8.3 
        machine: x86_64
        release: 3.16.0-4-amd64
         system: debian 8.3 
# dpkg -l python-docker

ii  python-docker                     0.5.3-1               all                   Python wrapper to access docker.io's control socket

@ticosax
Copy link
Contributor

ticosax commented Mar 31, 2016

dockerng requires docker-py >= 1.4.
You can try the dockerio execution module if you need to use prior versions of docker-py.

@jfindlay jfindlay added Execution-Module Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps fixed-pls-verify fix is linked, bug author to confirm fix labels Mar 31, 2016
@jfindlay jfindlay added this to the Approved milestone Mar 31, 2016
@jfindlay
Copy link
Contributor

@ticosax, thanks for fixing this. @arthurlogilab, can you confirm that this has been fixed? Thanks.

@arthurzenika
Copy link
Contributor Author

@jfindlay looks ok, not tested though. Thanks @ticosax for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior Execution-Module fixed-pls-verify fix is linked, bug author to confirm fix P3 Priority 3 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants