unholy icon indicating copy to clipboard operation
unholy copied to clipboard

NameError: uninitialized constant Pyasm::VM

Open vote539 opened this issue 12 years ago • 3 comments

I cloned unholy from the repository and followed the installation instructions. When I run bin/unholy test.rb (test.rb exists), I get the error

*** Are you sure you're running Ruby 1.9?
/path/to/unholy/lib/unholy/pyasm.rb:366:in `throw': uncaught throw #<NameError: uninitialized constant Pyasm::VM> (ArgumentError)
    from /path/to/unholy/lib/unholy/pyasm.rb:366:in `rescue in eval'
    from /path/to/unholy/lib/unholy/pyasm.rb:361:in `eval'
    from /path/to/unholy/lib/unholy.rb:8:in `unholy'
    from bin/unholy:5:in `<main>'

I am running Ruby 1.9.3 and Python 2.7.1.

$ /usr/bin/env ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
$ /usr/bin/env python --version
Python 2.7.1

vote539 avatar Oct 30 '12 03:10 vote539

I tried running bcandrea's fork (https://github.com/bcandrea/unholy). I am getting a different error now:

1
[:trace, 1]
[:putself]
*** Are you sure you are running Ruby 1.9?
/path/to/unholy/lib/unholy/pyasm.rb:379:in `throw': uncaught throw #<NoMethodError: undefined method `putself' for #<Pyasm:0x007f92098c37f8>> (ArgumentError)
    from /path/to/unholy/lib/unholy/pyasm.rb:379:in `rescue in eval'
    from /path/to/unholy/lib/unholy/pyasm.rb:374:in `eval'
    from /path/to/unholy/lib/unholy.rb:8:in `unholy'
    from bin/unholy:5:in `<main>'

vote539 avatar Oct 30 '12 04:10 vote539

Please fix this issue. I'm having the exact issue.

Zerokami avatar Dec 03 '15 07:12 Zerokami

This was an old project by the now defunct _why, and it was made back when Ruby 1.9 was still under development and a lot of things were different. I don't expect it to work anymore.

In any case, it was just a fun hack; wasn't ever production-ready.

devyn avatar Dec 06 '15 00:12 devyn