Skip to content
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

Unable to locate default.html theme file #1

Open
FlorianWolters opened this issue Apr 6, 2012 · 0 comments
Open

Unable to locate default.html theme file #1

FlorianWolters opened this issue Apr 6, 2012 · 0 comments

Comments

@FlorianWolters
Copy link

First of all, I am using Windows 7 and Ruby 1.9.3.

I followed the installation instructions for Ruhoh and created a new blog:

ruhoh new myblog
cd myblog
rackup -p 9292

The last command raises a RuntimeError with the following stacktrace.

C:/Ruby/ruby-1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
0 posts to process.
0 drafts to process.
←[32m6/6 pages processed.←[0m
C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/utils.rb:23:in `parse_file': File not found: D:/myblog/D:/myblog/_templates/themes/twitter/layouts/default.html (RuntimeError)
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/parsers/layouts.rb:11:in `block in generate'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/parsers/layouts.rb:9:in `each'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/parsers/layouts.rb:9:in `generate'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/db.rb:26:in `update'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/db.rb:39:in `block in update!'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/db.rb:38:in `each'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/db.rb:38:in `update!'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/ruhoh-0.0.3/lib/ruhoh/previewer.rb:18:in `initialize'
        from D:/myblog/config.ru:10:in `new'
        from D:/myblog/config.ru:10:in `block in <main>'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
        from D:/myblog/config.ru:1:in `new'
        from D:/myblog/config.ru:1:in `<main>'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:137:in `start'
        from C:/Ruby/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.4.1/bin/rackup:4:in `<top (required)>'
        from C:/Ruby/ruby-1.9.3/bin/rackup:19:in `load'
        from C:/Ruby/ruby-1.9.3/bin/rackup:19:in `<main>'

There is obviously a problem with the filepath (look at File not found: D:/myblog/D:/myblog/_templates/themes/twitter/layouts/default.html. I guess it is related to a Windows operating system withouth further investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant