-
Notifications
You must be signed in to change notification settings - Fork 37
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
Could not run the test crawl #21
Comments
it looks like sourcify is not working properly under ruby 2.1.1 we need to check that this works properly https://github.com/CalculatedContent/sourcify or see if we need to migrate to a newer version https://github.com/ngty/sourcify the basic design pattern for the crawler is described here http://charlesmartin14.wordpress.com/2013/08/10/a-ruby-dsl-design-pattern-for-distributed-computing/ |
the first step to do is write some small tests and verify that sourcify is working |
I updated my sourcify gem version from 0.5 to 0.6. Then I ran the below mentioned test programs #1:- def block_to_s(&blk) puts block_to_s { Output:- str = "Hello" #2:- require 'rubygems' opts = Trollop::options do urls = ["http://www.crossfit.com"] Output :- /.rvm/gems/ruby-2.1.1@global/gems/bundler-1.5.3/lib/bundler/runtime.rb:220: warning: Insecure world writable dir /usr/local in PATH, mode 040777 Previously I was getting error with sourcify version 0.5. I am still facing the same error with test_crawl.rb. |
The sourcify gems probably don't work . We used our own , forked version of sourcify because of this, although it might not be working properly in ruby 2.1 Ill see if I can reproduce the error |
this is the forked version with the bug fixes https://github.com/CalculatedContent/sourcify this should be what bundler installs |
I tried sourcify from both https://github.com/CalculatedContent/sourcify and https://github.com/ngty/sourcify (Changing the Gemfile). But I am getting the same error. I may need to try installing ruby 1.9.3. |
that is, it is necessary to move to ruby 2.1 so it is useful to look carefully at what is working and what is not we need to isolate where the bug is |
but generally yes...the requirements are ruby 1.9.7 |
to install 1.9.7, i suggest using rvm |
Same problem here, and I'm using ruby 1.9.7 with rvm. |
Started redis-server
bundle exec ./test/test_crawl.rb -u http://calculatedcontent.com gives below mentioned error.
'/cloud-crawler/cloud-crawler/vendor/bundle/ruby/2.1.0/bundler/gems/sourcify-5767bd2a0c09/lib/sourcify/proc/parser/scanner.rb:19:in
process': Sourcify::NoMatchingProcError (Sourcify::NoMatchingProcError) from cloud-crawler/cloud-crawler/vendor/bundle/ruby/2.1.0/bundler/gems/sourcify-5767bd2a0c09/lib/sourcify/proc/parser.rb:40:in
extracted_source'from /cloud-crawler/cloud-crawler/vendor/bundle/ruby/2.1.0/bundler/gems/sourcify-5767bd2a0c09/lib/sourcify/proc/parser.rb:22:in
sexp' from /cloud-crawler/cloud-crawler/vendor/bundle/ruby/2.1.0/bundler/gems/sourcify-5767bd2a0c09/lib/sourcify/proc/parser.rb:17:in
source'from /cloud-crawler/cloud-crawler/vendor/bundle/ruby/2.1.0/bundler/gems/sourcify-5767bd2a0c09/lib/sourcify/proc/methods/to_source.rb:39:in
to_source' from /cloud-crawler/cloud-crawler/lib/cloud-crawler/driver.rb:234:in
crawl'from /cloud-crawler/cloud-crawler/lib/cloud-crawler/driver.rb:49:in
standalone_crawl' from ./test/test_crawl.rb:27:in
I am using ruby version 2.1.1.
The text was updated successfully, but these errors were encountered: