Closed raskalbass closed 12 years ago
no, it's not. sorry.
On Nov 10, 2011, at 2:55 PM, raskalbass wrote:
after update to this version i cant push anything to heroku. i spent couple of hours and find that problem in your gem. just install 1.0.16 version and everything is ok. hope it will be usefull
Reply to this email directly or view it on GitHub: https://github.com/indirect/jquery-rails/issues/81
I had the same experience while deploying onto EngineYard. I received the following error in my deployment log:
from /usr/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:479:in
from_yaml' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:190:in
load_gemspec' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:54:inblock in initialize' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:64:in
block in each' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:55:inloop' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_reader.rb:55:in
each' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:35:ininitialize' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:20:in
new' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package/tar_input.rb:20:inopen' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:68:in
open' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:62:infrom_io' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:46:in
block in from_file_by_path' from /usr/lib/ruby/1.9.1/open-uri.rb:35:inopen' from /usr/lib/ruby/1.9.1/open-uri.rb:35:in
open' from /usr/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:45:infrom_file_by_path' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/source.rb:73:in
fetch' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:45:inblock in run' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in
block in each' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:ineach' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in
each' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:44:inrun' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in
install' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/cli.rb:226:ininstall' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/task.rb:22:in
run' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/invocation.rb:118:ininvoke_task' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor.rb:246:in
dispatch' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/lib/bundler/vendor/thor/base.rb:389:instart' from /usr/lib/ruby/gems/1.9.1/gems/bundler-1.0.10/bin/bundle:13:in
<top (required)>' from /usr/bin/bundle:19:inload' from /usr/bin/bundle:19:in
'
I was able to track it down to this gem by creating a new instance on EngineYard and trying to do a fresh application setup. In that deployment log, it specifically said that while installing the jquery-rails gem v1.0.17, it said: "ArgumentError invalid byte sequence in US-ASCII."
I did a quick search on Google and it suggested to update RubyGems. However, we don't want to muck with the EY environment just to work around this issue.
Also getting "invalid byte sequence in US-ASCII" when deploying to an ubuntu box. Issue seems okay on OS X
Your LC_LANG or LANG or something similar is set to ASCII. The gemspec for jquery-rails contains UTF-8, so Ruby is (correctly) throwing an error.
On Nov 17, 2011, at 2:06 PM, Eric Marden wrote:
Also getting "invalid byte sequence in US-ASCII" when deploying to an ubuntu box. Issue seems okay on OS X
Reply to this email directly or view it on GitHub: https://github.com/indirect/jquery-rails/issues/81#issuecomment-2783958
You were absolutely right. I had forgot to set the locale on this box. This fixed it right up for me (on ubuntu):
sudo locale-gen en_US.UTF-8 && sudo /usr/sbin/update-locale LANG=en_US.UTF-8
i am having the same problem. the solution above did not fix it. On my ubuntu 10.04 i have the following output from locale. So it seems everything is in place. Yet bundle install fails LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
@Aslan For my Engine Yard deployment, I just specify the version "10.0.16" for the 'jquery-rails' gem in my app's Gemfile. I know this isn't an actual solution, but if it's keeping you from deploying, try this workaround for now.
Another way that should work is to prefix LANG=en_US.UTF-8 to your bundle install command
@xentek That worked. Thanks
Closing this since it's solved and since rails/jquery-rails is the currently-maintained fork.
after update to this version i cant push anything to heroku. i spent couple of hours and find that problem in your gem. just install 1.0.16 version and everything is ok. hope it will be usefull