github-gem icon indicating copy to clipboard operation
github-gem copied to clipboard

Problem on Windows 7 (still claims to require win32-open3 w/ 1.9.2)

Open eviljosh opened this issue 14 years ago • 23 comments

I'm running into a problem on Windows 7 x64, where the github gem claims to require win32-open3 even though this functionality (I think?) is baked into ruby 1.9.2.

I tried installing a work-around I found via Google, win32-open3-19, but then got the following error trace when trying to run 'gh create-from-local':

C:/RubyOnRails/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:202:in spawn': No such file or directory - pwd (Errno::ENOENT) from C:/RubyOnRails/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:202:inpopen_run' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:90:in popen3' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:127:inrun' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:61:in sh' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/commands/commands.rb:242:inblock in load' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:25:in call' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github.rb:76:ininvoke' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github.rb:70:in activate' from C:/RubyOnRails/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/bin/gh:8:in<top (required)>' from C:/RubyOnRails/Ruby1.9.2/bin/gh:19:in load' from C:/RubyOnRails/Ruby1.9.2/bin/gh:19:in

'

eviljosh avatar Oct 23 '11 08:10 eviljosh

I believe I am getting the same problem, with a fresh install using latest Railsinstaller on Windows 7

C:\Sites\sciteachplan>gh --help You must 'gem install win32-open3' to use the github command on Windows

C:\Sites\sciteachplan>gem install win32-open3 ERROR: Error installing win32-open3: win32-open3 requires Ruby version < 1.9.0.

On the suggestion above, installing win32-open3-19 initially works to get the help menu up.

C:\Sites\sciteachplan>gem install "win32-open3-19" Fetching: win32-open3-19-0.0.1.gem (100%) Successfully installed win32-open3-19-0.0.1 1 gem installed Installing ri documentation for win32-open3-19-0.0.1... Installing RDoc documentation for win32-open3-19-0.0.1...

C:\Sites\sciteachplan>gh --help Usage: github command Available commands: ....

But then when building local I get the following:

C:\Sites\sciteachplan>gh create-from-local Please enter your GitHub credentials: Username: polymatter Your account token is at https://github.com/account under 'Account Admin'. Press Enter to launch page in browser. Token: C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:202:in 'spawn': No such file or directory - curl -F 'repository[name]=sciteachplan' -F 'repository[public]=true' -F 'login='polymatter'' -F 'token='' https://github.com/repositories (Errno::ENOENT) from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:202:in 'popen_run' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/1.9.1/open3.rb:90:in 'popen3' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:127:in 'run' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:61:in 'sh' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/commands/commands.rb:246:in 'block in load' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github/command.rb:25:in 'call' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github.rb:76:in 'invoke' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/lib/github.rb:70:in 'activate' from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/github-0.6.2/bin/gh:8:in '<top (required)>' from C:/RailsInstaller/Ruby1.9.2/bin/gh:19:in 'load' from C:/RailsInstaller/Ruby1.9.2/bin/gh:19:in '<main>'

some of the formatting went a bit weird with the error above, and I thought it would be useful to indicate this occured with vanilla railsinstaller on windows.

polymatter avatar Nov 13 '11 20:11 polymatter

still open?

byousri avatar Nov 17 '11 18:11 byousri

I have the same issue. Any ideas?

riverblufftrail avatar Nov 19 '11 00:11 riverblufftrail

get the same issue !

djeremh avatar Nov 23 '11 22:11 djeremh

same issue, please fix...

ddierickx avatar Nov 25 '11 14:11 ddierickx

Same issue here

ghost avatar Nov 26 '11 14:11 ghost

Same problem.

magee avatar Nov 29 '11 19:11 magee

Same issue here. Help would be greatly appreciated.

MartinOST avatar Dec 01 '11 01:12 MartinOST

Same issue

ghost avatar Dec 03 '11 17:12 ghost

+1 on this

ramatgan avatar Dec 06 '11 08:12 ramatgan

Same issue

cyberarm avatar Dec 07 '11 16:12 cyberarm

same issue

xxxazxxx avatar Dec 09 '11 14:12 xxxazxxx

same issue

leemour avatar Dec 09 '11 15:12 leemour

same problem here....

cbusacca avatar Dec 18 '11 00:12 cbusacca

Same here.

ewillyb avatar Dec 20 '11 19:12 ewillyb

same here... :(

domainadmin avatar Dec 29 '11 10:12 domainadmin

Scott, this sucks!

$ ruby --version
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]

$ gem install github
Successfully installed github-0.6.2

$ gh
You must 'gem install win32-open3' to use the github command on Windows

$ gem install win32-open3
Fetching: win32-open3-0.3.2-x86-mingw32.gem (100%)
ERROR:  Error installing win32-open3:
        win32-open3 requires Ruby version < 1.9.0.

hickford avatar Feb 12 '12 22:02 hickford

will this be fixed? I'm still seeing the same error as in previous comment.

ryenus avatar Jul 12 '12 11:07 ryenus

+1 to ryenus. Will this be fixed or do I need to look for alternatives?

RyannosaurusRex avatar Aug 06 '12 14:08 RyannosaurusRex

How fix it? help me

NurjanovUlugbek avatar Jul 02 '13 10:07 NurjanovUlugbek

same issue

anonprotag avatar Sep 19 '13 02:09 anonprotag

+1 same problem here

guillaume86 avatar Aug 16 '14 22:08 guillaume86

Still the same Problem, Any fix-up guys !!!

dev-amit avatar Apr 27 '15 08:04 dev-amit