Skip to content

Getting this error gnuplot.rb:219:in `instance_of?': class or module required (TypeError) when running examples. #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DouglasAllen opened this issue Nov 13, 2016 · 2 comments

Comments

@DouglasAllen
Copy link

I have Gnuplot installed on Windows 10 and is on the [path settings].
The gem version is 2.6.2 from a 'gem install gnuplot'

[Running] ruby "c:\Ruby23-x64\lib\ruby\gems\2.3.0\gems\gnuplot-2.6.2\examples\sin_wave.rb"
c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:219:in instance_of?': class or module required (TypeError) from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:219:in plot_args'
from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in block in store_datasets' from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in collect'
from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in store_datasets' from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:102:in initialize'
from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/examples/sin_wave.rb:4:in new' from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/examples/sin_wave.rb:4:in block in

'
from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:74:in block in open' from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:73:in popen'
from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:73:in open' from c:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/examples/sin_wave.rb:3:in '

[Done] exited with code=1 in 0.708 seconds

That was in VS Code editor.
The command line would be similar but I'll give it to ya.
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:219:in instance_of?': class or module required (TypeError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:219:in plot_args'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in block in store_datasets' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in collect'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:160:in store_datasets' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:102:in initialize'
from sin_wave.rb:4:in new' from sin_wave.rb:4:in block in

'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:74:in block in open' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:73:in popen'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/gnuplot-2.6.2/lib/gnuplot.rb:73:in open' from sin_wave.rb:3:in '

@DouglasAllen
Copy link
Author

Since I see that this version is different I went ahead and installed 2.6.1 this one and tests, and some examples work just fine. But I am now getting an error with the Rake task to install and s few others.
One is with the generated gemspec.
rake aborted!
ArgumentError: $SAFE=2 to 4 are obsolete
gnuplot.gemspec:1:in `block in parse'
Tasks: TOP => install => build
But again the gem at rubygems will suffice for me even though I learned a thing or two with this master.

@rdp
Copy link
Owner

rdp commented Nov 14, 2016

2.6.2 failed but 2.6.1 passed?

On Sat, Nov 12, 2016 at 11:20 PM, Douglas G. Allen <[email protected]

wrote:

Since I see that this version is different I went ahead and installed
2.6.1 this one and tests, and some examples work just fine. But I am now
getting an error with the Rake task to install and s few others.
One is with the generated gemspec.
rake aborted!
ArgumentError: $SAFE=2 to 4 are obsolete
gnuplot.gemspec:1:in `block in parse'
Tasks: TOP => install => build
But again the gem at rubygems will suffice for me even though I learned a
thing or two with this master.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#43 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAAw0MG_RhuQQ5yRVPfy7DYfKnJvO3G6ks5q9qxDgaJpZM4KwnY0
.

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

No branches or pull requests

2 participants