ptools gem problem

D

Dave Rose

i tried ptools gem and after install win-file-stat and win-pr i get this
error in irb...
require 'ptools'
untimeError: GetProcAddress: GetVolumePathNamesForVolumeName or
GetVolumePathNa
esForVolumeNameA

from
c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu
e.rb:26:in `initialize'
from
c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu
e.rb:26:in `new'
from
c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu
e.rb:26
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__'
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require'
from
c:/ruby182/lib/ruby/gems/1.8/gems/win32-file-stat-1.2.4/lib/win32/f
le/stat.rb:9
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
require__'
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
require'
from
c:/ruby182/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
require__'
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
require'
from (irb):1
require 'purple'
oadError: No such file to load -- purple
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require__'
from
c:/ruby182/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
require'
from (irb):2
File.which("ruby")
oMethodError: undefined method `which' for File:Class
from (irb):3i have a Win2000 srvc pak 4 with just a C drive labeled IBM_PRELOAD
 
D

Daniel Berger

i tried ptools gem and after install win-file-stat and win-pr i get this
error in irb...> require 'ptools'

untimeError: GetProcAddress: GetVolumePathNamesForVolumeName or
GetVolumePathNa
esForVolumeNameA

from
c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu
e.rb:26:in `initialize'

<snip>

Oh, drat, it seems that method is for Windows XP or later only. I'll
need to fix volume.rb (and check the other methods as well). I've got
some other stuff in the pipe for windows-pr 0.6.4, so now is as good a
time as any to do another release. I'll try to get it out tonight.

If you can't wait then I recommend installing windows-pr manually, and
commenting out the offending lines in volume.rb directly (you won't
need them for ptools).

Thanks for the report.

Dan
 
D

Dave Rose

Oh, drat, it seems that method is for Windows XP or later only. I'll
need to fix volume.rb (and check the other methods as well). I've got
some other stuff in the pipe for windows-pr 0.6.4, so now is as good a
time as any to do another release. I'll try to get it out tonight.

If you can't wait then I recommend installing windows-pr manually, and
commenting out the offending lines in volume.rb directly (you won't
need them for ptools).

Thanks for the report.

Dan

..thanx ...dan...no real hurry...i'll watch for it...a big thanx in
advance for your efforts....dave
 
D

Daniel Berger

.thanx ...dan...no real hurry...i'll watch for it...a big thanx in
advance for your efforts....dave

I went ahead and released 0.6.4, so it should be available by now, or
in the next hour or so.

Regards,

Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,108
Latest member
AlbertEste
Top