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 import RSS articles into Jekyll via 'jekyll-import' (no warning messages) #391

Closed
espressobeanies opened this issue Jan 2, 2019 · 8 comments · Fixed by #409
Closed

Comments

@espressobeanies
Copy link

I’m not able to import my RSS articles (originally Blogger feed.atom format) into the latest version of Jekyll via the ‘jekyll-import’ method. When I go to run the import command for RSS documents, I receive the following output with no debug information:

[root@localhost blog]# ruby -r rubygems -e 'require "jekyll-import";
>      JekyllImport::Importers::RSS.run({
>        "source" => "/home/user/feed.rss"
>      })'
Traceback (most recent call last):
        2: from -e:2:in `<main>'
        1: from /usr/local/share/gems/gems/jekyll-import-0.17.1/lib/jekyll-import/importer.rb:25:in `run'
/usr/local/share/gems/gems/jekyll-import-0.17.1/lib/jekyll-import/importers/rss.rb:37:in `process': private method `open' called for #<URI::Generic /home/user/feed.rss> (NoMethodError)

When I go to check the directory where my file should have been exported, nothing is there. Not sure what to do here to troubleshoot further.

@ashmaroli
Copy link
Member

We may have to revert to using Kernel#open to automatically handle opening local and remote resources
/cc @DirtyF, @jekyll/plugin-core

@espressobeanies
Copy link
Author

espressobeanies commented Jan 2, 2019

If it helps any, the system I'm attempting it on is Fedora 29 AARCH64.

I was able to convert the .atom files to .rss using a Windows program and the atom2rss.xslt file, however even in .rss format, I still am unable to import the files into Jekyll using 'jekyll-import' for the same reason above.

@thatfiredev
Copy link

@ashmaroli Is there any workaround we can currently use?

I'm also facing this problem when running:

jekyll import rss -s my_file.xml

@DirtyF DirtyF added the bug label Feb 28, 2019
@DirtyF
Copy link
Member

DirtyF commented Feb 28, 2019

I've reverted to use Kernel#open in c190aba

You can test the fix by editing your Gemfile to use current master

gem "jekyll-import", github: "jekyll/jekyll-import"

If that solves the issue, we'll release a fix, sorry for the inconvenience.

@thatfiredev
Copy link

Thanks @DirtyF

Running the command jekyll import rss --source https://medium.com/feed/@rosariopfernandes now shows a different error: jekyll 3.7.4 | Error: no implicit conversion of nil into String. Here's the trace:

TypeError: no implicit conversion of nil into String
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:63:in `+'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:63:in `block (2 levels) in process'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:62:in `each'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:62:in `block in process'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:42:in `each'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importers/rss.rb:42:in `process'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import/importer.rb:25:in `run'
  /home/rosariopfernandes/gems/bundler/gems/jekyll-import-c190aba48194/lib/jekyll-import.rb:30:in `block (3 levels) in add_importer_commands'
  /home/rosariopfernandes/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
  /home/rosariopfernandes/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
  /home/rosariopfernandes/gems/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
  /home/rosariopfernandes/gems/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
  /home/rosariopfernandes/gems/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
  /home/rosariopfernandes/gems/gems/jekyll-3.7.4/exe/jekyll:15:in `<top (required)>'
  /home/rosariopfernandes/gems/bin/jekyll:23:in `load'
  /home/rosariopfernandes/gems/bin/jekyll:23:in `<top (required)>'

@ashmaroli
Copy link
Member

@rosariopfernandes I've pushed a temporary branch to help you with the import.
Edit your Gemfile to following:

gem "jekyll-import", github: "jekyll/jekyll-import", branch: "slugify-post-title"

@thatfiredev
Copy link

@ashmaroli worked perfectly! Thanks

@jekyllbot
Copy link
Contributor

This issue has been automatically marked as stale because it has not been commented on for at least two months.

The resources of the Jekyll team are limited, and so we are asking for your help.

If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.

If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial.

This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions.

@jekyll jekyll locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants