GithubHelp home page GithubHelp logo

Comments (7)

fboender avatar fboender commented on July 24, 2024

Hey zlowly! I've commited a fix for this problem. Can you verify that it fixes things for you?

from ansible-cmdb.

zlowly avatar zlowly commented on July 24, 2024

After applied the fix, I got another error msg:

$ansible-cmdb -i /home/ansible/hosts -d out/ > index.html
Traceback (most recent call last):
  File "/usr/bin/ansible-cmdb", line 20, in <module>
    import ansiblecmdb
  File "/usr/lib/ansible-cmdb/ansiblecmdb/__init__.py", line 1, in <module>
    from .parser import HostsParser, DynInvParser
  File "/usr/lib/ansible-cmdb/ansiblecmdb/parser.py", line 4, in <module>
    if sys.version_info.major == 2:
AttributeError: 'tuple' object has no attribute 'major'

PS:My OS is CentOS 6.6 and running python 2.6.6.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Ah, Python v2.6. I didn't test against that. I've pushed a new commit that should fix the issue. Could you check again?

from ansible-cmdb.

zlowly avatar zlowly commented on July 24, 2024

It works now ! Thanks a lot !

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

Thanks for reporting the problem!

from ansible-cmdb.

ilovemysillybanana avatar ilovemysillybanana commented on July 24, 2024

I'm having this problem again with the latest version, is 2.6.6 still supported?

$ ansible-cmdb -t html_fancy_split ./ out_manual/
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'major'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'minor'
/usr/local/bin/ansible-cmdb: line 22: [: : integer expression expected
Traceback (most recent call last):
  File "/usr/local/bin/../lib/ansible-cmdb/ansible-cmdb.py", line 30, in <module>
    "newer version.\n".format(sys.version))
ValueError: zero length field name in format

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

I'm afraid only Python v2.7 and higher are supported.

from ansible-cmdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.