Ocra stopped working

159 views
Skip to first unread message

Stuart Hunt

unread,
Dec 19, 2013, 8:27:34 AM12/19/13
to ruby...@googlegroups.com
I've been using ocra with Ruby 1.9.3 happily for I think 10 months now...
Suddenly, I tried packaging a project I've been working on for quite a long time and I got an error message. I didn't update ruby, I didn't update ocra, nothing changed but the code for the project itself, but suddenly it doesn't build it now. I tried simplifying the command so there are no fancy arguments (simplified from "ocra --chdir-first --windows DarkStar.rb lib/*" to "ocra DarkStar.rb"), but I still get the same error.

Here's what happened when I tried to package my program:
(this has happened no matter how many or how few arguments I pass in)
~/Dropbox/DarkStar> ocra DarkStar.rb
=== Loading script to check dependencies
=== Detected gem gosu-0.7.45-x86-mingw32 (loaded, files)
===     45 files, 7876743 bytes
=== Detected gem string-encrypt-0.0.5 (loaded, files)
===     6 files, 15626 bytes
=== Including 52 encoding support files (5179608 bytes, use --no-enc to exclude)

=== Building DarkStar.exe
=== Adding user-supplied source files
=== Adding ruby executable ruby.exe
=== Adding detected DLL C:/Ruby193/bin/libeay32-1.0.0-msvcrt.dll
=== Adding detected DLL C:/Ruby193/bin/ssleay32-1.0.0-msvcrt.dll
=== Adding detected DLL C:/Ruby193/bin/ZLIB1.dll
=== Adding detected DLL C:/Ruby193/lib/ruby/gems/1.9.1/gems/gosu-0.7.45-x86-ming
w32/lib/OpenAL32.dll
=== Adding detected DLL C:/Ruby193/lib/ruby/gems/1.9.1/gems/gosu-0.7.45-x86-ming
w32/lib/libsndfile.dll
=== Adding library files
=== Compressing 29808581 bytes
The syntax of the command is incorrect.
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:1018:in `block in initia
lize': unhandled exception
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:998:in `ope
n'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:998:in `ini
tialize'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:837:in `new
'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:837:in `bui
ld_exe'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ocra-1.3.1/bin/ocra:1153:in `bl
ock in <top (required)>'

Stuart Hunt

unread,
Dec 19, 2013, 8:38:02 AM12/19/13
to ruby...@googlegroups.com
Just now, I used git to revert all of my code back to a prior state when I was able to build successfully, and it still failed with the same error message proving that the code is not the cause.

Stuart Hunt

unread,
Dec 19, 2013, 9:23:15 AM12/19/13
to ruby...@googlegroups.com
...for even more proof, I created a helloWorld.rb file containing a simple puts statement, and I still get the same error message if I try "ocra helloWorld.rb".
After I started having the problem, I updated ocra, but the problem still persists.


On Thursday, December 19, 2013 8:27:34 AM UTC-5, Stuart Hunt wrote:

Clayton Cottingham

unread,
Dec 19, 2013, 8:57:35 PM12/19/13
to ruby...@googlegroups.com, Stuart Hunt
Just a quick scan but it look like there is 1.9.1 gems w 1.9.3 ruby?
--
Sent from my Android

Stuart Hunt

unread,
Dec 20, 2013, 8:26:49 AM12/20/13
to ruby...@googlegroups.com, Stuart Hunt
I didn't notice that... I just took a quick look, and every gem I've ever installed with 1.9.3 ruby is under that directory.

Stuart Hunt

unread,
Dec 24, 2013, 10:43:31 AM12/24/13
to ruby...@googlegroups.com
Does anyone know how I can fix this?

edgren...@gmail.com

unread,
Jan 19, 2014, 4:01:17 PM1/19/14
to ruby...@googlegroups.com
I had the exact same problem and found a solution for me at https://www.ruby-forum.com/topic/4408575
Look in regedit for
HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
In my case ANSICON (installed for Cucumber colors) added a line here which apparently broke the LZMA part of ocra (with the failure, ocra worked with --no-lzma option)
Regards,
Rikard

Lars Christensen

unread,
Jan 20, 2014, 2:07:21 AM1/20/14
to ruby...@googlegroups.com
I have found ANSICON to interfere with other programs as well, for example, the version of unix 'which' I had installed (would simply crash). It appears to be quite invasive.


--
You received this message because you are subscribed to the Google Groups "OCRA One-Click Application Builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ocra+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages