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

Tumblr import error #239

Closed
0xdevalias opened this Issue Feb 10, 2016 · 4 comments

Comments

Projects
None yet
4 participants
@0xdevalias
⇒  jekyll import tumblr --url http://blog.devalias.net --format md --grab_images true --add_highlights true --rewrite_urls true -t
       Deprecation: The 'url' setting can only be set in your config files.
Fetching http://blog.devalias.net/api/read/json/?num=50&start=0
Page: 1 - Posts: 50
Fetching http://blog.devalias.net/api/read/json/?num=50&start=50
Page: 2 - Posts: 0
Configuration file: none

/Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import/importers/tumblr.rb:211:in `block in rewrite_urls_and_redirects': uninitialized constant Jekyll::Post (NameError)
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import/importers/tumblr.rb:206:in `map'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import/importers/tumblr.rb:206:in `rewrite_urls_and_redirects'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import/importers/tumblr.rb:61:in `process'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import/importer.rb:23:in `run'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-import-0.10.0/lib/jekyll-import.rb:26:in `block (3 levels) in add_importer_commands'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
    from /Users/devalias/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/jekyll-3.1.1/bin/jekyll:13:in `<top (required)>'
    from /Users/devalias/.rbenv/versions/2.3.0/bin/jekyll:23:in `load'
    from /Users/devalias/.rbenv/versions/2.3.0/bin/jekyll:23:in `<main>'
@pathawks

This comment has been minimized.

Show comment
Hide comment
@pathawks

pathawks Feb 10, 2016

Member

uninitialized constant Jekyll::Post

Looks like it will need to be updated to work with Jekyll 3

Member

pathawks commented Feb 10, 2016

uninitialized constant Jekyll::Post

Looks like it will need to be updated to work with Jekyll 3

@0xdevalias

This comment has been minimized.

Show comment
Hide comment
@0xdevalias

0xdevalias Feb 10, 2016

Any tips/guides on migrating it? Not really familiar with the code base, but if I have an idea of what needs doing can always give it a go.

Any tips/guides on migrating it? Not really familiar with the code base, but if I have an idea of what needs doing can always give it a go.

@0xdevalias

This comment has been minimized.

Show comment
Hide comment
@0xdevalias

0xdevalias Feb 18, 2016

Workaround:

Gemfile

source 'https://rubygems.org'
gem 'jekyll','~>2.5.3'
gem 'jekyll-import'
bundle install
bundle exec jekyll import tumblr --url http://blog.devalias.net --format md --grab_images true --add_highlights true --rewrite_urls true -t

Then copy over the _posts and edit for Jekyll 3 as required.

Workaround:

Gemfile

source 'https://rubygems.org'
gem 'jekyll','~>2.5.3'
gem 'jekyll-import'
bundle install
bundle exec jekyll import tumblr --url http://blog.devalias.net --format md --grab_images true --add_highlights true --rewrite_urls true -t

Then copy over the _posts and edit for Jekyll 3 as required.

@jekyllbot jekyllbot added the stale label Jun 6, 2016

@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Jun 28, 2016

Member

That is unfortunate. It seems like it's only the importer using this old class and only when --rewrite_urls is true.

Member

parkr commented Jun 28, 2016

That is unfortunate. It seems like it's only the importer using this old class and only when --rewrite_urls is true.

@jekyllbot jekyllbot removed the stale label Jun 28, 2016

@parkr parkr closed this in 95c1aae Jul 7, 2016

parkr added a commit that referenced this issue Jul 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment