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

"No such file or directory @ rb_sysopen <url>" when attempting update #51

Open
MaffooClock opened this issue May 11, 2022 · 0 comments
Open

Comments

@MaffooClock
Copy link

When executing CS.update, I receive the following error:

No such file or directory @ rb_sysopen - https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&license_key=redacted&suffix=zip (Errno::ENOENT)    

The update_maxmind method is using OpenURI as just open(), which is an override of Kernel#open, but such use was deprecated in Ruby 2.7.

This was changed in OpenURI in Commit #0c2986a, roughly a year before the current v0.2.0 was released.

The solution here is to either:

  • Require Ruby <= v2.5 and lock dependency on 'open-uri' gem to v0.1.0
  • Or update Line 42 to use URI.open() instead of just open()
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