Problem running piston

4 views
Skip to first unread message

Henrik

unread,
Apr 28, 2009, 10:31:12 PM4/28/09
to Piston
\>piston import http://svn.castleproject.org:8080/svn/castle/trunk/monorail
--repository-type=svn
INFO main: Forced repository type to svn
C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/commands/
import.rb:15:in
`select_repository': undefined method `downcase' for :svn:Symbol
(NoMethodError)

from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
commands/imp
ort.rb:25:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
commands/imp
ort.rb:49:in `start'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
cli.rb:67:in
`start'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
cli.rb:121
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/bin/piston:5
from C:/Ruby/bin/piston:19:in `load'
from C:/Ruby/bin/piston:19

Furthermore, it things the url is using git if I don't "force"
repository.

On Windows.

Another bug, easy to reproduce. Install ruby in %PROGRAMFILES%\Ruby
and see piston fail miserably when trying to run it with "no such
device, directory ..."

The reason Win devs don't want to install in C:\ directly is related
to security issues; by default only administrators are allowed to
write to %ProgramFiles% and that is bypassed if ruby creates a folder
outside Program Files (unless specified so of course)... Piston
shouldn't assume there are no spaces in the path, simply.

François Beausoleil

unread,
Apr 28, 2009, 11:27:40 PM4/28/09
to piston-d...@googlegroups.com
Thanks for the bug report. I thought I was careful for spaces in
path, but I'll double check.

For the repository type, can you provide more information? Running
with --verbose 5 will help me.

Thanks!
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/

Henrik

unread,
Apr 29, 2009, 3:17:28 AM4/29/09
to Piston
With --verbose=5 you get further, directly below the prompt:

DEBUG main: Piston::Commands::Import with options
{:dry_run=>false, :quiet=>fals
e, :verbose=>5, :repository_type=>:svn, :lock=>false, :force=>false}
INFO main: Forced repository type to svn
C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/commands/
import.rb:15:in
`select_repository': undefined method `downcase' for :svn:Symbol
(NoMethodError)
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
commands/imp
ort.rb:25:in `run'
...

\>ruby --version
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]



On Apr 29, 4:27 am, François Beausoleil
<francois.beausol...@gmail.com> wrote:
> Thanks for the bug report.  I thought I was careful for spaces in  
> path, but I'll double check.
>
> For the repository type, can you provide more information?  Running  
> with --verbose 5 will help me.
>
> Thanks!
> --
> François Beausoleilhttp://blog.teksol.info/http://piston.rubyforge.org/
>
> Le 2009-04-28 à 22:31, Henrik a écrit :
>
>
>
> > \>piston importhttp://svn.castleproject.org:8080/svn/castle/trunk/monorail

François Beausoleil

unread,
Apr 29, 2009, 9:16:40 AM4/29/09
to piston-d...@googlegroups.com
Hi,

Can you run without --repository-type but with --verbose 5? I want to
know why an obviously SVN server isn't recognized as such. Also, I
hit the URL you mentioned in my browser, but I got a 404, not an
authorization error. Is that expected?

Thanks!
--
François Beausoleil
http://blog.teksol.info/
http://piston.rubyforge.org/

Henrik Feldt

unread,
Apr 29, 2009, 6:03:18 PM4/29/09
to piston-d...@googlegroups.com
Hi,

Well, no, it's with capitalization: MonoRail instead of monorail. I don't know why their svn is case-aware, but I tried both just to make sure.

Your pizza of the day ;):

\>piston --verbose 5 import http://svn.castleproject.org
:8080/svn/castle/trunk/MonoRail
DEBUG main: Piston::Commands::Import with options {:dry_run=>false, :quiet=>fals
e, :verbose=>5, :lock=>false, :force=>false}
INFO main: Guessing the repository type
INFO handler: Guessing the repository type of "http://svn.castleproject.org:808
0/svn/castle/trunk/MonoRail"
DEBUG handler: Asking Piston::Git::Repository
DEBUG client: > git ls-remote --heads http://svn.castleproject.org:8080/svn/cast
le/trunk/MonoRail
C:/Ruby/bin/piston: No such file or directory - git ls-remote --heads http://svn
.castleproject.org:8080/svn/castle/trunk/MonoRail
C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/git/client.rb:69:in `run_
real': undefined method `exitstatus' for nil:NilClass (NoMethodError)
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/git/client.r
b:34:in `run_cmd'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/git/client.r
b:21:in `git'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/git/reposito
ry.rb:28:in `git'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/git/reposito
ry.rb:15:in `understands_url?'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/repository.r
b:17:in `guess'
from C:/Ruby/lib/ruby/gems/1.8/gems/log4r-1.0.5/src/log4r/outputter/outp
utterfactory.rb:48:in `detect'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/repository.r
b:15:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/repository.r
b:15:in `detect'
... 7 levels...
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/bin/piston:5
from C:/Ruby/bin/piston:19:in `load'
from C:/Ruby/bin/piston:19

Henrik

unread,
May 6, 2009, 2:45:57 AM5/6/09
to Piston
Hi!

Any news on this?

Regards,
Henrik

On Apr 29, 2:16 pm, François Beausoleil
<francois.beausol...@gmail.com> wrote:
> Hi,
>
> Can you run without --repository-type but with --verbose 5?  I want to  
> know why an obviously SVN server isn't recognized as such.  Also, I  
> hit the URL you mentioned in my browser, but I got a 404, not an  
> authorization error.  Is that expected?
>
> Thanks!
> --
> François Beausoleilhttp://blog.teksol.info/http://piston.rubyforge.org/

Harm Boschloo

unread,
May 13, 2009, 11:46:19 AM5/13/09
to Piston
Hi,

I seem to have the same problem...

Best regards,
Harm

piston import https://opencvli
brary.svn.sourceforge.net/svnroot/opencvlibrary/trunk/opencv current --
repositor
y-type svn --verbose 5
DEBUG main: Piston::Commands::Import with options
{:dry_run=>false, :quiet=>fals
e, :verbose=>5, :repository_type=>:svn, :lock=>false, :force=>false}
INFO main: Forced repository type to svn
C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/commands/
import.rb:15:in
`select_repository': undefined method `downcase' for :svn:Symbol
(NoMethodError)

from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
commands/imp
ort.rb:25:in `run'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
commands/imp
ort.rb:49:in `start'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
cli.rb:67:in
`start'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/lib/piston/
cli.rb:121
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `ge
m_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `re
quire'
from C:/Ruby/lib/ruby/gems/1.8/gems/piston-2.0.2/bin/piston:5
from C:/Ruby/bin/piston:19:in `load'
from C:/Ruby/bin/piston:19

Reply all
Reply to author
Forward
0 new messages