Git Product home page Git Product logo

Comments (11)

conorsch avatar conorsch commented on August 15, 2024

The issue you describe has plagued me for a while, too:

$ ansigenome export roles -o role_schema.png
Warning: <stdin>: syntax error in line 1 near 'No'

Even running the command from within my roles directory doesn't help:

$ cd roles && ansigenome export -o role_schema.png
Warning: <stdin>: syntax error in line 20 near '-'

Interesting that we're getting different syntax errors. I assume this is related to YAML parsing, but the error message is rather ambiguous. This error occurs on v0.5.3.

from ansigenome.

nickjj avatar nickjj commented on August 15, 2024

@conorsch Do the other ansigenome commands run without issues?

from ansigenome.

conorsch avatar conorsch commented on August 15, 2024

@nickjj Yes, every ansigenome command except export runs without error. Previously I'd only tried ansigenome scan <roles_dir>, since the other commands seem tailored to roles distributed via galaxy. Just now I tested each one and encountered no issues.

from ansigenome.

focusaurus avatar focusaurus commented on August 15, 2024

I'm getting a similar error. My hunch is ansigenome is passing a mix of valid instructions and a plain-text error message like "No such file or directory" or some variation of that into the graphviz stdin, based on my error message and @conorsch's. Here's mine:

ansigenome export -o /tmp/deps.png -f png
Error: <stdin>: syntax error in line 23 near '.'

from ansigenome.

boneill42 avatar boneill42 commented on August 15, 2024

+1, i ran into the same thing.

from ansigenome.

ypid avatar ypid commented on August 15, 2024

@focusaurus The dot issue should be fixed by #36. Can anyone provide the dot file to analyze this issue further? ansigenome export -o role_schema.dot -f dot

from ansigenome.

nickjj avatar nickjj commented on August 15, 2024

Thanks @ypid, I just merged it.

Expect a new version of Ansigenome in a day or 2 on PyPi.

from ansigenome.

nickjj avatar nickjj commented on August 15, 2024

@conorsch Someone else just reported your same issue. We started eliminating roles until it worked.

The issue is one or more of your roles may have hyphens in their name, and the error is thrown when you reference those roles as dependencies in meta/main.yml.

For example:

This fails: - { role: foobar-hello }
This fails: - { role: 'foobar-hello' }
This works: - { role: foobar.hello }

Can you validate the above on your end?

from ansigenome.

nickjj avatar nickjj commented on August 15, 2024

Closing this as the new v0.5.6 version fixes this along with a number of other issues. It's up on PyPi.

from ansigenome.

conorsch avatar conorsch commented on August 15, 2024

@nickjj Great! Still waiting on v0.5.6 to hit pip, then I'll grab the new version and confirm the fix.

from ansigenome.

nickjj avatar nickjj commented on August 15, 2024

@conorsch Oh wow, I published it to PyPi test instead of live. It should be good now.

https://pypi.python.org/pypi/ansigenome/0.5.6

from ansigenome.

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.