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

Error : resource model can be specified only for a named resource, name your resource... #10

Closed
leopoiroux opened this issue Jan 15, 2014 · 7 comments

Comments

@leopoiroux
Copy link

I have this error when I launch "aglio -i input.md -o output.html" (my input.md is your example.md)
I just installed aglio via npm today
Can you help me ?

Line 34: resource model can be specified only for a named resource, name your resource, e.g. '# <resource name> []' (error code 3)
@leopoiroux
Copy link
Author

I'm on Debian 7, with Nodejs v0.10.24. I also have this warning when I have install aglio

sudo npm install -g aglio
...
> protagonist@0.6.0 install /usr/local/lib/node_modules/aglio/node_modules/protagonist
> node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.24"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/aglio/node_modules/protagonist/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
make: entrant dans le répertoire « /usr/local/lib/node_modules/aglio/node_modules/protagonist/build »
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/HTTP.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/MarkdownBlock.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/MarkdownParser.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/Parser.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/ParserCore.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/Serialize.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/SerializeJSON.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/SerializeYAML.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/snowcrash.o
  CXX(target) Release/obj.target/libsnowcrash/snowcrash/src/posix/RegexMatch.o
  AR(target) Release/obj.target/snowcrash/snowcrash.a
  COPY Release/snowcrash.a
  CC(target) Release/obj.target/sundown/snowcrash/sundown/src/autolink.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/src/buffer.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/html/houdini_href_e.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/html/houdini_html_e.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/html/html.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/html/html_smartypants.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/src/markdown.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/src/stack.o
  CC(target) Release/obj.target/sundown/snowcrash/sundown/src/src_map.o
  AR(target) Release/obj.target/snowcrash/sundown.a
  COPY Release/sundown.a
  CXX(target) Release/obj.target/protagonist/src/annotation.o
  CXX(target) Release/obj.target/protagonist/src/blueprint.o
  CXX(target) Release/obj.target/protagonist/src/parse.o
  CXX(target) Release/obj.target/protagonist/src/protagonist.o
  CXX(target) Release/obj.target/protagonist/src/result.o
  SOLINK_MODULE(target) Release/obj.target/protagonist.node
  SOLINK_MODULE(target) Release/obj.target/protagonist.node: Finished
  COPY Release/protagonist.node
make: quittant le répertoire « /usr/local/lib/node_modules/aglio/node_modules/protagonist/build »
/usr/local/bin/aglio -> /usr/local/lib/node_modules/aglio/bin/aglio.js
aglio@1.11.0 /usr/local/lib/node_modules/aglio
├── marked@0.2.10
├── optimist@0.6.0 (wordwrap@0.0.2, minimist@0.0.5)
├── coffee-script@1.6.3
├── highlight.js@7.5.0
├── stylus@0.41.3 (debug@0.7.4, mkdirp@0.3.5, cssom@0.2.5, sax@0.5.8)
├── cli-color@0.2.3 (memoizee@0.2.6, es5-ext@0.9.2)
├── moment@2.4.0
├── jade@0.35.0 (character-parser@1.2.0, commander@2.0.0, mkdirp@0.3.5, monocle@1.1.50, transformers@2.1.0, with@1.1.1, constantinople@1.0.2)
└── protagonist@0.6.0

@zdne
Copy link
Collaborator

zdne commented Jan 15, 2014

@leopoiroux

This looks similar to #8

Can you please run c++ -v for me?

@leopoiroux
Copy link
Author

Indeed, I had not seen the details of #8

Using built-in specs.
COLLECT_GCC=c++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-5' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-5)

@leopoiroux
Copy link
Author

And like #5, I have Segfault with a more simple Markdown

@zdne
Copy link
Collaborator

zdne commented Jan 17, 2014

@leopoiroux

Thanks, I have this on top of my list but it might take few days before I get to it. I will post my progress on apiaryio/protagonist#5

@leopoiroux
Copy link
Author

Hi,

If I change /root permissions (777). The error is more verbose. Look at this...

> protagonist@0.6.0 install /usr/local/lib/node_modules/aglio/node_modules/protagonist
> node-gyp rebuild


module.js:340
    throw err;
          ^
Error: Cannot find module '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
npm ERR! protagonist@0.6.0 install: `node-gyp rebuild`
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the protagonist@0.6.0 install script.
npm ERR! This is most likely a problem with the protagonist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls protagonist
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "aglio"
npm ERR! cwd /usr/local/lib/node_modules/npm/node_modules
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/local/lib/node_modules/npm/node_modules/npm-debug.log
npm ERR! not ok code 0

@danielgtaylor
Copy link
Owner

This should be fixed upstream. Please test with the latest protagonist. A new Aglio release is coming soon.

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

No branches or pull requests

3 participants