Comments (11)
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.
@conorsch Do the other ansigenome commands run without issues?
from ansigenome.
@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.
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.
+1, i ran into the same thing.
from ansigenome.
@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.
Thanks @ypid, I just merged it.
Expect a new version of Ansigenome in a day or 2 on PyPi.
from ansigenome.
@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.
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.
@nickjj Great! Still waiting on v0.5.6
to hit pip
, then I'll grab the new version and confirm the fix.
from ansigenome.
@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)
- Python 3 incompatibility HOT 8
- Ansigenome missed one instance of a internal variable.
- Roles don't connect to one another HOT 2
- 86a62d40adac956784510ec11fe8ee197a9f05c8 broke `role.galaxy_name` HOT 4
- Support Ansible custom filters
- errors when handling missing meta/main.yml HOT 4
- Scan does not detect markdown readmes HOT 2
- variables graph
- can we have multiple authors? HOT 1
- cuts the first letters from beginning of the name in gendoc HOT 1
- parser fails due to "Too many levels of symbolic links" HOT 1
- Breaks with inline vault-encrypted variables HOT 1
- Add ability to ignore role's subfolders
- ansigenome not installing properly HOT 2
- Exported png doesn't seem valid HOT 3
- question: had anyone automated ansigenome? HOT 2
- location / config for custom meta templates
- allow include templates from url
- ansigenome 0.6.0 ignores the ansigenome.yml
- template not found error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansigenome.