Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Cannot package on Windows 7x64 #265

Open
Phrogz opened this issue Aug 27, 2014 · 5 comments
Open

Cannot package on Windows 7x64 #265

Phrogz opened this issue Aug 27, 2014 · 5 comments

Comments

@Phrogz
Copy link

Phrogz commented Aug 27, 2014

I am trying to create a self-running .exe on Windows. When I launch Shoes.exe and click on "Package an App with Shoes" nothing happens, but I get the following error in the console:

126: The specified module could not be found. - C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/i386-mingw32/binject.so
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in `require'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in `require'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes/app_package.rb:3:in `<top (required)>'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in `require'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in `require'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes.rb:206:in `app_package'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes.rb:171:in `block (4 levels) in splash'
-e:1:in `call'

This is on Windows7x64, running Shoes v3.2.14. Is there a know problem with the packager, and if so is there any workaround?

This file does exist on my hard drive:
C:\Program Files (x86)\Common Files\Shoes\3.2.14-gtk2-32\lib\ruby\2.1.0\i386-mingw32\binject.so

@ccoupe
Copy link

ccoupe commented Aug 27, 2014

It's wasn't a known problem until now. Thanks for reporting it. I can
reproduce your problem.

Oddly, binject.so is right where the error message says it is. I suspect
I may have been too agressive in stripping the debugging symbols.

I'll follow up with a newer version that works once I figure out what's
wrong.

Thanks for the bug report.
--Cecil

On 08/27/2014 01:23 PM, Gavin Kistner wrote:

I am trying to create a self-running .exe on Windows. When I launch
Shoes.exe and click on "Package an App with Shoes" nothing happens,
but I get the following error in the console:

|126: The specified module could not be found. - C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/i386-mingw32/binject.so
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in require' C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:inrequire'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes/app_package.rb:3:in <top (required)>' C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:inrequire'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/ruby/2.1.0/rubygems/core_ex/kernel_require.rb:55:in require' C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes.rb:206:inapp_package'
C:/Program Files (x86)/Common Files/Shoes/3.2.14-gtk2-32/lib/shoes.rb:171:in block (4 levels) in splash' -e:1:incall'
|

This is on Windows7x64, running Shoes v3.2.14. Is there a know problem
with the packager, and if so is there any workaround?


Reply to this email directly or view it on GitHub
#265.

@ccoupe
Copy link

ccoupe commented Aug 28, 2014

This may take some time than either of us like. The only work around would be to do the packaging from OSX or Linux (for an exe). Older versions of 3.2 that I know worked, don't work any more. I hate blaming Windows updates but that's the leading explanation.

@Phrogz
Copy link
Author

Phrogz commented Aug 28, 2014

I didn't realize that OS X could package for Windows. That sounds like a reasonable workaround.

When packaging a folder of files, how do I instruct Shoes which is the main file? I have tried the GUI Packager on OS X and successfully created a .exe that runs on Windows, but it just spews a bunch of output about non-UTF-8 files:

Error in <unknonwn> line 0 | …current date…
undefined local variable or method `
Error in <unknonwn> line 0 | …current date…
not a valid UTF-8 string: undefined local variable or method `

(second message repeats ≈infinitely)


However, manually replacing all require with copy/pasting all files into the main and packaging just that file on OS X worked like a charm on Windows. Thank you for the workaround.

@ccoupe
Copy link

ccoupe commented Aug 28, 2014

Sadly, the packager is currently limited to packing one (1) file. It's a big weakness that's on the todo list. One could try packing your directory into a .shy and then package that into an .exe - it might work.

ccoupe referenced this issue in shoes/shoes3 Sep 3, 2014
…indows pe handling. No hfs/dmg. Source code for binject is still there but not used.
@ccoupe
Copy link

ccoupe commented Sep 3, 2014

@Phrogz (and others watching). I've updated Shoes 3.2.15 (Sept 2 2014 date). It's now working for me: Packaging a single script with Shoes Windows. Packaging a directory hasn't been fixed yet.

You'll have to download and reinstall 3.2.15 to test it.

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

No branches or pull requests

2 participants