# Net\\ftp.rb failing in Ruby 1.9.1

**URL:** <https://www.ruby-forum.com/t/net-ftp-rb-failing-in-ruby-1-9-1/177669>\
**Category:** Ruby\
**Created:** [October 21, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/net-ftp-rb-failing-in-ruby-1-9-1/177669 "2009-10-21T19:57:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sai\_fujinaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@sai\_fujinaro](https://www.ruby-forum.com/u/sai_fujinaro)\
**Post date:** [October 21, 2009, 7:57pm UTC](https://www.ruby-forum.com/t/net-ftp-rb-failing-in-ruby-1-9-1/177669/1 "2009-10-21T19:57:55Z")

</div>

Hi, I’m running on windows, Ruby 1.9.1-p129-i386-mswin32.zip.

Trying to run gem install p4ruby gives an error:  
can’t convert Pathname into String

Running trace on rake shows that this is coming (among other places)  
from ftp.rb:679 and ftp.rb:547. They are still trying to use as  
Pathname as an implicit cast to string, but to\_str was removed from  
Pathname in 1.9.1. They can be fixed by just adding .to\_path or .to\_s  
to those two lines.

Is there a good place to submit this as a bug report?

---

<div class="post-metadata">

**Author:** ![sai\_fujinaro](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/db5fbb/32.png) [@sai\_fujinaro](https://www.ruby-forum.com/u/sai_fujinaro)\
**Post date:** [October 21, 2009, 9:55pm UTC](https://www.ruby-forum.com/t/net-ftp-rb-failing-in-ruby-1-9-1/177669/2 "2009-10-21T21:55:47Z")

</div>

Sai Fujinaro wrote:

> Is there a good place to submit this as a bug report?

[http://redmine.ruby-lang.org/projects/show/ruby-191](http://redmine.ruby-lang.org/projects/show/ruby-191)

-Justin
