Created
March 19, 2011 20:16
-
-
Save eric/877773 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1 : 0] eric@kiccoro:/Users/eric > wget http://bazaar.launchpad.net/~graphite-dev/graphite/main/download/head:/whisper.py-20080505183243-3ypo8j4r6x1np8hq-2/whisper.py | |
--2011-03-19 13:11:15-- http://bazaar.launchpad.net/~graphite-dev/graphite/main/download/head:/whisper.py-20080505183243-3ypo8j4r6x1np8hq-2/whisper.py | |
Resolving bazaar.launchpad.net... 91.189.90.11 | |
Connecting to bazaar.launchpad.net|91.189.90.11|:80... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 21690 (21K) [text/x-python] | |
Saving to: `whisper.py' | |
100%[================================================================================================>] 21,690 90.5K/s in 0.2s | |
2011-03-19 13:11:18 (90.5 KB/s) - `whisper.py' saved [21690/21690] | |
[2 : 0] eric@kiccoro:/Users/eric > sudo gem install rubypython | |
Password: | |
Fetching: ffi-1.0.7.gem (100%) | |
Building native extensions. This could take a while... | |
Fetching: blankslate-2.1.2.4.gem (100%) | |
Fetching: rubypython-0.5.1.gem (100%) | |
Successfully installed ffi-1.0.7 | |
Successfully installed blankslate-2.1.2.4 | |
Successfully installed rubypython-0.5.1 | |
3 gems installed | |
Installing ri documentation for ffi-1.0.7... | |
Building YARD (yri) index for ffi-1.0.7... | |
Installing ri documentation for blankslate-2.1.2.4... | |
Building YARD (yri) index for blankslate-2.1.2.4... | |
Installing ri documentation for rubypython-0.5.1... | |
Building YARD (yri) index for rubypython-0.5.1... | |
Installing RDoc documentation for ffi-1.0.7... | |
Installing RDoc documentation for blankslate-2.1.2.4... | |
Installing RDoc documentation for rubypython-0.5.1... | |
[3 : 0] eric@kiccoro:/Users/eric > irb | |
>> require 'rubypython' | |
=> true | |
>> RubyPython.start | |
=> true | |
>> sys = RubyPython.import 'sys' | |
=> <module 'sys' (built-in)> | |
>> sys.path.append '.' | |
=> None | |
>> RubyPython.import 'whisper' | |
=> <module 'whisper' from './whisper.py'> | |
>> w = _ | |
=> <module 'whisper' from './whisper.py'> | |
>> w.create 'test.wh' | |
RubyPython::PythonError: TypeError: create() takes at least 2 arguments (1 given) | |
from /Library/Ruby/Gems/1.8/gems/rubypython-0.5.1/lib/rubypython/rubypyproxy.rb:198:in `method_missing' | |
from (irb):10 | |
>> w.create 'test.wh', [[10, 1000]] | |
=> None | |
>> | |
Suspended | |
[3 : 1] eric@kiccoro:/Users/eric > ls -lh test.wh | |
-rw-r--r-- 1 eric eric 12K Mar 19 13:15 test.wh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment