# Rubyscript2exe problem with Qt::File

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-problem-with-qt-file/165579>\
**Category:** Ruby\
**Created:** [April 15, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-with-qt-file/165579 "2009-04-15T13:39:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Markus\_Hoffmann](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b38774/32.png) [@Markus\_Hoffmann](https://www.ruby-forum.com/u/Markus_Hoffmann)\
**Post date:** [April 15, 2009, 1:39pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-problem-with-qt-file/165579/1 "2009-04-15T13:39:18Z")

</div>

Hi !

I have written a small ruby Qt application under Windows XP. For this I  
used the Ruby Qt Binding (  
[http://vision.eng.shu.ac.uk/mmvlwiki/index.php/Qt4-QtRuby\_installer\_for\_Microsoft\_Windows](http://vision.eng.shu.ac.uk/mmvlwiki/index.php/Qt4-QtRuby_installer_for_Microsoft_Windows)  
), Qt version 4.3.4 and Ruby 1.8.6-25.

Now I wanted to create an executable file with the help of the  
Rubyscript2exe but it does not work. The error message I get is the  
following:  
/  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2exe/require2l  
ib.rb:96:in `expand_path': can't convert Qt::File into String (TypeError) from D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2 exe/require2lib.rb:96:in `gatherlibs’  
from  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2  
exe/require2lib.rb:95:in `each' from D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2 exe/require2lib.rb:95:in `gatherlibs’  
from  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2  
exe/require2lib.rb:94:in `catch' from D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2 exe/require2lib.rb:94:in `gatherlibs’  
from  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2  
exe/require2lib.rb:93:in `each' from D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2 exe/require2lib.rb:93:in `gatherlibs’  
from  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2  
exe/require2lib.rb:30  
from  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2  
exe/require2lib.rb:151  
D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2exe/require2l  
ib.rb:151:in `require2lib_load': can't convert Qt::File into String (TypeError) from D:/Profile/Markus/LOKALE~1/Temp/tar2rubyscript.d.1512.1/rubyscript2 exe/require2lib.rb:151:in `load’  
from totdMain.rb:11  
Couldn’t execute this command (rc=256):  
/  
Rubyscript2exe (version 0.5.3) works fine if I remove the parts of my  
ruby application that contain the “Qt::File” ( I use it like this :  
/main = Qt::UiLoader.new.load(Qt::File.new(“TipOfTheDay.ui”)) /) I  
googled but I only found some problems with “frozen strings…”  
If someone needs more information please let me know. It would be really  
nice to get some help / hints.

Greetings  
Markus
