# Ocra Tk "\_invoke\_without\_enc"

**URL:** <https://www.ruby-forum.com/t/ocra-tk-invoke-without-enc/190069>\
**Category:** Ruby\
**Created:** [June 12, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/ocra-tk-invoke-without-enc/190069 "2010-06-12T13:18:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![micx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@micx](https://www.ruby-forum.com/u/micx)\
**Post date:** [June 12, 2010, 1:18pm UTC](https://www.ruby-forum.com/t/ocra-tk-invoke-without-enc/190069/1 "2010-06-12T13:18:14Z")

</div>

Hallo

I would like to convert a ruby.file into an \*.exe. (Important: I use the  
library “Tk”)

I am getting the following error message:

C:/Ruby/lib/ruby/1.8/tk.rb:1694:in `\_invoke\_without\_enc’: can’t find  
package res  
ource (RuntimeError)

It works when compiling a ruby.file without the Tk library. So the  
problem must be the compatibility between Tk and ocra.

Has anybody bot a solution for me?

Best regards  
Micx

---

<div class="post-metadata">

**Author:** ![micx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@micx](https://www.ruby-forum.com/u/micx)\
**Post date:** [June 14, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/ocra-tk-invoke-without-enc/190069/2 "2010-06-14T20:33:11Z")

</div>

> C:/Ruby/lib/ruby/1.8/tk.rb:1694:in `\_invoke\_without\_enc’: can’t find  
> package res  
> ource (RuntimeError)

My guess is that ocra is packaging your .rb files but not your .tcl  
files

or maybe you’re required to have ActiveTcl installed where you use it?

-rp

---

<div class="post-metadata">

**Author:** ![micx](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@micx](https://www.ruby-forum.com/u/micx)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/ocra-tk-invoke-without-enc/190069/3 "2010-06-17T16:22:14Z")

</div>

From: “M. P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: ocra Tk “\_invoke\_without\_enc”  
Date: Sat, 12 Jun 2010 20:18:16 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> I am getting the following error message:
> 
> C:/Ruby/lib/ruby/1.8/tk.rb:1694:in `\_invoke\_without\_enc’: can’t find  
> package res  
> ource (RuntimeError)

From: Roger P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: ocra Tk “\_invoke\_without\_enc”  
Date: Tue, 15 Jun 2010 03:33:13 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> My guess is that ocra is packaging your .rb files but not your .tcl  
> files  
> or maybe you’re required to have ActiveTcl installed where you use it?

If it is the reason of why, Ruby/Tk-Kit version of tcltklib.so may  
solve the trouble because (I heard) ocra extracts all files when  
executing.

From: “M. P.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: ocra Tk “\_invoke\_without\_enc”  
Date: Sat, 12 Jun 2010 20:18:16 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Has anybody bot a solution for me?

If you don’t mind to try an experimental version of Ruby/Tk-Kit,  
I’ll try to make 1.8-mingw version of tcltklib.so.  
Then, please tell me the version of your Ruby and a list of  
Tcl/Tk extensions used by your application.
